Unit Testing
The automation tools module for unit testing starts test scripts directly from Tosca Cloud.
TBox Run Test Scripts
Starts test scripts. After the test run, you can view the result on the Test runs page.
Value |
Description |
---|---|
Path |
Path to the DLL or JAR file that contains the TestMethods you want to execute. |
TestClass |
Class from the DLL or JAR file where the TestMethods are located. |
TestMethod |
TestMethods you want to run. |
Report Directory |
Optionally, specify the path to store the test results. |
To run all tests within your DLL or JAR file, leave TestClass and TestMethod empty.
This example shows how to run a test script that contains Selenium commands.
The TestStep specifies the following:
-
The path to the JAR file is D:\Selenium\MixedSeleniumTests\SeleniumTestsExample.jar.
-
The file SeleniumTestsExample.jar contains multiple TestClasses. Tosca Cloud should only use the TestClass InsuranceCalculator.
-
Tosca Cloud should execute the TestMethods SelectCar and EnginePerformance.
-
Tosca Cloud should save the report to "D:\Selenium\Selenium Reports\Mixed".
Run a test script