Problem running consecutive cucumber scenarios in Sauce Labs (Android)
214 views
Skip to first unread message
Dani
unread,
Jun 3, 2014, 5:15:20 PM6/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
Hi,
I am having a feature cucumber file with 2 consecutive identical scenarios.
Running this locally works just fine. However on Sauce Labs I have problems with it: First scenario passes. Second one (identical with the first one) crashes always in the same place (when calling scroll_to method). Error is SystemStackError: stack level too deep. If I am not promoting the appium methods and I am using $driver.scroll_to - in the same manner it works fine first time, but second time it says "complex_find cannot be applied on Appium driver
I am performing a quit_driver at the end of a scenario and create and start_driver before scenario. I thought sauce labs would allocate different VM each time I quit_driver and create a new Appium driver so looks strange that same scenario behaves differently when run consecutively?!
Can anyone give me some idea on how to surpass this.
bootstrap online
unread,
Jun 3, 2014, 5:18:02 PM6/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dani, appium-...@googlegroups.com
Those errors seem like logical issues in your test code.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com, ben...@googlemail.com
I doubt that since it works fine on my own appium server. also it is the same scenario (same code) that passes fine on first run but fails second time on sauce labs
bootstrap online
unread,
Jun 3, 2014, 5:50:39 PM6/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dani, appium-...@googlegroups.com
If you post your code to github, I'll take a look.
Dani
unread,
Jun 3, 2014, 8:54:19 PM6/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com, ben...@googlemail.com
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dani, appium-...@googlegroups.com
Also on Sauce, you should be using appium v1.1.0 and the latest
version of the appium_lib gem.
Dani
unread,
Jun 4, 2014, 11:03:02 AM6/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com
Sauce Labs rejects the driver creation if I am sending appium-version = "1.1.0" capability. It only accepts "1.0" so I guess they don't support it yet?!
Dani
unread,
Jun 4, 2014, 11:05:57 AM6/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appium-...@googlegroups.com, ben...@googlemail.com
Thanks. Running the Appium driver creation and method promotions only once did the trick.
One comment though - you should update the Sauce Labs status at the end of each scenario otherwise it will update only the last scenario from the feature file:
After do |scenario| # Reset scenario unless the feature was tagged @keep ##### $driver.reset unless scenario.feature.source_tag_names.include? '@keep' $passed = ! scenario.failed?
user = ENV['SAUCE_USERNAME'] key = ENV['SAUCE_ACCESS_KEY'] if user && !user.empty? && key && !key.empty? SauceWhisk::Jobs.change_status $driver.driver.session_id, $passed end end
bootstrap online
unread,
Jun 4, 2014, 11:06:34 AM6/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message