Note: This statement was previously named AddDefect.
Adds an issue to the Helix ALM project configured for the workspace. Specified text is added to the issue Summary, Description, Steps to Reproduce, and Other Hardware and Software fields.
This statement is commonly used with an If statement to add issues to Helix ALM if a condition that causes the script to fail is not met. Use the INDEBUGMODE variable if you are running scripts in debug mode and do not want to add issues to Helix ALM. See Using the INDEBUGMODE variable.
This statement cannot be used in load test scripts.
Tip: You can use other Helix ALM statements to create more detailed issues and work with specific issue field values. See AddFileAttachment, AddToHelixALM, GetFieldValue, RemoveField, and SetFieldValue.
Syntax
AddIssue("Summary", "Description", "StepsToReproduce", "OtherHardwareAndSoftware")
Arguments
| Argument | Description |
|---|---|
| Summary | Information to add to the issue Summary field. |
| Description | Information to add to the issue Description field. |
| StepsToReproduce | Information to add to the issue Steps To Reproduce field. |
| OtherHardwareAndSoftware | Information to add to the issue Other Hardware and Software field. |
Example
numProducts = Window("BugReporter").ComboBox("comboboxProduct").Property("Number of Items")
If numProducts <> 7 Then
AddIssue("Incorrect number of products", "Expected: 7 Actual: " + numProducts + " (reported by script '" + ScriptName()+ "')", "See test case", "Windows 7")
End If