How to pass parameters into an action.Please explain me
with examples
Answer Posted / deepakm82
Hi Rayudu,
i will take the example that you have taken.
C = a + b
Now you want a and b to be parameterized.
So for that you have to pass the value of a and b using the
datatable in QTP.
Select 2 columns in datatable and name them Value_1 and
Value_2.You can choose either Global datatable or action
datatable.Suppose you choose Global datatable.
Now put a value say 3 under column Value_1 and put another
value say 5 under column Value_2.
Now this is how you gonna write it:
c= Datatable.value("Value_1",dtglobalsheet) +
Datatable.value("Value_2",dtglobalsheet)
Now is this solve your problem? or if you have any further
queries then just reply...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
Explain different types of checkpoints?
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
How does qtp identify the object in the application?
can anyone tell me from where i can download qtp demo or crack version
How do you create new test sets in td?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
explain how to write vb script in qtp?when will you write own script?
can any body give the banking domain concepts/links
What is synchronization point in QTP?
Hoe can we do retesting using functions please give the code for it using login page
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.