Versions Compared

Key

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

You need to download the TestHarness.Java file, and download and extract the Config Folder file.

To debug a custom action

  1. To create necessary test artifacts:

    1. Create a test case and include the custom action that you want to debug at the appropriate step. For more information, refer to Creating Adding or Editing a Test Case .Manually

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

    3. Create a test suite that contains the test case. For 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 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 breakpoint at an appropriate line number in the custom action.

  4. Start debugging the TestHarness.javaJava file.

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

Info

...

To specify Java system properties before executing the test suite.

  1. From the config folder in the custom action of Eclipse, open the QualitiaSystemProperties.json.

  2. In the QualitiaSystemProperties.json file, enter the key-value pairs in the following format:

    1. {"key1": "value1",

      "key2": "value2",

      .

      .

      "keyN": "valueN"}

  3. Save the file.