There is in fact a method to accomplish this within WebUI Studio Developer Edition. In order to do this process, we advise that within your main project/solution, you have a different test project for each browser (named after the browser in question to ease with discerning data as well as creating the tests). I assume you do not, but if you need assistance with creating a new test case, see the next few steps. Otherwise you can go on to the next sections which discuss the two methods of setting different projects to use different browsers:
Creating a new:
- Open your project/solution and click Test > New Test.
- Highlight WebAii Test
- Give the test an unique name
- Set the Add to Test Project field, select Create a new Visual C# test project...
- Click 'okay'
- In the field that is in the pop-up window, type in a name that relates to the browser the contained tests will use (IE, firefox, etc.) and click Create.
Alternatively, if you have already created a test project for each browser, simply right-click the Test Project in Question and choose 'rename' to rename the project.
There are two methods to set tests to open specific browsers. Method 1 effects individual tests whereas method 2 provides settings for all tests contained within the test project. Please note that, while these will effect playback, you will still need to record within Internet Explorer.
Method 1 (setting individual tests):
- If the contents of the target test project are hidden, click the disclosure triangle next to the Test Project in question (Method1>01).
- Double-click the individual test that you want to run in firefox (see Method1>02).
- Click the Steps tab (Method1>03).
- Set the Browser field to read the specified browser (in your case, firefox, Method1>04)
- Save the test
Now, when you run the specific test, it will run in firefox. This method has to be done for each individual test, but is quicker than method 2 (below). Both processes will accomplish the same thing, but method 2 (below) is more of a 'global' setting that effects the test project (not the individual tests).
- Make sure that you have a separate Test Project for each browser
- Click Test > Edit Test Settings > Local (local.testsettings).
- In the left column click WebAii Test.
- Click the Default Browser field and choose which browser you want the settings to be for
- Click the Save As... button
- Enter a name for the settings and click Save
- You should see the settings appear in the solution explorer. The format for the file you created is givenname.settings (where givenname is what you named the settings). Drag the settings to the correct test project and save.
And you are done. Subsequent tests in the specified test or test project (depending on the method) will launch the specific browsers you need them to. Please let us know if you encounter an issue with performing the above, but that should get you started on launching tests the way you are wanting to.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items