Multiple test as steps each with different browser and data

2 posts, 0 answers
  1. Tracy
    Tracy avatar
    1 posts
    Member since:
    Oct 2015

    Posted 11 Feb 2016 Link to this post



    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,





  2. Ivaylo
    Ivaylo avatar
    782 posts

    Posted 16 Feb 2016 Link to this post

    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.

    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top