This is a migrated thread and some comments may be shown as answers.

Multiple test as steps each with different browser and data

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tracy
Top achievements
Rank 1
Tracy asked on 11 Feb 2016, 12:52 PM

Hi,

 

Hope you can help.

We have a create accounts test that needs to be run on different browsers and with different data.  We have created the following 4 tests and set the browser type in the properties on each test.

Created Test 1, properties for the test has browser type set as Chrome

Created Test 2, properties for the test has browser type set as Firefox

Created Test 3, properties for the test has browser type set as Internet Explorer

Created Test 4, properties for the test has browser type set as Safari

All above test are identicle, except the data it calls and the browser property

 

We then created test A which calls each of the above tests as a test as step as we want to have just the 1 test rather than 4.  Test A was created with no browser set in the properties.

When we try and run test A from the normal test repository(i.e not in a schedule list), it just runs on the browser you choose to execute on rather than the one set on the test as step and when you add it to Test List and run from there it asks for a default browser again rather than using the ones set on the test as step.

What is the best practice to achieve the above,? do we just have the 4 individual tests and if so how do we get it to run on the browser we set?

 

Kind regards,

Tracy

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 16 Feb 2016, 09:06 AM
Hello Tracy,

Unfortunately you cannot change the executing browser once the execution is started.

You can achieve this if you add all the tests in a test list. This way you will be able to run them at once and each test will execute in the browser that is set in the properties.

Hope this will work for you.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Tracy
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or