-
-
Save savelee/15a5ef5e2fb4bde7ca9483ae920cc962 to your computer and use it in GitHub Desktop.
Run Sencha Test with Webdriver
This file contains 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
//run webdriver: | |
java -jar selenium-server-standalone-2.53.0.jar | |
//run test archiver | |
//this requires a TestArchiveStorage folder with a storage.json file | |
//from ST Studio interface, you will have to add a browser to the pool | |
cd ~/bin/Sencha/TestArchiveStorage | |
stc server | |
//run a test from the command-line | |
stc run -p "WebDriver" -S http://localhost:1903 -k secret -s pathToScenario | |
//and for better webdriver, if you want try other browser is good this npm package https://www.npmjs.com/package/selenium-standalone | |
//then easily standalone-selenium start and we can test Chrome, Safari too. |
This file contains 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
{ | |
"mykey": { | |
"path": "/developers" | |
}, | |
"anotherkey": { | |
"path": "/qa" | |
} | |
} |
This file contains 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
//pool/WebDriver.json | |
[ | |
{ | |
"chunks": 1, | |
"browserName": "firefox", | |
"platform": "Windows 7", | |
"version": 38 | |
} | |
] |
This file contains 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
"tests": { | |
"browser": { | |
"farms": [ | |
{ | |
"name": "w", | |
"type": "generic", | |
"accessKey": "", | |
"host": "localhost", | |
"port": 4444, | |
"sessionLimit": 10, | |
"autoStartTunnel": false, | |
"pools": [ | |
{ | |
"name": "WebDriver", | |
"path": "pool/WebDriver.json" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment