[JS] cucumber tests - multiple browsers using wd.js

103 views
Skip to first unread message

vinod kumar

unread,
Dec 22, 2014, 2:45:46 AM12/22/14
to cu...@googlegroups.com
Hi,

   We use parallel-cucumber.js to run our features on saucelabs using wd.js. Can someone suggest how to run cucumber tests on multiple browsers on saucelabs using wd.js?

Thanks,
Vinodh 

Simon Dean

unread,
Dec 23, 2014, 10:55:16 AM12/23/14
to cu...@googlegroups.com


> On 22 Dec 2014, at 07:45, vinod kumar <vk.8...@gmail.com> wrote:
>
> We use parallel-cucumber.js to run our features on saucelabs using wd.js. Can someone suggest how to run cucumber tests on multiple browsers on saucelabs using wd.js?

Hi Vinod. parallel-cucumber supports a concept of profiles. Examples of profiles could be: desktop, tablet, phone. For each profile you can specify a) cucumber tags and b) environment variables. The tags can be used to alter the scenarios that are executed for each profile (e.g. through tags called @desktop-browser-only, @mobile-browser-only and @browser for scenarios that support all profiles). The environment variables can be used to tell your "before" hook what type of browser it should start (e.g. desktop, tablet or mobile).

Would something like that fit your problem or are you after something different?

Cheers
Simon
Reply all
Reply to author
Forward
0 new messages