-
Notifications
You must be signed in to change notification settings - Fork 2
1. QuickDemo
James Crocker edited this page Nov 12, 2016
·
5 revisions
This will execute a simple Selenium search form test for the search sites Google, Bing, DuckDuckGo and Ask. It will create an individual Selenium/TestNG for each platform browser. It will then launch a web driver in parallel with the respective TestNG <suite parallel="tests|classes|methods"> parallelization mode. It will not use any Selenium-HUB grid servers. Running the demonstration on Linux will spawn 8 web driver for Chrome and 8 web driver for Firefox.
-
Java
- (Linux) Java1.8+ or OpenJDK-8
- (Windows) Java1.8+
-
Download COSENG Java JAR with dependencies
- (Linux & Windows) coseng-2.1.0-jar-with-dependencies.jar
-
Read COSENG Help
- (Linux & Windows)
java -jar coseng-2.1.0-jar-with-dependencies.jar -help
- (Linux & Windows)
-
Browsers
- (Linux) Requires Chrome and Firefox
- (Windows) Requires Chrome, Firefox, Internet Explorer 11 and Edge
-
Web Drivers
- NOTE! Each respective browser's web driver should support the installed browser version; if there is a mismatch tests may fail.
- See WebDriver Sources
- (Linux) Requires chromedriver and geckodriver
- (Windows) Requires chromedriver.exe, geckodriver.exe, IEDriverServer.exe and MicrosoftWebDriver.exe
- After reviewing the
coseng -help, if the default locations of the browser's web driver is different from your environment create anode.jsonfile. Populatenode.jsonwith the absolute paths of the respective browser's web driver. - If you can't/haven't/won't install all supported platform browsers, copy suite-files.json and change
"browser": "all"to reflect the specific browser you want to test against. ie"browser": "chrome"or"browser": "firefox"or"browser": "edge"or"browser": "ie"
-
Run Demo
-
java -jar coseng-2.1.0-jar-with-dependencies.jar -demo(OK node defaults) -
java -jar coseng-2.1.0-jar-with-dependencies.jar -demo -node node.json(w/ custom node web driver paths) -
java -jar coseng-2.1.0-jar-with-dependencies.jar -tests suite-files.json(w/ specific browser; OK node defaults) -
java -jar coseng-2.1.0-jar-with-dependencies.jar -tests suite-files.json -node node.json(w/ specific browser; w/ custom node web driver paths)
-
-
Demo Details
- Coseng Test executed
- suite-files.json (Chrome and Firefox on Linux; Chrome, Firefox, Edge and IE on Windows)
- TestNG suite XML
-
suite-files.xml
-
tests.xml (3 web driver for each platform browser; one separate and unique web driver for each
<test>) -
classes.xml (2 web driver for each platform browser; one separate and unique web driver one for each
<class>) -
methods.xml (2 web driver for each platform browser; one separate and unique web driver for each included
<method>) - urls.xml (1 web driver for each platform browser)
-
tests.xml (3 web driver for each platform browser; one separate and unique web driver for each
-
suite-files.xml
- Coseng Test executed