You can use printf() if you want to check the value in progress in the source coded by the user, such as source code, user code, and stub in Controller Tester.
How to check the output of printf()
1. Setting in Controller Tester
1) Right-click on 'Project' in the Test Navigator and selcet 'Properties'.
2) Click 'Test' - 'Run Test' and check 'Redirect standard output or standard error'
3) Click [Apply and Close] button.
2. Check output in log file
After run the unit test, check the output result in the log file in the path below.
Log file path:
** The method of checking the printf() output value of the source code and test code is the same.
** If the test is repeated, it is written after the existing log file. The log file is not created or overwritten.
** Each log file is created for each test case. The test case number is displayed after the log file name.