Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to parse env values for setLocation command #1765

Open
prasanta-biswas opened this issue Jun 13, 2024 · 0 comments
Open

Failing to parse env values for setLocation command #1765

prasanta-biswas opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@prasanta-biswas
Copy link
Contributor

Describe the bug
setLocation command is failing when latitude and longitude values are passed as env variables from command line

To Reproduce
Sample flow.yaml

appId: com.myapp.staging
---
- setLocation:
    latitude: ${LAT}
    longitude: ${LNG}
- launchApp
  1. Start the simulator/emulator
  2. Run maestro test flow.yaml -e LAT=-6.2555643 -e LNG=106.8107929
  3. The Flow fails with error:
Failed to parse file: /Users/myuser/maestro/test.yaml:4
Cannot deserialize value of type `double` from String "${LAT}": not a valid `double` value (as String to convert)

Expected behavior
It should be able to accept parameters for latitude and longitude from env/javascript

Environment information (please complete the following information):

  • Maestro version: 1.36.0
  • Platform: Android && iOS
  • Framework: Native iOS/Android
  • Device model and OS version: iPhone 11 Simulator
  • Device: Both physical device and emulator/simulator
  • Host: Mac M1
@prasanta-biswas prasanta-biswas added the bug Something isn't working label Jun 13, 2024
prasanta-biswas pushed a commit to prasanta-biswas/maestro that referenced this issue Jun 18, 2024
prasanta-biswas pushed a commit to prasanta-biswas/maestro that referenced this issue Aug 6, 2024
bartekpacia pushed a commit that referenced this issue Aug 29, 2024
bartekpacia pushed a commit that referenced this issue Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant