Using the K Test Manager
The K TEST MANAGER will run suites of tests written in code, or "unit tests", and helps monitor the results.
Only test suites and test scripts must be configured. Test cases are automatically added to a test script when the test script runs.
The structure of tests is
The test suite may be run as a whole or test scripts may be run individually. To run test cases individually, expose a separate script API call to run a particular test case.
How to Configure a Test Suite
A test suite is simply a container for one or more test scripts.
To add a test suite
How to Configure a Test Script
A test script configures a REST API that will run test cases.
Test cases will be added automatically when the test script runs. They do not need to be manually configured.
To add a test script
The script will be available to be run.
How to Expose a Test Script API
Expose a REST API for the Test Manager to call when the script runs.
To expose a REST API for the script
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
Write as many test cases are required and call them from the REST API. This is your test script.
Now you can configure and run the test script.
Write as many test cases and call them from the REST API. This is your test script.