how can i call reusable action in a function
could any one explain me?
Answer Posted / nanda
by using if then else statements...
for example...
public function cal_action(strdata)
if strdata = "" then
runAction "Action1[test1]",OneIteration
else
RunAction "Action1[test2]",OneIteration
else if
Close function
Like this....we can call
If any queries..
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
What is the basic concept of quicktest professional?
What is the meaning Work bench?
How you can decide which type of object repository you have to use?
Have you faced any problems with object repository?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
Please guide me release notes of Automation once scripts are completed
What is the purpose of loading qtp add-ins?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
Hybrid framework supports Descriptive programming. Is it true?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
Explain the Different types of QTP test assets and their extensions?
what testplan contents and what test strategy contents,what is the diff b/w them