正文

para

(2011-06-13 12:58:00) 下一個

Browser("Mercury").Page("List Of Sales").WebEdit("Sold to").
Set Parameter("SoldToCode")
Browser("Mercury").Page("List Of Sales").WebEdit("Materials").
Set Parameter("MaterialCode")
Browser("Mercury").Page("List Of Sales").WebButton("Enter").Click
NumTableRows = Browser("Mercury").Page("List Of Sales").
WebTable("Orders").RowCount
Parameter("TotalValue") = Browser("Mercury").Page("List Of Sales").
WebTable("Orders").GetCellData(NumTableRows,"Total")


Considerations for Setting Action Parameters
➤ Input action parameter values can be used only within the steps of the
current action. You can use an action input value from another action (or
from the test) only if you pass the value from action to action down the
test hierarchy to the action in which you want to use it.
➤ In subsequent steps of a calling action, you can use any type of action
output value as a variable, if the value was retrieved from the called
action.

Data Driver
The Data Driver enables you to quickly parameterize several (or all) property
values for test objects, checkpoints, and/or method arguments containing
the same constant value within a given action.
You can choose to replace all occurrences of a selected constant value with a
parameter, in the same way that you can use a Find and Replace All
operation instead of a step-by-step Find and Replace process.

Parameterized Test
Step 1: Parameterize a Step
Step 2: Parameterize a Checkpoint
Step 3: Enter Data in the Data Table
Step 4: View the Parameterized Test

How to Parameterize Values for Operations or Local Objects
This task describes different ways to parameterize the values for operations in a step or objects in the local object repository.

Add table p758-759

[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.