You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,12 +60,63 @@ If you do not have any **Flutter Android** app (.apk) and an **Flutter Test Suit
58
60
59
61
## Run Your First Test
60
62
61
-
### Step 1: Upload Your Application
63
+
### Step 1: Create your Android Flutter app and test suite for testing
64
+
For testing, you need to build a Flutter app and test suite. You can create Flutter applications and test suites using either Flutter cli or Gradlew. The steps below demonstrate how to create apks with Gradlew.
65
+
66
+
- Create an instrumentation test file in your application's directory `android/app/src/androidTest/java/com/example/lambdatestSampleApp/`. Replace **com**, **example**, and **lambdatestSampleApp** values with those from your app's package name.
- Update your application's `lambdatestSampleApp/android/app/build.gradle` file to use androidx's version of `AndroidJUnitRunner` and include the `androidx` libraries as dependencies.
- Use the following `Gradle` commands to build an instrumentation `test.apk` file(test suite) using the `Sample.java` created in the `androidTest` directory as mentioned in step 1.
100
+
101
+
```java title="Terminal"
102
+
//Go to the android folder which contains the "gradlew" script used for building Android apps from the terminal
103
+
pushd android
104
+
//Build an Android test APK (uses the Sample.java file created in step 1)
105
+
./gradlew app:assembleAndroidTest
106
+
//Build a debug APK by passing the integration test file
Upload your **android** application (.apk file) to the LambdaTest servers using our **REST API**. You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API:
112
+
:::info
113
+
Avoiding this step might result in **No Tests Ran** issue on the dashboard
114
+
:::
64
115
65
-
import Tabs from '@theme/Tabs';
66
-
import TabItem from '@theme/TabItem';
116
+
117
+
### Step 2: Upload Your Application
118
+
119
+
Upload your **android** application (.apk file) to the LambdaTest servers using our **REST API**. You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API:
67
120
68
121
**Using App File:**
69
122
@@ -99,7 +152,7 @@ Response of above cURL will be a **JSON** object containing the `App URL` of the
99
152
100
153
:::
101
154
102
-
### Step 2: Uploading Test Suite
155
+
### Step 3: Uploading Test Suite
103
156
104
157
Upload your **test suite** (.apk file) to the LambdaTest servers using our **REST API**. You need to provide your **Username** and **AccessKey** in the format `Username:AccessKey` in the **cURL** command for authentication. Make sure to add the path of the **appFile** in the cURL request. Here is an example cURL request to upload your app using our REST API:
105
158
@@ -137,7 +190,7 @@ Response of above cURL will be a **JSON** object containing the `App URL` of the
137
190
138
191
:::
139
192
140
-
### Step 3: Executing The Test
193
+
### Step 4: Executing The Test
141
194
142
195
#### Basic Authentication
143
196
@@ -200,7 +253,7 @@ curl --location --request POST "https://mobile-api.lambdatest.com/framework/v1/f
200
253
</TabItem>
201
254
</Tabs>
202
255
203
-
### Step 4: View Test Execution
256
+
### Step 5: View Test Execution
204
257
205
258
Once you have run your tests, you can view the test execution along with logs. You will be able to see the test cases passing or failing. You can view the same at [LambdaTest Automation](https://appautomation.lambdatest.com/build).
0 commit comments