From efd32799452557e1f1b21ec6c8fce3bc2bbd0127 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Fri, 21 Mar 2025 20:22:36 +0530 Subject: [PATCH 01/13] main.yml java test ng --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..05430f5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: Run Selenium Tests + +on: + push: + branches: + - master # Runs on push to master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest # Runs on Linux machine + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 # Pulls the latest code + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' # Use Temurin (AdoptOpenJDK) + java-version: '17' # Change if using a different version + + - name: Cache Maven Dependencies + uses: actions/cache@v3 + with: + path: ~/.m2 + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-maven- + + - name: Build and Run Tests + run: mvn clean test # Runs TestNG Selenium tests + + - name: Upload TestNG Reports + if: always() # Always upload reports, even if tests fail + uses: actions/upload-artifact@v3 + with: + name: testng-reports + path: target/surefire-reports/ # TestNG stores reports here From 030f70cf4f471ee4658ba388ca4c442334460d66 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Fri, 21 Mar 2025 21:23:07 +0530 Subject: [PATCH 02/13] added creds --- src/test/java/com/lambdatest/TestNGTodo1.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/lambdatest/TestNGTodo1.java b/src/test/java/com/lambdatest/TestNGTodo1.java index 21ae1b7..8d7c1a5 100644 --- a/src/test/java/com/lambdatest/TestNGTodo1.java +++ b/src/test/java/com/lambdatest/TestNGTodo1.java @@ -20,8 +20,8 @@ public class TestNGTodo1 { @BeforeMethod public void setup(Method m, ITestContext ctx) throws MalformedURLException { - String username = System.getenv("LT_USERNAME") == null ? "Your LT Username" : System.getenv("LT_USERNAME"); - String authkey = System.getenv("LT_ACCESS_KEY") == null ? "Your LT AccessKey" : System.getenv("LT_ACCESS_KEY"); + String username = "ankitclambdatest"; + String authkey = "LT_OnEL30AtoPH0BkcY83K0VnpQOcfFpX71axsfQgHGLhvNfUP"; ; String hub = "@hub.lambdatest.com/wd/hub"; @@ -116,4 +116,4 @@ public void tearDown() { driver.quit(); } -} \ No newline at end of file +} From f6fd0ae35f23f9651142ceaf4c012a1b1c5f2cc7 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Fri, 21 Mar 2025 21:26:11 +0530 Subject: [PATCH 03/13] Delete .github/workflows/main.yml deleted filw --- .github/workflows/main.yml | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 05430f5..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Run Selenium Tests - -on: - push: - branches: - - master # Runs on push to master - pull_request: - -jobs: - test: - runs-on: ubuntu-latest # Runs on Linux machine - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 # Pulls the latest code - - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' # Use Temurin (AdoptOpenJDK) - java-version: '17' # Change if using a different version - - - name: Cache Maven Dependencies - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-maven- - - - name: Build and Run Tests - run: mvn clean test # Runs TestNG Selenium tests - - - name: Upload TestNG Reports - if: always() # Always upload reports, even if tests fail - uses: actions/upload-artifact@v3 - with: - name: testng-reports - path: target/surefire-reports/ # TestNG stores reports here From eada8a17107a40ed8cb5dcc3a4c486267492ea9f Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Tue, 15 Apr 2025 19:23:18 +0530 Subject: [PATCH 04/13] Update single.xml --- single.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single.xml b/single.xml index 38a023f..b90b198 100644 --- a/single.xml +++ b/single.xml @@ -3,7 +3,7 @@ - + From 5b51dfed8f4ff31f1e8610630e2965430fd08479 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Wed, 28 May 2025 21:49:51 +0530 Subject: [PATCH 05/13] Update TestNGTodo1.java --- src/test/java/com/lambdatest/TestNGTodo1.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/lambdatest/TestNGTodo1.java b/src/test/java/com/lambdatest/TestNGTodo1.java index 8d7c1a5..1e8fd0f 100644 --- a/src/test/java/com/lambdatest/TestNGTodo1.java +++ b/src/test/java/com/lambdatest/TestNGTodo1.java @@ -26,9 +26,9 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException { String hub = "@hub.lambdatest.com/wd/hub"; DesiredCapabilities caps = new DesiredCapabilities(); - caps.setCapability("platform", "MacOS Catalina"); - caps.setCapability("browserName", "Safari"); - caps.setCapability("version", "latest"); + caps.setCapability("platform", System.getenv("LT_PLATFORM")); + caps.setCapability("browserName", System.getenv("LT_BROWSER")); + caps.setCapability("version", System.getenv("LT_BROWSER_VERSION")); caps.setCapability("build", "TestNG With Java"); caps.setCapability("name", m.getName() + " - " + this.getClass().getName()); caps.setCapability("plugin", "git-testng"); From 9d755764eb2543b6e7cc0e69555b2aad1ca282bf Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Thu, 29 May 2025 14:34:39 +0530 Subject: [PATCH 06/13] Update TestNGTodo1.java --- src/test/java/com/lambdatest/TestNGTodo1.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/lambdatest/TestNGTodo1.java b/src/test/java/com/lambdatest/TestNGTodo1.java index 1e8fd0f..8905fc2 100644 --- a/src/test/java/com/lambdatest/TestNGTodo1.java +++ b/src/test/java/com/lambdatest/TestNGTodo1.java @@ -26,9 +26,9 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException { String hub = "@hub.lambdatest.com/wd/hub"; DesiredCapabilities caps = new DesiredCapabilities(); - caps.setCapability("platform", System.getenv("LT_PLATFORM")); - caps.setCapability("browserName", System.getenv("LT_BROWSER")); - caps.setCapability("version", System.getenv("LT_BROWSER_VERSION")); + caps.setCapability("platform", "Windows 10"); + caps.setCapability("browserName", "chrome"); + caps.setCapability("version", "latest"); caps.setCapability("build", "TestNG With Java"); caps.setCapability("name", m.getName() + " - " + this.getClass().getName()); caps.setCapability("plugin", "git-testng"); From 5aab6b68a34528f8df07f792f32993412570955f Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:49:49 +0530 Subject: [PATCH 07/13] Create config.yaml --- .lambdatest/config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .lambdatest/config.yaml diff --git a/.lambdatest/config.yaml b/.lambdatest/config.yaml new file mode 100644 index 0000000..941f5d0 --- /dev/null +++ b/.lambdatest/config.yaml @@ -0,0 +1,12 @@ +# LambdaTest Configuration + +# Project and folder configuration +project_id: "01JJ1ZJC541WC4VJJWCECC876G" +folder_id: "01JJ1ZJC6PJCBSHAFTBKS0BHT4" + +# Test Run configuration +assignee: 1964322 +environment_id: 231000 + +# Test URL for automation +# test_url: "https://demo.lambdatestinternal.com" From 80d74bac2b2ac46de91de6ad5d8f2dc69087928f Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:53:15 +0530 Subject: [PATCH 08/13] Create static.yml --- .github/workflows/static.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..0ba8230 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 0d5af21894419a48f8c0fdd1744529008c9f04c7 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:54:53 +0530 Subject: [PATCH 09/13] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d0e3c77..c422e56 100644 --- a/README.md +++ b/README.md @@ -260,3 +260,6 @@ To stay updated with the latest features and product add-ons, visit [Changelog]( * Got a query? we are available 24x7 to help. [Contact Us](mailto:support@lambdatest.com) * For more info, visit - [LambdaTest](https://www.lambdatest.com?utm_source=github&utm_medium=repo&utm_campaign=Java-TestNG-Selenium) + + +https://www.wikipedia.org/ From 161a0ea17b34dfc9ea419eaaad64294677578bbe Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:57:08 +0530 Subject: [PATCH 10/13] Create config.yaml --- .lambdatest/config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .lambdatest/config.yaml diff --git a/.lambdatest/config.yaml b/.lambdatest/config.yaml new file mode 100644 index 0000000..941f5d0 --- /dev/null +++ b/.lambdatest/config.yaml @@ -0,0 +1,12 @@ +# LambdaTest Configuration + +# Project and folder configuration +project_id: "01JJ1ZJC541WC4VJJWCECC876G" +folder_id: "01JJ1ZJC6PJCBSHAFTBKS0BHT4" + +# Test Run configuration +assignee: 1964322 +environment_id: 231000 + +# Test URL for automation +# test_url: "https://demo.lambdatestinternal.com" From 4c54f4761eba053fa0fb5fb8bd81c87a5c0c9780 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:58:39 +0530 Subject: [PATCH 11/13] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c422e56..1a57462 100644 --- a/README.md +++ b/README.md @@ -263,3 +263,4 @@ To stay updated with the latest features and product add-ons, visit [Changelog]( https://www.wikipedia.org/ +https://de.wikipedia.org/wiki/Wikipedia:Hauptseite From 23d2a02802c9625363945b428e29184f0a69b6b1 Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:59:07 +0530 Subject: [PATCH 12/13] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d0e3c77..d2bd3ad 100644 --- a/README.md +++ b/README.md @@ -260,3 +260,5 @@ To stay updated with the latest features and product add-ons, visit [Changelog]( * Got a query? we are available 24x7 to help. [Contact Us](mailto:support@lambdatest.com) * For more info, visit - [LambdaTest](https://www.lambdatest.com?utm_source=github&utm_medium=repo&utm_campaign=Java-TestNG-Selenium) + +https://de.wikipedia.org/wiki/Wikipedia:Hauptseite From 54928dfcafba84e52252f58ca79c1488f990c59d Mon Sep 17 00:00:00 2001 From: Ankitac3003 <119027040+Ankitac3003@users.noreply.github.com> Date: Sat, 14 Mar 2026 18:14:24 +0530 Subject: [PATCH 13/13] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1a57462..3fee46f 100644 --- a/README.md +++ b/README.md @@ -264,3 +264,7 @@ To stay updated with the latest features and product add-ons, visit [Changelog]( https://www.wikipedia.org/ https://de.wikipedia.org/wiki/Wikipedia:Hauptseite + + + +https://www.bestbuy.com/