Skip to content

Update for v3 yaml #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: Version3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/test/java/Test1.java → src/test/java/sample/Test1.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package sample;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.DesiredCapabilities;
Expand All @@ -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;

Expand Down
9 changes: 6 additions & 3 deletions src/test/java/Test2.java → src/test/java/sample/Test2.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down
9 changes: 6 additions & 3 deletions src/test/java/Test3.java → src/test/java/sample/Test3.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down
9 changes: 6 additions & 3 deletions src/test/java/Test4.java → src/test/java/sample/Test4.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down
Binary file removed target/test-classes/Test1.class
Binary file not shown.
Binary file removed target/test-classes/Test2.class
Binary file not shown.
Binary file removed target/test-classes/Test3.class
Binary file not shown.
Binary file removed target/test-classes/Test4.class
Binary file not shown.
45 changes: 0 additions & 45 deletions xml/testng_linux.xml

This file was deleted.

45 changes: 0 additions & 45 deletions xml/testng_mac.xml

This file was deleted.

14 changes: 14 additions & 0 deletions xml/testng_suite_A.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite A: TestNG Execution using HyperExecute" thread-count="1" parallel="methods">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter"/>
<listener class-name="org.uncommons.reportng.JUnitXMLReporter"/>
</listeners>

<test name="Test_1">
<classes>
<class name="sample.Test1" />
</classes>
</test>
</suite>
14 changes: 14 additions & 0 deletions xml/testng_suite_B.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite B: TestNG Execution using HyperExecute" thread-count="1" parallel="methods">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter"/>
<listener class-name="org.uncommons.reportng.JUnitXMLReporter"/>
</listeners>

<test name="Test_2">
<classes>
<class name="sample.Test2" />
</classes>
</test>
</suite>
14 changes: 14 additions & 0 deletions xml/testng_suite_C.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite C: TestNG Execution using HyperExecute" thread-count="1" parallel="methods">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter"/>
<listener class-name="org.uncommons.reportng.JUnitXMLReporter"/>
</listeners>

<test name="Test_3">
<classes>
<class name="sample.Test3" />
</classes>
</test>
</suite>
14 changes: 14 additions & 0 deletions xml/testng_suite_D.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite D: TestNG Execution using HyperExecute" thread-count="1" parallel="methods">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter"/>
<listener class-name="org.uncommons.reportng.JUnitXMLReporter"/>
</listeners>

<test name="Test_4">
<classes>
<class name="sample.Test4" />
</classes>
</test>
</suite>
45 changes: 0 additions & 45 deletions xml/testng_win.xml

This file was deleted.

45 changes: 0 additions & 45 deletions xml/testng_win11.xml

This file was deleted.