Adding test cases

New test cases can be added when new functions are added to a class.

For example, when a new function is added to a class, do the following to add corresponding test case:

  1. Open the header file of the class.
  2. In outline view, right click the newly added function and select Test Frameworks > Generate SymbianUnitTest Cases.... Multiple functions can be selected by holding "CTRL" key when left clicking. A window like below will pop-up:
    Generate SUT cases
  3. (Optional) Click Next to set the properties of added test cases.
    Case properties
  4. (Optional) Check the "Preview changes" checkbox, the click Next. The SUT of ITE plugin will generate dummy test cases for you to modify.
    Preview changes

    Preview changes: dummy functions
  5. Click Finish to apply changes.