Micro Focus QTP (UFT) Forums
How to delete a reusable action from test flow - 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: How to delete a reusable action from test flow (/Thread-How-to-delete-a-reusable-action-from-test-flow)



How to delete a reusable action from test flow - Jenny - 05-31-2011

Hi, In qtp 9, i used to be able to create a new action, then delete it from the main test flow, but it is still exists in the test resource. We have just upgraded our qtp to version 11, and i tried to do the same thing. but when deleting the action, it is deleted from both test flow and resource. please help


RE: How to delete a reusable action from test flow - sreekanth chilam - 05-31-2011

Hi,

You can delete the action by the below ways:
1. Select the required action from Action tool bar and go to Edit Menu > Action > Delete Action

2. Go to Keyword view and select the required Action and Right Click > Delete


RE: How to delete a reusable action from test flow - Jenny - 06-01-2011

I have tried this, the action was deleted, but it was also deleted from resource. What i want is to delete from action and keep it in resouce, so in my test scripts, i can run the action if is is required.

ieg if record exists then
runaction "update"
else
runaction "insert"

so i created 2 actions, 1 for update and 1 insert. but i do not want them to applear in the test flow.

hope it is clearer


RE: How to delete a reusable action from test flow - Jay - 06-01-2011

you can simply delete the runaction statement (select the line and press delete button)or you can keep in if elase