You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You've added your application specific TestNG/Selenium test classes in a sub-package. eg. com.sios.stc.coseng.tests.myWebApp
TestNG suite XML created with the test classes you want to test. Example classes.xml
COSENG Tests JSON created with the locaion, platform, browser and other details specific to your test case. Created in project's src/main/resources/coseng/tests. Example multiple-suites.json
[Optional] COSENG Node JSON for web driver executable paths and alternate temporary and report directories specific to your environment. Created in project's src/main/resources/coseng/config. java -jar coseng-2.1.0-jar-with-dependencies.jar -help for Node JSON example.
Run your tests with appropriate arguments to confirm expected behavior. eg. -node coseng/config/myNode.json -tests coseng/tests/myTests.json
Build the custom executable COSENG jar: mvn clean package
The custom executable jar will be found at: target/coseng-2.1.0-jar-with-dependencies.jar. JavaDoc, sources and coseng (w/o dependencies) jars also created.
Run your tests! java -jar coseng-2.1.0-jar-with-dependencies.jar -node coseng/config/myNode.json -tests coseng/tests/myTests.json
Now you can copy just one self contained jar to any supported platform and execute your tests!