From 6438546f88a3d0b1520ff0272932ddb9ad44112b Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Thu, 6 Oct 2022 22:17:23 +0530 Subject: [PATCH 01/13] Update single.conf.js --- conf/single.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/single.conf.js b/conf/single.conf.js index 5114c94..eed71db 100644 --- a/conf/single.conf.js +++ b/conf/single.conf.js @@ -29,7 +29,8 @@ exports.config = { connectionRetryCount: 3, path: "/wd/hub", hostname: "hub.lambdatest.com", - port: 80, + port: 443, + protocol: "https", framework: "mocha", mochaOpts: { From d11be97cbc7bfa538d396a5424dbc8b3409f9d6c Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:04:05 +0530 Subject: [PATCH 02/13] Add .circleci/config.yml --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..bea54db --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' +version: 2.1 + +# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. +# See: https://circleci.com/docs/2.0/orb-intro/ +orbs: + node: circleci/node@4.7 + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +Steps: + + command: + - run: npm install webdriverio + - run: npm i selenium-webdriver + - run: export LT_USERNAME=varunkumarb + - run: export LT_ACCESS_KEY=doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU + - run: npm run single + +workflows: + WDIO-Sample: # This is the name of the workflow, feel free to change it to better match your workflow. + # Inside the workflow, you define the jobs you want to run. + jobs: + - node/test: + # This is the node version to use for the `cimg/node` tag + # Relevant tags can be found on the CircleCI Developer Hub + # https://circleci.com/developer/images/image/cimg/node + version: '16.10' + # If you are using yarn, change the line below from "npm" to "yarn" + pkg-manager: npm From 3a236aea1d1bf0c9810b1f23f053ba7eb375b593 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:25:32 +0530 Subject: [PATCH 03/13] Updated config.yml --- .circleci/config.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bea54db..9961e63 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,23 +8,25 @@ orbs: # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows -Steps: - - command: - - run: npm install webdriverio - - run: npm i selenium-webdriver - - run: export LT_USERNAME=varunkumarb - - run: export LT_ACCESS_KEY=doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU - - run: npm run single - +Jobs: + - Steps: + - checkout + - run: + - command: npm install webdriverio + - command: npm i selenium-webdriver + - command: export LT_USERNAME=varunkumarb + - command: export LT_ACCESS_KEY=doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU + - command: npm run single workflows: WDIO-Sample: # This is the name of the workflow, feel free to change it to better match your workflow. # Inside the workflow, you define the jobs you want to run. jobs: - node/test: + # This is the node version to use for the `cimg/node` tag # Relevant tags can be found on the CircleCI Developer Hub # https://circleci.com/developer/images/image/cimg/node version: '16.10' # If you are using yarn, change the line below from "npm" to "yarn" pkg-manager: npm + \ No newline at end of file From 1726b404e546c635e4148913e1b390710dc73ba3 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:43:48 +0530 Subject: [PATCH 04/13] Updated config.yml --- .circleci/config.yml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9961e63..9c856dc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,30 +3,31 @@ version: 2.1 # Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. # See: https://circleci.com/docs/2.0/orb-intro/ -orbs: - node: circleci/node@4.7 + + # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows Jobs: - - Steps: - - checkout - - run: - - command: npm install webdriverio - - command: npm i selenium-webdriver - - command: export LT_USERNAME=varunkumarb - - command: export LT_ACCESS_KEY=doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU - - command: npm run single -workflows: - WDIO-Sample: # This is the name of the workflow, feel free to change it to better match your workflow. - # Inside the workflow, you define the jobs you want to run. - jobs: - - node/test: + build: + - docker: + - image: circleci/node@4.7 + - Steps: + - checkout + - run: + - command: npm install webdriverio + - run: + - command: npm i selenium-webdriver + - run: + - command: export LT_USERNAME=varunkumarb + - run: + - command: export LT_ACCESS_KEY=doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU + - run: + - command: npm run single + # This is the node version to use for the `cimg/node` tag # Relevant tags can be found on the CircleCI Developer Hub # https://circleci.com/developer/images/image/cimg/node - version: '16.10' - # If you are using yarn, change the line below from "npm" to "yarn" - pkg-manager: npm + \ No newline at end of file From f72ef2778d5472873d78dc419b774c2c30c11592 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:56:30 +0530 Subject: [PATCH 05/13] Updated config.yml --- .circleci/config.yml | 53 ++++++++++++++++++-------------------------- 1 file changed, 22 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9c856dc..c7e4c86 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,33 +1,24 @@ -# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' version: 2.1 - -# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. -# See: https://circleci.com/docs/2.0/orb-intro/ - - - -# Invoke jobs via workflows -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows -Jobs: - build: - - docker: - - image: circleci/node@4.7 - - Steps: - - checkout - - run: - - command: npm install webdriverio - - run: - - command: npm i selenium-webdriver - - run: - - command: export LT_USERNAME=varunkumarb - - run: - - command: export LT_ACCESS_KEY=doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU - - run: - - command: npm run single - - - # This is the node version to use for the `cimg/node` tag - # Relevant tags can be found on the CircleCI Developer Hub - # https://circleci.com/developer/images/image/cimg/node +executors: + my-custom-executor: + docker: + - image: circleci/node:7.10 + +jobs: + wdio-test: + environment: + LT_USERNAME: varunkumarb + LT_ACCESS_KEY: doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU + executor: my-custom-executor + steps: + - checkout + - run: | + npm install webdriverio + npm i selenium-webdriver + npm run single - \ No newline at end of file + +workflows: + my-custom-workflow: + jobs: + - wdio-test \ No newline at end of file From 6878cd0e50ba42cdbcdf8e2bdb56f16ad02b1799 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 21:08:45 +0530 Subject: [PATCH 06/13] Updated config.yml --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c7e4c86..38cbaec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,8 +13,7 @@ jobs: steps: - checkout - run: | - npm install webdriverio - npm i selenium-webdriver + npm i npm run single From 42e62337b6d4c7759a56218e23a5326507e2c542 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 21:15:17 +0530 Subject: [PATCH 07/13] Update package.json --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 11e6917..b5ed5a8 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "bugs": {}, "homepage": "https://github.com/Lambdatest/webdriverio-Lambdatest#readme", "dependencies": { - "@wdio/cli": "^5.20.1", - "@wdio/local-runner": "^5.20.1", - "@wdio/mocha-framework": "^5.18.7" + "@wdio/cli": "^7.25.1", + "@wdio/local-runner": "^7.25.1", + "@wdio/mocha-framework": "^7.25.1" } } From 85f9d1e68e5b3803bcfebb447627e8665ff7a309 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Mon, 10 Oct 2022 21:16:11 +0530 Subject: [PATCH 08/13] Updated config.yml --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 38cbaec..8e15638 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,6 @@ jobs: npm i npm run single - workflows: my-custom-workflow: jobs: From b4372c6295b329775d29800a40464de00de86467 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Wed, 6 Aug 2025 00:15:29 +0530 Subject: [PATCH 09/13] Add .circleci/config.yml --- .circleci/config.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8e15638..b347b08 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,22 +1,20 @@ version: 2.1 -executors: - my-custom-executor: - docker: - - image: circleci/node:7.10 - + jobs: - wdio-test: - environment: - LT_USERNAME: varunkumarb - LT_ACCESS_KEY: doLbtRzYpWdpD1xxcIQdByQ1b7kmqMNg43DrpsYwGxbPBtphNU - executor: my-custom-executor + run-tests: + docker: + - image: cimg/node:18.20 # Use a Node.js image, change version if needed steps: - checkout - - run: | - npm i - npm run single - + - run: + name: Install dependencies + command: npm install + - run: + name: Run single test + command: npm run single + workflows: - my-custom-workflow: + version: 2 + run-all: jobs: - - wdio-test \ No newline at end of file + - run-tests From 1dcce4e6e9f9ffbe318822f8e3918671a4d661f2 Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Wed, 6 Aug 2025 00:25:50 +0530 Subject: [PATCH 10/13] Updated config.yml --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b347b08..49670f0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,10 @@ version: 2.1 jobs: run-tests: docker: - - image: cimg/node:18.20 # Use a Node.js image, change version if needed + - image: cimg/node:18.20 + environment: + LT_USERNAME: $LT_USERNAME + LT_ACCESS_KEY: $LT_ACCESS_KEY steps: - checkout - run: From 455103dc3bebf45184e3602685e8ba0656e69e4e Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Wed, 6 Aug 2025 00:39:43 +0530 Subject: [PATCH 11/13] Updated config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 49670f0..c0fe97b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,8 +5,8 @@ jobs: docker: - image: cimg/node:18.20 environment: - LT_USERNAME: $LT_USERNAME - LT_ACCESS_KEY: $LT_ACCESS_KEY + LT_USERNAME: varunkumarb + LT_ACCESS_KEY: LT_KKkSe0kYnq4nzjNBLJmk0c1HSo1PUWtH7exYP8zVemT6dyw steps: - checkout - run: From 13a9cdc57756fd8be0aa92c24a07f9daf9f5328f Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Wed, 6 Aug 2025 00:57:07 +0530 Subject: [PATCH 12/13] Updated config.yml --- .circleci/config.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c0fe97b..ecdbd4c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,17 +4,25 @@ jobs: run-tests: docker: - image: cimg/node:18.20 - environment: - LT_USERNAME: varunkumarb - LT_ACCESS_KEY: LT_KKkSe0kYnq4nzjNBLJmk0c1HSo1PUWtH7exYP8zVemT6dyw steps: - checkout + + - run: + name: Show LambdaTest Credentials (For Debug Only) + command: | + echo "Username: $LT_USERNAME" + echo "Access Key: $LT_ACCESS_KEY" + - run: name: Install dependencies command: npm install + - run: - name: Run single test - command: npm run single + name: Run single test with env + command: | + export LT_USERNAME=$LT_USERNAME + export LT_ACCESS_KEY=$LT_ACCESS_KEY + npm run single workflows: version: 2 From 86eb9b46e36ad290ff54e1c3bd80e6b2657ce3ed Mon Sep 17 00:00:00 2001 From: varunlambda <108345053+varunlambda@users.noreply.github.com> Date: Wed, 6 Aug 2025 01:00:31 +0530 Subject: [PATCH 13/13] Update config.yml --- .circleci/config.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ecdbd4c..11ebf66 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,12 +7,6 @@ jobs: steps: - checkout - - run: - name: Show LambdaTest Credentials (For Debug Only) - command: | - echo "Username: $LT_USERNAME" - echo "Access Key: $LT_ACCESS_KEY" - - run: name: Install dependencies command: npm install