Last active
August 29, 2015 14:20
-
-
Save drorm/454856765f8b7906e1a2 to your computer and use it in GitHub Desktop.
Nightwatch.js local with phantom.js or on saucelabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"src_folders" : ["tests"], | |
"output_folder" : "reports", | |
"custom_commands_path" : "", | |
"custom_assertions_path" : "", | |
"page_objects_path" : "", | |
"globals_path" : "", | |
"selenium" : { | |
"start_process" : false, | |
"server_path" : "", | |
"log_path" : "", | |
"host" : "127.0.0.1", | |
"port" : 4444, | |
"cli_args" : { | |
"webdriver.chrome.driver" : "", | |
"webdriver.ie.driver" : "" | |
} | |
}, | |
"test_settings" : { | |
"phantom" : { | |
"launch_url" : "http://localhost", | |
"selenium_port" : 4444, | |
"selenium_host" : "localhost", | |
"silent": true, | |
"screenshots" : { | |
"enabled" : false, | |
"path" : "" | |
}, | |
"desiredCapabilities": { | |
"browserName": "phantomjs", | |
"javascriptEnabled": true, | |
"acceptSslCerts": true | |
} | |
}, | |
"saucelabs" : { | |
"selenium_host": "ondemand.saucelabs.com", | |
"selenium_port": 80, | |
"username": "yourname", | |
"access_key": "xxxxxxxxxxxx", | |
"desiredCapabilities": { | |
"browserName": "chrome", | |
"platform": "Windows 8.1", | |
"version": "40" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Need to run these first | |
# Download Selenium and phantom.js for your platform (You probably want to redirect to a file the following). | |
java -jar selenium-server-standalone-2.45.0.jar -role hub & | |
phantomjs --webdriver=8080 --webdriver-selenium-grid-hub=http://0.0.0.0:4444 & | |
#Download nightwatch.js | |
#Once the above are running | |
#nightwatch --env phantom | |
#Or | |
#nightwatch --env saucelabs | |
#will run the appropriate version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment