Micro Focus QTP (UFT) Forums
insert call to new action - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: insert call to new action (/Thread-insert-call-to-new-action)



insert call to new action - bistritapcv - 04-05-2013

This seems like a simple question but I can't get the right results. I have two actions: login and logout. I want to insert a call to a new action between them.

I can check to insert the action at the end of the test and drag it to the place I would like it, but that is a lot of unnecessary work.

There is a check box to insert at the end of current step. I check this, but even if the current step is the last step of action login, it nests the new action inside of the login action instead of making it parallel: ie.

Code:
login
|- action1
logout

what I want is

login
action1
logout

Seems simple but it doesn't work. Do I have to create the action at the end of the test (after logout) like

login
logout
action1

and then drag action1 to go between login and logout?

Tony


RE: insert call to new action - ravi.gajul - 04-06-2013

I don't think there is any other way. However, you may use the short cut to change the run order of actions.Click on an action in "Test Flow" panel and press CTRL+UP arrow or CTRL+DOWN arrow to move an action and its sub-actions. This should reduce your drag and drop effort.