Automatically updating a .ptu test script

Component Testing for C

Changes that are made during the development process can sometimes impact the test script, for example when new functions are added after the test script was generated.

You can update a .ptu test script to automatically add new elements to SERVICES and INCLUDE blocks to reflect changes that were made to the source code. An update does not remove or modify any existing statements.

For the update to work, you must not edit any generated comment lines that start with %c or %d in the test script. The update command only works with .ptu test scripts that were generated by Test RealTime 7.0 or later, which contain these %c and %d comment lines.

To update a .ptu test script

  1. In the Project Explorer, right-click the .ptu test script that you want to update.

  2. From the pop-up menu, select Update.

  3. Edit the .ptu test script.

Related Topics

Writing a Test ScriptStub Simulation