Unable to execute tests in Sauce Labs using

14 views
Skip to first unread message

Raj

unread,
Mar 9, 2017, 2:50:57 PM3/9/17
to Se Builder
Hi ,

When I execute the Selenium Builder tests in Sauce Labs using my Sauce Labs account (unlimited minutes) , I get an error 'Your OnDemand account has run out of minutes'

The reason seems to be that in the response of the call /rest/v1/users/<user-name>, call I get the parameter
"minutes": -204883

 I had a quick look at the Sauce Selenium plugin code and i think if the min < 0 , then it throws the error  'Your OnDemand account has run out of minutes'. Whats the best way to fix this issue?

 if (ajresult.minutes <= 0) { alert(_t('__sauce_account_exhausted')); }
https://github.com/saucelabs/sb-sauce-plugin/blob/2366870bb0c1db9d22ef71575d78a5dbb873d62d/sauce/plugin.js
Thanks
Rajesh


Raj

unread,
Mar 9, 2017, 3:04:57 PM3/9/17
to Se Builder

David Stark

unread,
Mar 9, 2017, 4:45:41 PM3/9/17
to se-bu...@googlegroups.com

That sounds like something for Sauce Labs support to fix!

- David

-- You received this message because you are subscribed to the Google Groups "Se Builder" group. To unsubscribe from this group and stop receiving emails from it, send an email to se-builder+...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Raj

unread,
Mar 10, 2017, 1:27:31 AM3/10/17
to Se Builder
You are right David

The issue is with sb-sauce-plugin (https://github.com/saucelabs/sb-sauce-plugin)

For the unlimited account that we have, Sauce labs is sending back the response for /rest/v1/users/ call as "minutes": -204883
which is messing with the below logic
 if (ajresult.minutes <= 0) { alert(_t('__sauce_account_exhausted')); }

Thanks
Rajesh

David Stark

unread,
Mar 10, 2017, 5:07:36 AM3/10/17
to se-bu...@googlegroups.com

Ooh, OK, I will fix that problem with sb-sauce-plugin then! :)

- David

Reply all
Reply to author
Forward
0 new messages