A customized component test script has been created for you. This test will be used to test the functions within UmtsCode.c - in particular, the function code_int, which contains the while statement of interest.
To customize the test:
Select the menu item Window->Close All
Select the Project Browser tab on the right-hand side of the screen, select the UmtsCode.ptu node (child of the UmtsCode component testing node), and then select the menu item Edit->Delete.
Right-click the UmtsCode component testing node and select Add Child->Files...
In the Files of Type dropdown box, select the C and Ada Test Scripts option, then browse to the Test RealTime installation folder and Open the file \examples\BaseStation_C\tests\UmtsCode2.ptu
After this new test script is analyzed by OneTest Embedded, your screen should appear as follows:
Double-click the node UmtsCode2.ptu
Maximize the test script window.
Bring the code_int test blocks for UmtsCode2.ptu into view using the Asset Browser tab. (The Asset Browser tab continues to reference the original test script - UmtsCode.ptu - because it still exists on your machine - it is simply no longer referenced by any tests.)
As you can see, two Test blocks are now part of the code_int Service block. In the first Test block the initial value of x has been set to 3 and the expected value for buffer has been set to I13. In the second Test block, the initial value of x has been set to 34 and the expected value for buffer has been set to I243. These expected values should make sense based on the function review you performed back in Exercise One.