diff --git a/src/test/java/Test1.java b/src/test/java/sample/Test1.java similarity index 93% rename from src/test/java/Test1.java rename to src/test/java/sample/Test1.java index b68305d..77ecdad 100644 --- a/src/test/java/Test1.java +++ b/src/test/java/sample/Test1.java @@ -1,3 +1,4 @@ +package sample; import org.openqa.selenium.WebDriver; import org.openqa.selenium.*; import org.openqa.selenium.remote.DesiredCapabilities; @@ -18,13 +19,16 @@ public class Test1 public static String status = "passed"; public static String username = System.getenv("LT_USERNAME"); public static String access_key = System.getenv("LT_ACCESS_KEY"); + public static String browser = "Chrome"; + public static String version = "latest"; + public static String platform = "Windows"; + public static String resolution = "1024x768"; // String testURL = "https://todomvc.com/examples/react/#/"; String testURL = "https://lambdatest.github.io/sample-todo-app/"; String testURLTitle = "Sample page - lambdatest.com"; @BeforeMethod - @Parameters(value={"browser","version","platform", "resolution"}) - public void testSetUp(String browser, String version, String platform, String resolution) throws Exception + public void testSetUp() throws Exception { String platformName = System.getenv("HYPEREXECUTE_PLATFORM") != null ? System.getenv("HYPEREXECUTE_PLATFORM") : platform; diff --git a/src/test/java/Test2.java b/src/test/java/sample/Test2.java similarity index 91% rename from src/test/java/Test2.java rename to src/test/java/sample/Test2.java index 3ebbfa2..8455572 100644 --- a/src/test/java/Test2.java +++ b/src/test/java/sample/Test2.java @@ -1,4 +1,4 @@ -import org.openqa.selenium.WebDriver; +package sample; import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.remote.DesiredCapabilities; @@ -17,13 +17,16 @@ public class Test2 public static String status = "passed"; String username = Test1.username; String access_key = Test1.access_key; + public static String browser = "MicrosoftEdge"; + public static String version = "latest"; + public static String platform = "Windows"; + public static String resolution = "1024x768"; // String testURL = "https://todomvc.com/examples/react/#/"; String testURL = "https://lambdatest.github.io/sample-todo-app/"; String testURLTitle = "Sample page - lambdatest.com"; @BeforeMethod - @Parameters(value={"browser","version","platform", "resolution"}) - public void testSetUp(String browser, String version, String platform, String resolution) throws Exception + public void testSetUp() throws Exception { String platformName = System.getenv("HYPEREXECUTE_PLATFORM") != null ? System.getenv("HYPEREXECUTE_PLATFORM") : platform; diff --git a/src/test/java/Test3.java b/src/test/java/sample/Test3.java similarity index 91% rename from src/test/java/Test3.java rename to src/test/java/sample/Test3.java index 2ea7439..12fd81c 100644 --- a/src/test/java/Test3.java +++ b/src/test/java/sample/Test3.java @@ -1,4 +1,4 @@ -import org.openqa.selenium.WebDriver; +package sample; import org.openqa.selenium.*; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; @@ -21,10 +21,13 @@ public class Test3 // String testURL = "https://todomvc.com/examples/react/#/"; String testURL = "https://lambdatest.github.io/sample-todo-app/"; String testURLTitle = "Sample page - lambdatest.com"; + public static String browser = "Chrome"; + public static String version = "latest"; + public static String platform = "Windows"; + public static String resolution = "1024x768"; @BeforeMethod - @Parameters(value={"browser","version","platform", "resolution"}) - public void testSetUp(String browser, String version, String platform, String resolution) throws Exception + public void testSetUp() throws Exception { String platformName = System.getenv("HYPEREXECUTE_PLATFORM") != null ? System.getenv("HYPEREXECUTE_PLATFORM") : platform; diff --git a/src/test/java/Test4.java b/src/test/java/sample/Test4.java similarity index 94% rename from src/test/java/Test4.java rename to src/test/java/sample/Test4.java index 35530c0..c931fdc 100644 --- a/src/test/java/Test4.java +++ b/src/test/java/sample/Test4.java @@ -1,4 +1,4 @@ -import org.openqa.selenium.WebDriver; +package sample; import org.openqa.selenium.*; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; @@ -21,10 +21,13 @@ public class Test4 // String testURL = "https://todomvc.com/examples/react/#/"; String testURL = "https://lambdatest.github.io/sample-todo-app/"; String testURLTitle = "Sample page - lambdatest.com"; + public static String browser = "MicrosoftEdge"; + public static String version = "latest"; + public static String platform = "Windows"; + public static String resolution = "1024x768"; @BeforeMethod - @Parameters(value={"browser","version","platform", "resolution"}) - public void testSetUp(String browser, String version, String platform, String resolution) throws Exception + public void testSetUp() throws Exception { String platformName = System.getenv("HYPEREXECUTE_PLATFORM") != null ? System.getenv("HYPEREXECUTE_PLATFORM") : platform; diff --git a/target/test-classes/Test1.class b/target/test-classes/Test1.class deleted file mode 100644 index 9fbbc79..0000000 Binary files a/target/test-classes/Test1.class and /dev/null differ diff --git a/target/test-classes/Test2.class b/target/test-classes/Test2.class deleted file mode 100644 index d1fa55b..0000000 Binary files a/target/test-classes/Test2.class and /dev/null differ diff --git a/target/test-classes/Test3.class b/target/test-classes/Test3.class deleted file mode 100644 index 82faa34..0000000 Binary files a/target/test-classes/Test3.class and /dev/null differ diff --git a/target/test-classes/Test4.class b/target/test-classes/Test4.class deleted file mode 100644 index 7364c4c..0000000 Binary files a/target/test-classes/Test4.class and /dev/null differ diff --git a/xml/testng_linux.xml b/xml/testng_linux.xml deleted file mode 100644 index 56820b6..0000000 --- a/xml/testng_linux.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/testng_mac.xml b/xml/testng_mac.xml deleted file mode 100644 index f4be3fd..0000000 --- a/xml/testng_mac.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/testng_suite_A.xml b/xml/testng_suite_A.xml new file mode 100644 index 0000000..aa8ed86 --- /dev/null +++ b/xml/testng_suite_A.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/xml/testng_suite_B.xml b/xml/testng_suite_B.xml new file mode 100644 index 0000000..60e6704 --- /dev/null +++ b/xml/testng_suite_B.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/xml/testng_suite_C.xml b/xml/testng_suite_C.xml new file mode 100644 index 0000000..7a32399 --- /dev/null +++ b/xml/testng_suite_C.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/xml/testng_suite_D.xml b/xml/testng_suite_D.xml new file mode 100644 index 0000000..3b5378b --- /dev/null +++ b/xml/testng_suite_D.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/xml/testng_win.xml b/xml/testng_win.xml deleted file mode 100644 index 362649c..0000000 --- a/xml/testng_win.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xml/testng_win11.xml b/xml/testng_win11.xml deleted file mode 100644 index 0c7febd..0000000 --- a/xml/testng_win11.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -