Skip to content

Commit

Permalink
added parallel-support
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaktiwari committed Dec 17, 2024
1 parent 794039c commit e274ded
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/config.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#automation Platform can be android or ios,web,api
AutomationPlatform=web
AutomationPlatform=android
UiEnv=staging
ApiEnv=staging
#execution mode can be local or cloud
ExecutionMode=local
ExecutionMode=cloud
AppiumJsPathMac=/Users/deepaktiwari/node_modules/appium/build/lib/main.js
AppiumJsPathWindows=/usr/local/lib/node_modules/appium/build/lib/main.js
AppiumJsPathLinux=/usr/local/lib/node_modules/appium/build/lib/main.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public void firstFailedTest() throws Exception {
public void secondTest() throws Exception {

logger.info("Test 2 successfully launched");
Assert.assertTrue(true);
Assert.assertTrue(false);
}
}
1 change: 0 additions & 1 deletion testng-cucumber.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<suite name="First Suite" parallel="classes">
<test name="Chrome Test" parallel="classes">
<classes>
<class name ="runners.bdd.com.ct.framework.RunTest"></class>
</classes>
</test>
</suite>
22 changes: 22 additions & 0 deletions testng-parallel.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite" parallel="tests" thread-count="2">

<listeners>
<listener class-name="com.ct.framework.reporting.ExtentTestNGITestListener" />
</listeners>

<test name="Sample Sanity Test">
<classes>
<class name="com.ct.framework.testscripts.ios.TS_CT_SampleTest"/>
</classes>
</test>
<test name="Sample Smoke Test">
<classes>
<class name="com.ct.framework.testscripts.ios.TS_CT_SampleTest"/>
</classes>
</test>



</suite>
8 changes: 2 additions & 6 deletions testng.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite" parallel="tests" thread-count="2">
<suite name="Suite">

<listeners>
<listener class-name="com.ct.framework.reporting.ExtentTestNGITestListener" />
Expand All @@ -11,11 +11,7 @@
<class name="com.ct.framework.testscripts.ios.TS_CT_SampleTest"/>
</classes>
</test>
<test name="Sample Smoke Test">
<classes>
<class name="com.ct.framework.testscripts.ios.TS_CT_SampleTest"/>
</classes>
</test>




Expand Down

0 comments on commit e274ded

Please sign in to comment.