Test Scripts
The folder TBox Automation Tools->Unit Testing in the Standard subset contains the Module TBox Run Test Scripts.
Supported unit testing frameworks
Tricentis Tosca supports the following frameworks:
-
NUnit 2 or NUnit 3 TestCases
-
JUnit 4 or JUnit 5 TestCases
Note that this Module can also run Selenium commands within supported unit tests.
TBox Run Test Scripts
This Module starts test scripts. After execution, you can view the result in the Loginfo column of the ExecutionEntry.
The Module has the following ModuleAttributes:
ModuleAttribute |
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 that you want to execute. |
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:
Run a test script |