Running your testsIt’s easy to initiate a test run in Ranorex Webtestit. After you configured at least one endpoint, you are ready to go. Make sure to configure at least one endpoint first Select a test file from the Project tab Ranorex Webtestit will automatically open the Execution tab along with it Check the endpoint(s) you want your test to be executed on Click the Run current test file or Run all test files button Sit back and enjoy!
If you want to run all your tests, you don’t need to open a test file first.
Ranorex Webtestit will display an animation as long as the test is running. You can check the log panel for details. Click the Stop execution button to interrupt the test run.
Do not interact with the browser while it is being automated.
Headless testingYou may have noticed that local endpoints feature a headless option. When testing headless, the browser instance will be started as a background process and not use a GUI (hence the name). Apart from this, the automation is completely the same. Headless testing is extremely helpful in CI environments or on machines that are not capable of displaying a GUI (like build servers).
You can run your tests also locally headless. For test development purposes we recommend you to watch the process.
Running from the command lineYou can run tests with Ranorex Webtestit without having to launch the app. This option is helpful if you want to plan a test using the task planner or want to integrate into CI environments. To execute your project from the command line you need to call the Ranorex Webtestit executable with the
runparameter and point it to your project’s location. The command pattern looks like this:
<Webtestit app path> run [options] <path/to/your/project>Command line execution works for all supported operating systems. To get an overview of all available options and commands, please refer to our dedicated how-to article.