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
Gradle is a build automation tool for multi-language software development. It controls the development process in the tasks of compilation and packaging to testing, deployment, and publishing. Supported languages include Java, Kotlin, Groovy, Scala, C/C++, and JavaScript.
47
+
Gradle is a build automation tool for multi-language software development. It controls the development process across various tasks, including compilation, packaging, testing, deployment, and publishing. Supported languages include Java, Kotlin, Groovy, Scala, C/C++, and JavaScript.
52
48
53
49
<divclassName="ytframe">
54
50
<divclassName="youtube"data-embed="as5IU-UjtAg">
@@ -58,11 +54,11 @@ Gradle is a build automation tool for multi-language software development. It co
58
54
59
55
## Steps to Setup the Gradle Plugin
60
56
61
-
**Step 1:** Add LambdaTest Gradle Plugin to the `build.gradle` file.
57
+
### Step 1: Add LambdaTest Gradle Plugin to the `build.gradle` file
62
58
63
-
```bash
59
+
```java title="build.gradle"
64
60
plugins {
65
-
id 'io.github.lambdatest.gradle' version '1.0.5'
61
+
id 'io.github.lambdatest.gradle' version '1.0.6'
66
62
}
67
63
68
64
repositories {
@@ -72,29 +68,51 @@ repositories {
72
68
}
73
69
```
74
70
75
-
**Step 2:** Configure LambdaTest Parameters in `build.gradle`
71
+
### Step 2: Configure LambdaTest Parameters in `build.gradle` file
76
72
77
-
```bash
73
+
```java title="build.gradle"
78
74
runLambdaTest {
79
-
username = '<your_lambdatest_username>'
80
-
accessKey = '<your_lambdatest_access_key>'
81
-
appFilePath = '<path_to_your_App_File>'
82
-
testSuiteFilePath = '<path_to_your_Test_Suite>'
83
-
device = '<your_desired_device_for_Testing>'
84
-
isFlutter = true#if you are running flutter dart tests
85
-
appId = "lt://1234343"#provide this only if you have already uploaded the app
86
-
testSuiteId = "lt://1223444"#provide this only if you have already uploaded the app
75
+
username ='YOUR_LAMBDATEST_USERNAME'
76
+
accessKey ='YOUR_LAMBDATEST_ACCESS_KEY>'
77
+
appFilePath ='PATH_TO_YOUR_APP_FILE'
78
+
testSuiteFilePath ='PATH_TO_YOUR_TEST_SUITE'
79
+
device ='YOUR_DESIRED_DEVICE_FOR_TESTING'
80
+
isFlutter =true//if you are running flutter dart tests
81
+
appId ="lt://1234343"//provide this only if you have already uploaded the app
82
+
testSuiteId ="lt://1223444"//provide this only if you have already uploaded the app
87
83
}
88
84
```
89
85
90
-
## Execution
86
+
### Step 3: Configure Upload APK Parameters
87
+
With the release of version **`1.0.6`** of the `lambdatest-gradle-plugin`, users now have the option to upload their APK files directly to LambdaTest. Add the following configuration to build.gradle to enable APK upload:
91
88
92
-
To run the plugin added in the project's `build.gradle`, use the following command:
89
+
```java title="build.gradle"
90
+
uploadApkToLambdaTest {
91
+
username ='YOUR_LAMBDATEST_USERNAME'
92
+
accessKey ='YOUR_LAMBDATEST_ACCESS_KEY>'
93
+
appFilePath ='PATH_TO_YOUR_APP_FILE'
94
+
testSuiteFilePath ='PATH_TO_YOUR_TEST_SUITE'
95
+
}
96
+
```
97
+
### Step 4: Execute the Plugin
98
+
To run the plugin configured in build.gradle, execute the following command:
93
99
94
100
```bash
95
101
./gradlew runLambdaTest
96
102
```
97
103
104
+
If you only want to upload your APK files to LambdaTest, use the following command:
105
+
106
+
```bash
107
+
./gradlew uploadApkToLambdaTest
108
+
```
109
+
110
+
## Post Upload Configuration
111
+
Once the upload process is completed, LambdaTest will return unique IDs for the uploaded files. These IDs can be used in the runLambdaTest configuration to execute your tests seamlessly.
112
+
113
+
## Virtual Device Support
114
+
The LambdaTest Gradle plugin now supports virtual devices. To execute tests on a virtual device, set **`isVirtualDevice: true`** in both **`runLambdaTest`** and **`uploadApkToLambdaTest`** configurations. If this flag is not provided, tests will default to running on a real device.
115
+
98
116
## Supported Capabilities
99
117
100
118
The LambdaTest Gradle Plugin supports the following capabilities:
0 commit comments