Action
Description
Takes an action based on the row specified by Key_Set. Specify the action in the Value column.
This table lists the valid values for the Action action.
| Action Value | Description |
|---|---|
|
ins |
Insert a row. If the current row is the first row, then use the existing row. |
|
ins+ |
Always insert a row. |
|
delins |
Delete all rows, and then insert into the first row. |
|
del |
Delete the row specified by the Key_Set action. |
|
delall |
Delete all rows. No further processing. |
|
delsel |
Look for the row and delete it. Do not add a fail if the row does not exist. |
|
upd |
Find a specified row to work with. If the row is not found, insert a new row or use the first row for the first time. |
|
upd+ |
Find a specified row to work with. If the row is not found, always insert a new row. |
|
sel |
Find a row specified by the Key_Set action. |
|
find |
Use the scroll Find link. Format: find=text_to_find |
|
not |
Check that the row is not in the scroll. Add a Fail to the log if the row is found. |
Parameters
| Parameter | Description |
|---|---|
|
ret=&variable; |
The return value. It returns the position index for the field acted upon, based on the row identified using Key_Set. |
|
expected=value; |
Optional. Applies only to the find action. If used, PTF writes either a Pass or Fail for the step in the test log based on whether a matching object exists. If this parameter is not included, then only step information is logged during execution. For example:
|