Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. To create necessary test artifacts:

    1. Create a test case and include the custom action you want to debug at the appropriate step. For more information, refer to Creating a test caseTest Case.

    2. From the test case editor, click Run to Dry Run the test case to verify whether the custom action is hit.

    3. Create a test suite that contains the test case. Refer to creating a test suiteFor more information, refer to Creating a Suite.

    4. Create an offline suite using the test suite. For detailed instructions, refer to Creating an Offline Package.

  2. To add the required files for debugging the custom action:

    1. Open the custom action you want to debug in the Eclipse project.

    2. Add the TestHarness.Java file for the custom action in the Eclipse project.

    3. Add the config folder in the Eclipse project.

    4. In the config folder, open the startupSettings.json file, and specify the location of the offline suite for “SuitesDir”.
      For example:"SuitesDir":"D:/Qualitia Offline/Suite1"

  3. Insert a break point at an appropriate line number in the custom action.

  4. Start debugging the TestHarness.java.

  5. The test suite execution starts.
    When the custom action is executed, the execution stops at the break point you have inserted.
    You can go ahead to debug the custom action.

...