How to Iterate through test suite for multiple browsers using DevOPS Pipeline

119 views
Skip to first unread message

Sachin Agarwal

unread,
Aug 4, 2021, 1:14:10 AM8/4/21
to robotframework-users
Hi 

I am looking for some help where we need to iterate through robot framework test suite for multiple browsers. 

The test suite will be deployed and triggered  as a pipeline through Azure DevOPS. 

For example, I want to trigger the test automation suite once after every build deployment and the test suite should run for EDGE and CHROME browsers. So single trigger with two executions. 

Any help would be great!

Thanks,
Sachin





Craig Despeaux

unread,
Aug 5, 2021, 6:53:15 PM8/5/21
to robotframework-users
If you want to execute robot twice, you could pass -v BROWSER=EDGE  or -v BROWSER=CHROME on the robot command line.  This will make the variable ${BROWSER} available to your test suite.

You could also use -V and pass a variable file the suite should use.  We use that in order to run our tests in different environments like QA or production, which needs different URLs, hostnames, or whatever is pertinent to a specific environment.

I'm not sure if that's the kind of thing you're looking for or not.

Craig

Sachin Agarwal

unread,
Aug 5, 2021, 8:33:52 PM8/5/21
to robotframework-users
Hi Craig,

Thank you for your response. 

We are looking at executing robot for EDGE and CHROME in a single instance. 
I am thinking   BROWSER=ALL, and then this should trigger and iterate/loop the test suite through the different browsers [LIST/Array].

The other alternative I am considering is using pardot for parallel execution, not sure how this will go when triggered through a CICD pipeline

Kind Regards,
Sachin

Sachin Agarwal

unread,
Aug 5, 2021, 11:53:34 PM8/5/21
to robotframework-users
* Pabot instead of *pardot
Reply all
Reply to author
Forward
0 new messages