![]() It was specifically made for supporting this environment (and the cost for a Runtime license is a lot less than the cost for full Test Studio). We recommend installing our Runtime edition. Of course each Execution Server requires that Test Studio is installed on it (one license per machine). You can have as many Execution Servers setup and controlled by one Scheduling Server as you want. Here's a high level block diagram of what this looks like: How to Run Tests in ParallelĪs previously stated in this article, to run tests in parallel you must setup multiple execution servers. That's all it takes to make your tests run in different browsers on the same machine. When finished you will see three different result sets in the Results view, one result set for each browser the test was executed in. At run time Test Studio will run the full test list from start to finish in IE, then it will run it again in Firefox and last it will run it again in Chrome. In this screen shot I've selected IE and Firefox and Chrome. The default will run the test list in IE only. Here is where you select which browser or browsers you want Test Studio to run that test list in. Next open the Test List Settings, go to the Web tab and open the ExecutingBrowsers drop down. First you must put your test or tests into a test list. ![]() Now let's get into the technical details of how to make your tests run in different browsers. Or if you prefer setup two additional machines, one for Chrome and one for Firefox. You can also install Chrome and Firefox on any of the three machines, or all three if you like. This requires a minimum of three machines, one for IE 9, one for IE 10 and one for IE 11. The good news is that you can have multiple browsers installed on the same machine and run your tests against different browsers on that machine.įor example, you want to run your tests in IE 9, 10, 11 as well as the latest version of Chrome and Firefox. You will need one machine for each unique version of a browser you want to run your test in. It is very common to use a set of virtual machines (VM's) for running your tests. Each machine can be running a different test simultaneously. You now may be wondering "With the above restrictions how is it possible to run tests in parallel"? The answer is it can be done, but it requires multiple machines. It can only find and use the last normally installed version of Firefox as a standard Windows process. ![]() Test Studio does not have support for a sandboxed Firefox process. We've also heard that it's possible to have multiple versions of Firefox installed such that you can run a specific version of Firefox in a sandboxed process. You can end up with false positives as well as false negatives when trying to "cheat" by using compatibility mode. Running IE in compatibility mode just isn't the same as actually running it on that version of IE. The core code of the browser will be the same, including the JavaScript runtime engine. It only does slight modifications to the UI rendering of a page. First Test Studio doesn't have a mechanism to set the compatibility mode and second compatibility mode doesn't actually change which version the browser is running as. You might ask "What about IE compatibility mode"? There are two problems with trying to use compatibility mode. Only one version of any specific browser can be installed and used to run a Test Studio test on a machine at a time. Our scheduling server will limit you to running one test at a time for an individual machine. One of the other will lose causing your tests to unexpectedly fail. If multiple tests try to run in parallel on the same machine, the two windows (Browser or WPF application window) would be fighting each other for input focus control as well as mouse and keyboard control. Test Studio tests are a type of UI testing. You can only run one Test Studio test at a time on a single machine. No matter which approach you try to take, there are some restrictions to running tests in parallel that must be honored: This article will focus on how to achieve this using the Scheduling Server and Execution Server that comes with both full Test Studio and our Runtime edition. Download free 30-day trial How to Run Tests in Parallel / in Multi BrowsersĬustomers often wonder "How can I run my tests in parallel" and/or "How do I run my tests in multiple browsers, including multiple versions of the same browser".
0 Comments
Leave a Reply. |