Running Ranorex Webtestit in TFS/VSTS for Continuous Integration


#1

The following describes the necessary steps to create a build process with Team Foundation Server (TFS) or Visual Studio Team Services (VSTS).

  1. You need to deploy a custom agent for your platform. Follow the instructions on the official documentation.
  2. Make sure the agent is running in interactive mode.
  3. Install Ranorex Webtestit on the newly created agent.
  4. Make sure you follow the instructions to setup the java jdk on the build agent.
  5. Make sure to install all browsers you want to test on the build agent.
  6. In your VSTS build add a new step

Windows

  1. Add a task Command line Blog%20-%20Visual%20Studio%20Team%20Services

  2. Set the Display name to Run Ranorex Webtestit.exe

  3. Set the Tool to %LOCALAPPDATA%\Programs\webtestit\Ranorex Webtestit.exe

  4. Set the Arguments torun --report-file-destination=$(Build.SourcesDirectory)\path\to\TestResults\directory $(Build.SourcesDirectory)\path\to\project

  5. If you like to publish the test results Add a task Publish Test Results Blog%20-%20Visual%20Studio%20Team%20Services

  6. Set the Test result format to JUnit

  7. Set the Test results file to *.xml

  8. Set the Search folder to $(Build.SourcesDirectory)\path\to\TestResults\directory

  9. Under Control Options make sure you set Run this task to Even if a previous task has failed, unless the build was canceled

Mac

  1. Add a task Shell script

  2. Set the Display name to Shell Script Ranorex Webtestit

  3. Set the Script Path to /Applications/Ranorex\ Webtestit.app/Contents/MacOS/Ranorex\ Webtestit

  4. Set the Arguments torun --report-file-destination=$(Build.SourcesDirectory)/path/to/TestResults/directory $(Build.SourcesDirectory)/path/to/project

  5. If you like to publish the test results Add a task Publish Test Results Blog%20-%20Visual%20Studio%20Team%20Services

  6. Set the Test result format to JUnit

  7. Set the Test results file to *.xml

  8. Set the Search folder to $(Build.SourcesDirectory)/path/to/TestResults/directory

  9. Under Control Options make sure you set Run this task to Even if a previous task has failed, unless the build was canceled

Further topics: Command Line Interface (CLI)


Report tab always opens in dark theme
Release notes v0.6.0
listed #2