assign result field
Write user-defined text to the test results.
Name | Description | Type | Modifier |
---|---|---|---|
field | Name of the result field to be modified. | String | None |
value | Value to be assigned. | String | None |
None
This action may be used within the following project items: test modules and user-defined actions.
Example - Case 1: Assign a new value to a user-defined field
Suppose there is a user-defined result field named log file with a value type of hyperlink:
field value
assign result field log file http://192.168.167.74/browse/DOC-437
Example - Case 2: Assign a new value to the Build Number built-in field
field value
assign result field log file http://192.168.167.74/browse/DOC-437
assign result field Build Number AUT 3.0
- This action applies only to result fields, and only ones that are runtime-modifiable. These include the result field Build Number, and any user-defined fields that are defined as applying to the result project item type. (See Creating a user-defined field for further information)
- This action supports the <ignore> modifier. If the string
<ignore>
is present as the value of any of the arguments, or any argument contains an expression that evaluates to<ignore>
, the action is skipped during execution.