Skip to content

Commit

Permalink
Make the tests to run in parallel using testng approach
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshshetty committed Jun 1, 2024
1 parent e391c3c commit c111c35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/DemoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void demoAndroidTest() {
Server.getDriver().findElement(AppiumBy.accessibilityId("App")).click();
}

@Test
@Test(threadPoolSize = 3, invocationCount = 1)
@SneakyThrows
public void demoIOSTest1() {
DriverFactory.getDriverInstance("iOSSimulator").setup();
Expand All @@ -29,7 +29,7 @@ public void demoIOSTest1() {
Server.getDriver().findElement(AppiumBy.xpath("//XCUIElementTypeButton[@name=\"tab bar option catalog\"]")).click();
}

@Test
@Test(threadPoolSize = 3, invocationCount = 1)
@SneakyThrows
public void demoIOSTest2() {
DriverFactory.getDriverInstance("iOSSimulator").setup();
Expand All @@ -41,7 +41,7 @@ public void demoIOSTest2() {
Server.getDriver().findElement(AppiumBy.xpath("//XCUIElementTypeButton[@name=\"tab bar option menu\"]")).click();
}

@Test
@Test(threadPoolSize = 3, invocationCount = 1)
@SneakyThrows
public void demoIOSTest3() {
DriverFactory.getDriverInstance("iOSSimulator").setup();
Expand Down

0 comments on commit c111c35

Please sign in to comment.