How to update Saucelabs with galen results?

35 views
Skip to first unread message

thera...@gmail.com

unread,
Feb 19, 2016, 11:44:01 AM2/19/16
to Galen Framework
Hi,

Is there any way I can update the SauceLab scenarios with the results from SauceLabs? 

I would need 

driver session id
status of the scenario.

If I can get those values then it would be a simple rest call to SauceLabs through their API. I tried using driver.session_id for the object created using createGridDriver, that comes back as undefined. Any help or guidance is appreciated.

-Thanks
Radeesh

thera...@gmail.com

unread,
Feb 22, 2016, 1:35:22 PM2/22/16
to Galen Framework
So I found the test status from the afterTest function where test.isFailed() would return a true or false. Now just need the session id to call in the REST api.

-Radeesh


Ivan Shubin

unread,
Mar 10, 2016, 3:47:14 AM3/10/16
to Galen Framework
Can you try driver.getSessionId() ?
By the way here is the java doc of the object that is returned from createGridDriver function https://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/remote/RemoteWebDriver.html

radib...@gmail.com

unread,
Mar 14, 2016, 4:34:41 PM3/14/16
to Galen Framework
Thank you Ivan, but unfortunately that does not give a session id. I ended up doing this for now.

var driver = session.get('driver');
var sessionID = String(driver).substring(31,63);

And using the saucerest java package to update the results.
Reply all
Reply to author
Forward
0 new messages