Monday 16 April 2012

Input/Output Action Parameter Use in QTP

Input/Output Action Parameter:
Passing Action Input parameter & returning back output value
Action 1(Code)
Dim inputvar
Dim outputvar
inputvar=100
RunAction “Action2″, oneiteration, inputvar,outputvar
msgbox(outputvar)
Action2
1. Set Input parameter of action2->ActionProperties with inputvar parameter name
2. Set Output parameter of action2->ActionProperties with output parameter name
Write this below code in Action2
Dim var
var=parameter.item(“inputvar”)
Msgbox(var)
var=var+50
parameter.item(“outputvar”)=var

1 comment:

  1. Hi,

    Could u pls tell me how to add the database values to dictionary object in a loop?

    as well as how to add the webtable data to dictionary object in a loop?

    ReplyDelete