From d6e73a925f972ce9a173a5c16d70c9dfc48c6478 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:59:21 +0000 Subject: [PATCH 01/10] CI check --- tests/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index 71e16666..88fa751d 100644 --- a/tests/test.js +++ b/tests/test.js @@ -35,7 +35,8 @@ async function searchTextOnGoogle() { accessKey: KEY, name: "test session", // name of the test build: platform + browserName + version, // name of the build - "smartUI.project": "github-integration-demo", + "smartUI.project": "CI-Check-NBC", + "smartUI.build": "[PR: 6208]", github: { url: process.env.GITHUB_URL, }, From 38130bc541fd0f94fbaf7c45285f926b4c9d157b Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:04:46 +0000 Subject: [PATCH 02/10] testing --- tests/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index 88fa751d..895c0ae4 100644 --- a/tests/test.js +++ b/tests/test.js @@ -35,7 +35,7 @@ async function searchTextOnGoogle() { accessKey: KEY, name: "test session", // name of the test build: platform + browserName + version, // name of the build - "smartUI.project": "CI-Check-NBC", + "smartUI.project": "NBC-Storybook-222222", "smartUI.build": "[PR: 6208]", github: { url: process.env.GITHUB_URL, From f7a7b2335ef01dcec0beeccc0a932d9ff4e81687 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:06:28 +0000 Subject: [PATCH 03/10] testing --- tests/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index 895c0ae4..8750ad01 100644 --- a/tests/test.js +++ b/tests/test.js @@ -36,7 +36,7 @@ async function searchTextOnGoogle() { name: "test session", // name of the test build: platform + browserName + version, // name of the build "smartUI.project": "NBC-Storybook-222222", - "smartUI.build": "[PR: 6208]", + "smartUI.build": "1234", github: { url: process.env.GITHUB_URL, }, From e5beb11651602b15575ec1c5ef67586031dd1038 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:14:10 +0000 Subject: [PATCH 04/10] CI check --- tests/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index 8750ad01..dd9e9cb3 100644 --- a/tests/test.js +++ b/tests/test.js @@ -36,7 +36,7 @@ async function searchTextOnGoogle() { name: "test session", // name of the test build: platform + browserName + version, // name of the build "smartUI.project": "NBC-Storybook-222222", - "smartUI.build": "1234", + "smartUI.build": "[123]", github: { url: process.env.GITHUB_URL, }, From 34e9df192ed61595327d9186870bba1b75f11995 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:16:10 +0000 Subject: [PATCH 05/10] CI check --- tests/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.js b/tests/test.js index dd9e9cb3..d12a415c 100644 --- a/tests/test.js +++ b/tests/test.js @@ -35,8 +35,8 @@ async function searchTextOnGoogle() { accessKey: KEY, name: "test session", // name of the test build: platform + browserName + version, // name of the build - "smartUI.project": "NBC-Storybook-222222", - "smartUI.build": "[123]", + "smartUI.project": "DOT-3237", + "smartUI.build": "[PR: 6208]", github: { url: process.env.GITHUB_URL, }, From e9ea02bcf0cfdc37c70a5c8e2fce0080e8fe3a8f Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:27:19 +0000 Subject: [PATCH 06/10] CI Check --- tests/test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test.js b/tests/test.js index d12a415c..fceac685 100644 --- a/tests/test.js +++ b/tests/test.js @@ -11,10 +11,9 @@ const KEY = process.env.LT_ACCESS_KEY || "accessKey"; // gridUrl: gridUrl can be found at automation dashboard const GRID_HOST = -process.env.GRID_HOST || "@hub.lambdatest.com/wd/hub"; //connect to lambdatest hub - -const GRID_URL = process.env.GRID_URL || "GRID_URL"; +process.env.GRID_HOST || "@stage-hub.lambdatestinternal.com/wd/hub"; //connect to lambdatest hub +const GRID_URL = "https://arushs:V7GG7oG5LPQAjaqOejgJfVmgzaIaLNrLMMhhOcxXhaNDgyPnz8@stage-hub.lambdatestinternal.com/wd/hub" async function searchTextOnGoogle() { var keys = process.argv; console.log(keys); From c6fd015e11cc499d05283b04cc9828df98d1cdfc Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:31:22 +0000 Subject: [PATCH 07/10] CI Check --- tests/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.js b/tests/test.js index fceac685..88bb275d 100644 --- a/tests/test.js +++ b/tests/test.js @@ -34,7 +34,7 @@ async function searchTextOnGoogle() { accessKey: KEY, name: "test session", // name of the test build: platform + browserName + version, // name of the build - "smartUI.project": "DOT-3237", + "smartUI.project": "[PR: 6208]", "smartUI.build": "[PR: 6208]", github: { url: process.env.GITHUB_URL, @@ -84,7 +84,7 @@ async function startTest(gridUrl, capabilities, name) { // For Smartui TakeScreenshot setTimeout(function () { console.log("taking screenshot ...") - driver.executeScript(`smartui.takeScreenshot,{"screenshotName":"sample-screenshot"}`).then(out => { + driver.executeScript(`smartui.takeScreenshot,{"screenshotName":"[PR: 6208]"}`).then(out => { console.log("RESPONSE :", out) return }); From d93765ecc8c7d5593c9f187c090eb4f1a08086d4 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:34:46 +0000 Subject: [PATCH 08/10] CI Check --- tests/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index 88bb275d..fec4ecbf 100644 --- a/tests/test.js +++ b/tests/test.js @@ -84,7 +84,7 @@ async function startTest(gridUrl, capabilities, name) { // For Smartui TakeScreenshot setTimeout(function () { console.log("taking screenshot ...") - driver.executeScript(`smartui.takeScreenshot,{"screenshotName":"[PR: 6208]"}`).then(out => { + driver.executeScript(`smartui.takeFullPageScreenshot=a`).then(out => { console.log("RESPONSE :", out) return }); From 4215ad50d92b6225624d9db3d57086adb0a51be4 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:14:28 +0000 Subject: [PATCH 09/10] Prod-Testing-NBC --- tests/test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test.js b/tests/test.js index fec4ecbf..6c7860e8 100644 --- a/tests/test.js +++ b/tests/test.js @@ -12,8 +12,9 @@ const KEY = process.env.LT_ACCESS_KEY || "accessKey"; // gridUrl: gridUrl can be found at automation dashboard const GRID_HOST = process.env.GRID_HOST || "@stage-hub.lambdatestinternal.com/wd/hub"; //connect to lambdatest hub - -const GRID_URL = "https://arushs:V7GG7oG5LPQAjaqOejgJfVmgzaIaLNrLMMhhOcxXhaNDgyPnz8@stage-hub.lambdatestinternal.com/wd/hub" +//WfRICjYR1PSzmq21mWvpDuwYRtn5OrzPov4wAbB7Bt8qNaAFC7 +// const GRID_URL = "https://arushs:V7GG7oG5LPQAjaqOejgJfVmgzaIaLNrLMMhhOcxXhaNDgyPnz8@stage-hub.lambdatestinternal.com/wd/hub" +const GRID_URL = "https://arushs:WfRICjYR1PSzmq21mWvpDuwYRtn5OrzPov4wAbB7Bt8qNaAFC7@hub.lambdatest.com/wd/hub" async function searchTextOnGoogle() { var keys = process.argv; console.log(keys); @@ -34,7 +35,7 @@ async function searchTextOnGoogle() { accessKey: KEY, name: "test session", // name of the test build: platform + browserName + version, // name of the build - "smartUI.project": "[PR: 6208]", + "smartUI.project": "Prod-Testing-NBC", "smartUI.build": "[PR: 6208]", github: { url: process.env.GITHUB_URL, From 5ba1b146fddc377d6d401ee713add7d837b67753 Mon Sep 17 00:00:00 2001 From: Arush Saxena <88478157+arushsaxena1998@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:20:32 +0000 Subject: [PATCH 10/10] Prod-Testing-NBC --- tests/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index 6c7860e8..58127f33 100644 --- a/tests/test.js +++ b/tests/test.js @@ -85,7 +85,7 @@ async function startTest(gridUrl, capabilities, name) { // For Smartui TakeScreenshot setTimeout(function () { console.log("taking screenshot ...") - driver.executeScript(`smartui.takeFullPageScreenshot=a`).then(out => { + driver.executeScript(`smartui.takeScreenshot=a`).then(out => { console.log("RESPONSE :", out) return });