Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling reusable Actions from a Test WITHOUT having to interfere with the UI
#1
Not Solved Question 
Hi all!

Even though I gave up hope in this:

Does anybody know whether its possible to call an external Action from a script without having to first using the "Insert - Call to existing Action" menu. I would like to decide dynamically which action to run, but that obviously does not work.

to make it clear, an example:

I open a new Test and write this line into the main action:

Code:
RunAction "LoginDealer [LoginLib]", oneIteration, "dealer1", "d1password"

If I run the test it will throw the error "Action not found".

If I now do the "Insert - call to existing action" stuff, refering to the same action, QTP will insert another line, so the script now will look like this


Code:
RunAction "LoginDealer [LoginLib]", oneIteration, "dealer1", "d1password"
RunAction "LoginDealer [LoginLib]", oneIteration


Now I delete the second line which was just inserted, so the script looks EXACTLY like before

Code:
RunAction "LoginDealer [LoginLib]", oneIteration, "dealer1", "d1password"

and if I run the test now it will work fine.

So, how can I avoid doing the insert shtuff?

Thanks a lot!
CC
Reply
#2
Not Solved
Unfortunately I dont think you can do that.
Please correct me if I am wrong.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  calling QTP script from one to another krishnas.tester 3 6,811 11-12-2014, 10:32 AM
Last Post: vinod123
  Creating a folder from within a reusable action. sd3 2 3,239 06-18-2013, 03:20 PM
Last Post: learnQtptips
  calling stored procedure from Oracle borisk 3 6,521 03-19-2013, 12:41 PM
Last Post: gaveyom
  Function is not calling from subdriver qtpexpert 0 2,079 01-18-2013, 12:25 PM
Last Post: qtpexpert
  While calling sub procedure its giving error Akhila 1 2,585 10-22-2012, 01:55 PM
Last Post: harishshenoy

Forum Jump:


Users browsing this thread: 1 Guest(s)