Reporting Defects Detected During a Test Run - WinRunner

Locating and repairing software defects efficiently is essential to the development process. Software developers, testers, and end users in all stages of the testing process can detect defects and add them to the defects project. Using Mercury Interactive’s TestDirector Add Defect dialog box you can report design flaws in your application, and track data derived from defect reports.

For example, suppose you are testing a flight reservation application. You discover that errors occur when you try to order an airline ticket. You can open and report the defect. This includes a summary and detailed description of the defect, where it was discovered, and if you are able to reproduce it. The report can also include screen captures, Web pages, text documents, and other files relevant to understanding and repairing the problem.

If a test run detects a defect in the application under test, you can report it directly from your Test Results window (when connected to a TestDirector project).

When you report a bug from the Test Results window, basic information about the test and the selected checkpoint (if applicable) is automatically included in the bug description.

Using the Add Defect Dialog Box

The Add Defect dialog box is a defect tracking component of TestDirector, Mercury Interactive’s Web-based test management tool. You can report application defects directly to a TestDirector project. You can then track defects until the application’s developers and software testers determine that they are resolved.

Setting Up the Add Defect Dialog Box

Before you can launch the Add Defect dialog box, you must ensure that TestDirector 7.2-8.0 is installed. You must also ensure that WinRunner is connected to a TestDirector server and project. The connection process has two stages. First, you connect WinRunner to the server. This server handles the connections between WinRunner and the TestDirector project. Next, you choose the project you want WinRunner to access. The project stores tests, test run information, and defects information for the application you are testing.

Reporting Defects with the Add Defect Dialog Box

When you are connected to TestDirector, you can report defects detected in your application directly from the WinRunner Test Results window.

To report a defect with the Add Defect dialog box:

  1. If you are working in the WinRunner report view, connect to TestDirector from the main WinRunner window. For more information, see “Connecting to TestDirector from the Test Results Window”
  2. If you are working in the Unified report view, you need to connect to TestDirector from the Test Results window as described in step 4.

  3. Open the Test Results window and display the test for which you want to add a defect. For more information, see “Viewing Checkpoint Results”.
  4. If applicable, select the line in the Test Results that corresponds to the bug you want to report.
  5. Open the Add Defect dialog box:
    • In the Unified report view—Click the Add Defect button or choose Tools > Add Defect. If the Test Results window is not yet connected to TestDirector, the TestDirector Connection dialog box opens. Connect to TestDirector as described in “Connecting to TestDirector from the Test Results Window”. When you are finished, click Close to close the TestDirector Connection dialog box and open the Add Defect Dialog box.
    • In the WinRunner report view—Click the Report Bug button or choose Tools > Report Bug.
  6. The Add Defect dialog box opens. Information about the selected line in the Test Results is included in the description.

  7. Type a short description of the defect in Summary.
  8. Enter information as appropriate in the rest of the defect text boxes. Note that you must enter information in all the text boxes with red labels.
  9. Type a more in-depth description of the defect in the Description box. If you want to clear the data in the Add Defect dialog box, click the Clear button.
  10. You can add an attachment to your defect report:
    • Click the Attach File button to attach a file to the defect.
    • Click the Attach URL button to attach a Web page to the defect.
    • Click the Attach Screen Capture button to capture an image and attach it to the defect.
  11. Click the Find Similar Defects button to compare your defect to the existing defects in the TestDirector project. This lets you know if similar defect records already exist, and helps you to avoid duplicating them. If similar defects are found, they are displayed in the Similar Defects dialog box.
  12. Click the Submit button to add the defect to the database. TestDirector assigns the new defect a Defect ID.
  13. Click Close.

Reporting Defects During a Test Run

You can insert tddb_add_defect statements to your test to instruct WinRunner to add a defect to a TestDirector project based on conditions you define in your test script. Your statement can include data for the summary and description fields, as well as any other field name and value you specify.

For example, suppose your test begins by logging in to a flight reservation application. If the login is unsuccessful, you can report a defect that specifies the summary and description of the defect as well as the values for the Detected by and Assigned to fields.

Use the following syntax when inserting tddb_add_defect statements:

tddb_add_defect (summary, description, defect_fields);

When entering defect fields, use the format:

"FieldName1=Value1;FieldName2=Value2;FieldNameN=ValueN".

Be sure to enter field names and not field labels. For example, use the field name BG_DETECTED_BY for the field label Detected By.

If your test contains tddb_add_defect statements, confirm that you are connected to the appropriate TestDirector project before running your test.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics