Posts: 23
Threads: 10
Joined: Dec 2009
Reputation:
0
05-31-2011, 08:32 AM
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
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
05-31-2011, 01:03 PM
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
Posts: 23
Threads: 10
Joined: Dec 2009
Reputation:
0
06-01-2011, 08:33 AM
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
Posts: 79
Threads: 1
Joined: Apr 2011
Reputation:
0
06-01-2011, 11:52 AM
you can simply delete the runaction statement (select the line and press delete button)or you can keep in if elase