From e55c24f6f0f2d6165f3d6d27853edd5825fc4667 Mon Sep 17 00:00:00 2001 From: ShubhamSuri <70204532+surishubham@users.noreply.github.com> Date: Mon, 3 Mar 2025 18:57:30 +0530 Subject: [PATCH 1/2] Merge pull request #1371 from amanchopra1905/gradle-integration Gradle integration --- docs/gradle-integration-with-lambdatest.md | 60 ++++++++++++++-------- docs/playwright-bundled-browser-support.md | 5 ++ 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/docs/gradle-integration-with-lambdatest.md b/docs/gradle-integration-with-lambdatest.md index 7dd28f048..6f2231dd2 100644 --- a/docs/gradle-integration-with-lambdatest.md +++ b/docs/gradle-integration-with-lambdatest.md @@ -1,7 +1,7 @@ --- id: gradle-integration-with-lambdatest title: Gradle Plugin Integration With LambdaTest -hide_title: true +hide_title: false sidebar_label: Gradle Plugin description: Automate testing at scale! Integrate LambdaTest with Gradle for seamless CI/CD & lightning-fast execution. keywords: @@ -44,11 +44,7 @@ slug: gradle-integration-with-lambdatest/ }) }} > - -# Gradle Integration with LambdaTest -*** - -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. +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.
@@ -58,11 +54,11 @@ Gradle is a build automation tool for multi-language software development. It co ## Steps to Setup the Gradle Plugin -**Step 1:** Add LambdaTest Gradle Plugin to the `build.gradle` file. +### Step 1: Add LambdaTest Gradle Plugin to the `build.gradle` file -```bash +```java title="build.gradle" plugins { - id 'io.github.lambdatest.gradle' version '1.0.5' + id 'io.github.lambdatest.gradle' version '1.0.6' } repositories { @@ -72,29 +68,51 @@ repositories { } ``` -**Step 2:** Configure LambdaTest Parameters in `build.gradle` +### Step 2: Configure LambdaTest Parameters in `build.gradle` file -```bash +```java title="build.gradle" runLambdaTest { - username = '' - accessKey = '' - appFilePath = '' - testSuiteFilePath = '' - device = '' - isFlutter = true # if you are running flutter dart tests - appId = "lt://1234343" #provide this only if you have already uploaded the app - testSuiteId = "lt://1223444" #provide this only if you have already uploaded the app + username = 'YOUR_LAMBDATEST_USERNAME' + accessKey = 'YOUR_LAMBDATEST_ACCESS_KEY>' + appFilePath = 'PATH_TO_YOUR_APP_FILE' + testSuiteFilePath = 'PATH_TO_YOUR_TEST_SUITE' + device = 'YOUR_DESIRED_DEVICE_FOR_TESTING' + isFlutter = true //if you are running flutter dart tests + appId = "lt://1234343" //provide this only if you have already uploaded the app + testSuiteId = "lt://1223444" //provide this only if you have already uploaded the app } ``` -## Execution +### Step 3: Configure Upload APK Parameters +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: -To run the plugin added in the project's `build.gradle`, use the following command: +```java title="build.gradle" +uploadApkToLambdaTest { + username = 'YOUR_LAMBDATEST_USERNAME' + accessKey = 'YOUR_LAMBDATEST_ACCESS_KEY>' + appFilePath = 'PATH_TO_YOUR_APP_FILE' + testSuiteFilePath = 'PATH_TO_YOUR_TEST_SUITE' +} +``` +### Step 4: Execute the Plugin +To run the plugin configured in build.gradle, execute the following command: ```bash ./gradlew runLambdaTest ``` +If you only want to upload your APK files to LambdaTest, use the following command: + +```bash +./gradlew uploadApkToLambdaTest +``` + +## Post Upload Configuration +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. + +## Virtual Device Support +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. + ## Supported Capabilities The LambdaTest Gradle Plugin supports the following capabilities: diff --git a/docs/playwright-bundled-browser-support.md b/docs/playwright-bundled-browser-support.md index 066c370e9..c6e82bf69 100644 --- a/docs/playwright-bundled-browser-support.md +++ b/docs/playwright-bundled-browser-support.md @@ -52,6 +52,11 @@ const capabilities = { "LT:Options": {"useSpecificBundleVersion": true,}} | Playwright Versions | Chromium | Firefox | Webkit | |---------------------|----------|---------|--------| +|1.50| 130-133 except - 132, 126, 122 | 130-134, except - 131,133,126,122,120 | 18.0-18.2 | +|1.49| 130-133 except - 132, 126, 122 | 130-134, except - 131,133,126,122,120 | 18.0-18.2 | +|1.48| 130-133 except - 132, 126, 122 | 130-134, except - 131,133,126,122,120 | 18.0-18.2 | +|1.47| 129 except - 132, 126, 122 | 130, except - 131,133,126,122,120 | 18.0 | +|1.46| 119-133, except - 132, 126, 122 | 118-134, except - 131,133, 126,122,120 | 17.4, 18.2 | |1.45| 119-127, except - 126,122 | 119-127, except - 126,122,120 | 17.4 | |1.44| 119-127, except - 126,122 | 119-127, except - 126,122,120 | 17.4 | |1.43| 119-127, except - 126,122 | 119-127, except - 126,122,120 | 17.4 | From 48191f011d60e4c05c33d2a4b5962aa2146bcc37 Mon Sep 17 00:00:00 2001 From: ShubhamSuri <70204532+surishubham@users.noreply.github.com> Date: Tue, 4 Mar 2025 16:43:42 +0530 Subject: [PATCH 2/2] Merge pull request #1378 from amanchopra1905/stage updated the version --- docs/gradle-integration-with-lambdatest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/gradle-integration-with-lambdatest.md b/docs/gradle-integration-with-lambdatest.md index 6f2231dd2..f9b99ec0d 100644 --- a/docs/gradle-integration-with-lambdatest.md +++ b/docs/gradle-integration-with-lambdatest.md @@ -58,7 +58,7 @@ Gradle is a build automation tool for multi-language software development. It co ```java title="build.gradle" plugins { - id 'io.github.lambdatest.gradle' version '1.0.6' + id 'io.github.lambdatest.gradle' version '1.0.7' } repositories { @@ -84,7 +84,7 @@ runLambdaTest { ``` ### Step 3: Configure Upload APK Parameters -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: +With the release of version **`1.0.7`** 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: ```java title="build.gradle" uploadApkToLambdaTest {