How to pass parameters into an action.Please explain me
with examples

Answer Posted / rayudu

Thanks for your reply Deepak! But my question is not that.
By using Action Parameters.EX: I would like to enter the
values in Parameter tab of the Action properties.



Name type Defaultvalue description
A Number 25 First value
B Number 30 Second value

My question is How should validate these values in a script
c=int(a)+int(b)
I am calling this action in another action like
RunAction Action1,Oneiteration
But it did not resulted 55.
I know how to pass parameters through datatable.
Please answer it if u know

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, how can we check or avoid the memory leakage in QTP9.2?

1696


How can you identify the browser and its information using the qtp script?

575


can test automation improve test effectiveness?

1480


How to create a standard checkpoint ?

550


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

557






what the difference between shared repository and per action repository?

546


Why do we use breakpoints in QTP?

577


What is qtpro?

587


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1724


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1454


Shall we add Local Repository to shared object repository,if yes,how we add

5666


Why bpt?

586


What test you perform mostly? Regression or retesting in your testing process?

574


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1476


Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak

1614