Skip to content

Instantly share code, notes, and snippets.

@savelee
Last active March 17, 2022 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/15a5ef5e2fb4bde7ca9483ae920cc962 to your computer and use it in GitHub Desktop.
Save savelee/15a5ef5e2fb4bde7ca9483ae920cc962 to your computer and use it in GitHub Desktop.
Run Sencha Test with Webdriver
//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.
{
"mykey": {
"path": "/developers"
},
"anotherkey": {
"path": "/qa"
}
}
//pool/WebDriver.json
[
{
"chunks": 1,
"browserName": "firefox",
"platform": "Windows 7",
"version": 38
}
]
"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