In QTP whether is it possible to call a function from one
action to another action?

Answer Posted / sandeep

Do more simple thing.

Store any function in any .vbs file.

Either link that .vbs file as a Resouce to QTP.

Or

Dynamically link .vbs file with QTP usign

ExecuteFile <file path >

Once either of the step is done then you can call any
function stored in .vbs file

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of parameterization ?

806


How smart identification works in qtp ?

768


Is it possible to call win runner script in qtp?

851


How do you configure QTP AND Test director?

1689


How QA specialist can identify when programmatic descriptions are useful?

2180


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1763


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

1710


you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva

1694


Can anybody post some real time scenario in qtp? please its very urgent.

2033


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1555


How to analyzing test results using quicktest professional?

886


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1853


Can I change properties of a test object?

862


What is text/text area checkpoint?

806


How do you delete unwanted results in qtp?

844