Skip to content

Commit 693e0e7

Browse files
authored
Merge pull request #1452 from shreybansal-lambdatest/stage
gpsLocation capability update
2 parents 75e9cfb + 45e7d76 commit 693e0e7

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

docs/espresso-supported-capabilities.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,17 @@ This document provide details about the features and capabilities supported for
6161
| network.har | Boolean | To generate the network logs in .har format, pass the value as `network.har: true` only works with `network:true` |
6262
| build | String | To set the Espresso build name. Example: `build: My Espresso Build`. |
6363
| geoLocation | String | Set the geolocation country code if you want to enable the same in your test. Example - `geoLocation: FR`|
64+
| gpsLocation | Decimal | The capability should be defined to override the device’s default GPS coordinates and should be provided as a comma-separated string. Example: `"location": {"lat": "-50","long": "150.028333"}`|
6465
| tunnel, tunnelName | Boolean | To activate the tunnel mode, pass the value as `tunnel: true` and provide the name of your tunnel as `tunnelName: NewTunnel` |
6566
| disableAnimation | Boolean | Set this to `true` if you want to disable animations for espresso tests. **Default:** `false` |
6667
| clearPackageData | Boolean | Set this to `true` if you want to clear the app data after each test has completed running. **Default**: `false` |
6768
| singleRunnerInvocation | Boolean | Set this to `true` if you want to execute test cases together with a `single test runner invocation`.This can help significantly speed up the test execution time. By default, each test case is invoked separately. **Default:** `false` |
69+
70+
:::note
71+
Ensure that the latitude is between -90 and 90, and the longitude is between -180 and 180. Otherwise, an error will occur like "Invalid GPS location: Latitude must be between -90 and +90, Longitude must be between -180 and +180."
72+
:::
73+
74+
6875
<!-- | env | Map | This feature allows users to pass and retrieve environment variables (like STAGE, PROD, or DEV) during automated Android tests. That is, users can dynamically switch configurations between environments without changing the test code, enabling seamless testing across multiple setups. Learn more about [Environment Variables](https://www.lambdatest.com/support/docs/espresso-env-variables-settings/) | -->
6976
:::caution Important
7077
You can either use **GeoLocation** or **Tunnel** in single execute command. They both are mutually exclusive.

docs/getting-started-with-flutter-dart-android-automation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@ The following capabilities are supported:
283283
7. **deviceLog:** Boolean value to generate device logs. Example: `true`.
284284
8. **build:** Set the name of your Flutter test build. Example: `My Flutter Build`.
285285
9. **autoGrantPermissions:** Boolean value to automatically grant the required permissions based on the [Android manifest](https://developer.android.com/guide/topics/manifest/manifest-intro) in the app’s **.apk** Example: `true`.
286+
10. **gpsLocation:** This capability should be defined to override the device’s default GPS coordinates and should be provided as a comma-separated string. Example: `"location": {"lat": "-50","long": "150.028333"}`.
286287

288+
:::note
289+
Ensure that the latitude is between -90 and 90, and the longitude is between -180 and 180. Otherwise, an error will occur like "Invalid GPS location: Latitude must be between -90 and +90, Longitude must be between -180 and +180."
290+
:::
287291

288292

289293
## Running Tests in Parallel

docs/getting-started-with-flutter-dart-ios-automation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ The following capabilities are supported:
183183
8. **tunnel:** Boolean value to run build via Tunnel. Example: `true`.
184184
9. **tunnelName:** Name of the tunnel to be used in conjunction with `tunnel` capability.
185185
10. **region:** String to device the region from which device will be allocated. Example - `eu`,`us`,`ap`.
186+
11. **gpsLocation:** This capability should be defined to override the device’s default GPS coordinates and should be provided as a comma-separated string. Example: `"location": {"lat": "-50","long": "150.028333"}`.
187+
188+
:::note
189+
Ensure that the latitude is between -90 and 90, and the longitude is between -180 and 180. Otherwise, an error will occur like "Invalid GPS location: Latitude must be between -90 and +90, Longitude must be between -180 and +180."
190+
:::
186191

187192

188193
## Running Tests in Parallel

docs/xcui-supported-capibilities.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ This document provide details about the features and capabilities supported for
5959
| deviceLog | Boolean | To generate the device logs, pass the value as `deviceLog: true` |
6060
| network | String | To generate the network logs, pass the value as `network: true`. |
6161
| build | String | To set the Espresso build name. Example: `build: My Espresso Build`. |
62-
| geoLocation | String | Set the geolocation country code if you want to enable the same in your test. Example - `geoLocation: FR`|
62+
| geoLocation | String | Set the geolocation country code if you want to enable the same in your test. Example: `geoLocation: FR`|
63+
| gpsLocation | Decimal | The capability should be defined to override the device’s default GPS coordinates and should be provided as a comma-separated string. Example: `"location": {"lat": "-50","long": "150.028333"}`.|
6364
| tunnel, tunnelName | Boolean | To activate the tunnel mode, pass the value as `tunnel: true` and provide the name of your tunnel as `tunnelName: NewTunnel` |
6465
| resignApp <br /> <br />Not supported in **Virtual Devices** | Boolean | Set this to `false` if you want to to prevent the apps from being re-signed. The app should be built for enterprise distribution. |
6566

67+
:::note
68+
Ensure that the latitude is between -90 and 90, and the longitude is between -180 and 180. Otherwise, an error will occur like "Invalid GPS location: Latitude must be between -90 and +90, Longitude must be between -180 and +180."
69+
:::
70+
6671
:::caution Important
6772
You can either use **GeoLocation** or **Tunnel** in single execute command. They both are mutually exclusive.
6873
:::

0 commit comments

Comments
 (0)