From 63046a606b304f6987ea37590b199ac0ea6c2eb1 Mon Sep 17 00:00:00 2001 From: sushobhit-lt Date: Wed, 28 Oct 2020 21:44:24 +0530 Subject: [PATCH 1/2] update windows-10 xml --- Win10.xml | 1523 ++--------------- src/main/java/magicleapTesting/magicLeap.java | 8 +- 2 files changed, 129 insertions(+), 1402 deletions(-) diff --git a/Win10.xml b/Win10.xml index 3b2a468..69c7768 100644 --- a/Win10.xml +++ b/Win10.xml @@ -1,1401 +1,130 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/magicleapTesting/magicLeap.java b/src/main/java/magicleapTesting/magicLeap.java index 9d0687a..12cb6b6 100644 --- a/src/main/java/magicleapTesting/magicLeap.java +++ b/src/main/java/magicleapTesting/magicLeap.java @@ -14,8 +14,8 @@ public class magicLeap { - public String username = "prateeks"; - public String accesskey = "IuCSesD83A7LsTFzEKS0Lb6tzvEfBQ38DMkFTEpudatxxxsdjH"; + public String username = System.getProperty("LT_USERNAME"); + public String accesskey = System.getProperty("LT_ACCESS_KEY"); public RemoteWebDriver driver; public String gridURL = "@hub.lambdatest.com/wd/hub"; //"@eu-central-1-hub.lambdatest.com/wd/hub"; String status; @@ -76,8 +76,6 @@ public magicLeap(String browser, String version, String platform, String fixedIp @BeforeTest public void setUp() throws Exception { System.out.println(this.TestName); - - // for (int i = 0; i < 80; i++) { try { @@ -200,7 +198,7 @@ public void DesktopScript() { } System.out.println(hub);*/ -System.out.println(driver.getCapabilities()); + System.out.println(driver.getCapabilities()); TodoApp TodoAppTestObject = new TodoApp(); TodoAppTestObject.TodoAppTest(driver); From 7619d2af36a1d1550d34b464ddc1caf66879a040 Mon Sep 17 00:00:00 2001 From: sushobhit-lt Date: Wed, 28 Oct 2020 23:32:33 +0530 Subject: [PATCH 2/2] build number added --- src/main/java/magicleapTesting/magicLeap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/magicleapTesting/magicLeap.java b/src/main/java/magicleapTesting/magicLeap.java index 12cb6b6..960196c 100644 --- a/src/main/java/magicleapTesting/magicLeap.java +++ b/src/main/java/magicleapTesting/magicLeap.java @@ -84,7 +84,7 @@ public void setUp() throws Exception { capabilities.setCapability("version", this.versionValue); //capabilities.setCapability("version", "latest" + "-" + i); capabilities.setCapability("platform", this.PlatformValue); - capabilities.setCapability("build", "Performance/Jenkins-8 " + " " + this.PlatformValue); + capabilities.setCapability("build", "Performance/Jenkins-8 " + " " + this.PlatformValue + System.getProperty("BUILD_NUMBER")); capabilities.setCapability("name", this.TestName); capabilities.setCapability("resolution", this.ResolutionValueCap); capabilities.setCapability("console", true);