how can i call reusable action in a function
could any one explain me?

Answers were Sorted based on User's Feedback



how can i call reusable action in a function could any one explain me? ..

Answer / 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

how can i call reusable action in a function could any one explain me? ..

Answer / mohammad

insert ->call to->existing action

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More QTP Interview Questions

How to Import the data from MS-Access in QTP?

1 Answers  


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

0 Answers  


what is the extension of new local object repository?

5 Answers  


write a script for get the following result: username password frm the string1="A=username" string2="B=password"

3 Answers   Oracle,


Tell some commonly used Excel VBA functions?

0 Answers  






Hello everybody, can we maintain the state of page in QTP? 1. suppose i opened a notepad text file i entered some text and changed the font type and font size and saved that file. 2. Now next time when i will open a new notepad file it is showing me that font type and size which i changed in my previous step. 3. Here i want that QTP should capture the default setting i.e. it should maintain the state of the page. Thanks in advance, Gaytri

0 Answers  


how to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.

3 Answers  


How to Test Dynamic links ?

4 Answers   Wipro,


How to record objects of Windows taskbar

2 Answers   RoboSoft,


hai friends i already ask this question but when i post the question the alignment goes wrong .....my question is we have a WEB TABLE ....assume that web table having 3 row's and 3 column here in 2nd row 3rd column having VISIT FACEBOOK link...now i want to check the VISIT FACEBOOK link is available or not ..if it's there i want to click the link ...then how to find the web table row or column count ....don't write the excel or data table script here friends .....consider that it's a WEB TABLE do a favour ...thank's

3 Answers  


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

0 Answers   IBM,


I am automating a Java application. This application is developed using SWT. I am not able to get the GUI object. Even i tried with Java add-in. In tutorial it states SWT is not supported any idea. Anybody worked in such appln. My question is whether it is possible to record the GUI object of SWT appln. how it is possible.

1 Answers  


Categories