Complex Tests
In the Polyspace Platform user interface, you can author simple tests that call one function and test if the function behaves as expected. You can also author more complex tests, for instance:
Tests that call a sequence of functions (multi-step tests).
Tests that call the same function several times with different inputs (parameterized tests).
If a function in your source code is not supported for graphical test authoring, you can test the function in a C/C++ script inside a graphical test.
Topics
- Write Multistep Tests in Polyspace Platform User Interface
Write tests with multiple steps, carry over global variables values from one step to the next.
- Run Same Test with Different Inputs in Polyspace Platform User Interface
Iterate test inputs through test data arrays keeping function call sequence fixed.
- Test C/C++ Functions by Using Scripts in Graphical Tests
Enter scripted steps to invoke unsupported functions but add step inputs and assessments graphically.
- Test C++ Member Functions in Polyspace Platform User Interface
Instantiate object in graphical tests and invoke member functions using the object.
- Test C++ Member Functions of Classes with Non-Default Initialization
This example shows how to author graphical tests for C++ member functions when the class default constructor does not initialize all data members.
- C/C++ Test Authoring Tips and Tricks
See how to author C/C++ tests more efficiently in the Polyspace® Platform user interface.