I've seen what looks like only partial documentation on this subject. From this, and a few other random posts online, I've gleaned:
However, this returns:
java.lang.RuntimeException: Test run failed: unable to create driver.
at com.sebuilder.interpreter.TestRun.initRemoteWebDriver(TestRun.java:274)
at com.sebuilder.interpreter.TestRun.next(TestRun.java:147)
at com.sebuilder.interpreter.TestRun.finish(TestRun.java:196)
at com.sebuilder.interpreter.SeInterpreter.main(SeInterpreter.java:101)
Caused by: org.openqa.selenium.WebDriverException: Session not started or terminated (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 340 milliseconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'
Or should a config.json file be setup that contains the information, in which case how is this taken into account? Something like:
java -jar SeInterpreter.jar test.json (and it automatically looks up the config file? If so, what do you name the config file?)
For anyone looking to run the nodeJS SeInterpreter with browserstack, I do have this working:
config file example:
{
"type": "interpreter-config",
"configurations": [
{
"settings": [
{
"driverOptions": {
"port": 80
},
"browserOptions": {
"browserName": "firefox",
"browserstack.user": "youremail",
"browserstack.key": "yourkey"
}
}
],
"scripts": [
"suite.json"
]
}
]
}
suite.json:
{
"type": "suite",
"seleniumVersion": "2",
"formatVersion": 1,
"scripts": [
{
"where": "local",
"path": "bbctest.json"
},
{
"where": "local",
"path": "googletest.json"
}
],
"shareState": true
}
bbctest.json:
{
"type": "script",
"seleniumVersion": "2",
"formatVersion": 2,
"steps": [
{
"type": "get",
},
{
"type": "store",
"text": "News",
"variable": "myvar"
},
{
"type": "assertTextPresent",
"text": "${myvar}"
}
],
"data": {
"configs": {},
"source": "none"
},
"inputs": [],
"timeoutSeconds": 60
}
If anyone knows how to get SeInterpreter working (java version) with browserstack, please let me know. For the rest of you, hope the above helps if you're looking to get nodeJS working with it.