The K Test Core library provides a framework for configuring and running automated unit and integrations tests.
Use this library to help build your unit tests. Use the assertion actions to check expected values of test results.
Use the K Test Manager forge component to the schedule, run and manage test scripts.
The forge components are separated as your code will depend on this component, whereas the K Test Manager only needs to be deployed to the dev environment.
How to Write a Test Case
A test case verifies the result for a scenario of use, or "case", of a target operation.
Decide on the action or component, known as the target, to be tested. Then decide on the scenarios to test. Scenarios could include single value, multiple values, zero values, expected exceptions. It helps to Consider the "contract" of the target to determine scenarios.
To write a test case
Create an action naming it with the target and scenario.
For example, testing an action ProcessStructure with large data values call the test Test_ProcessStructure_WithLargeData
Write as many test cases and call them from the REST API. This is your test script.
Expose a REST API to Run the Script
Expose a REST API for the Test Manager to call when the script runs.
To expose a REST API for the script