Micro Focus QTP (UFT) Forums
Clean old calls to external actions - that is not used anymore - from test - 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: Clean old calls to external actions - that is not used anymore - from test (/Thread-Clean-old-calls-to-external-actions-that-is-not-used-anymore-from-test)



Clean old calls to external actions - that is not used anymore - from test - MGMN - 09-10-2008

I use QTP 9.0 and have one "master" test file where I don't have any actions, but only make calls to actions placed in other QTP test files. I decided to change the names of all my test files which lead to that I had to make new calls to existing actions in the master test file (and remove the old calls).

However, even after I removed all the old calls I get a "Missing resources" box when I open the master test file. Do you know why this message appear even when there are no calls to these actions?

Also - in the master test file - I can see old external reusable actions (that the test has called long time ago, i.e. not the actions above) in the "External actions" section of the Action drop-down menu above the scripting window. I.E. the window which holds all actions and calls made in the test. The DataTables for these old actions also remains in the test file. How can I "clean" the test from these ActionCalls/DataTables?

(Edit: added the word "calls" to the subject and made some clarifications in the text, but it's still the same questions)


RE: Clean old calls to external actions - that is not used anymore - from test - MGMN - 09-10-2008

I have found out by myself how to remove the action calls from the "Missing Resources" window. You double-click on the item/action in the "Missing Resources" list and then click on the item in the window that appear. After that you either locate the missing resource or delete it by pressing one of the icons that after the click appeared at the right hand side of the window. When this is done the "Missing resource" window doesn't appear anymore.

But my second question still remain; how do I remove old External Actions from still appearing in the drop-down menu (and their DataTables) even since their calls have been removed a long time ago.


RE: Clean old calls to external actions - that is not used anymore - from test - somisays - 09-10-2008

Hi,
To remove any action from the test go to keyword view and highlight the action and right click and delete.If you do like this only the RunAction is going to delete from the code.
So Alwayd do like this to delete a action.


RE: Clean old calls to external actions - that is not used anymore - from test - MGMN - 09-10-2008

Okay, maybe this is not the way that the actions was removed, it's possible that they code row of the action/call in ExpertView was deleted. But is there a way to delete the action calls now afterwards? Since they have been removed from the test they are not appearing neither in the Keyword view nor in the code in ExpertView.

As I wrote before, the action's DataTables also still remains and I can't find a way to remove them in the DataTable view in order to see if it's the DataTables that makes the actions still appear in the drop-down-menu.


RE: Clean old calls to external actions - that is not used anymore - from test - MGMN - 09-11-2008

I would like to re-phrase my question:

In which ways - except for via action calls specified in the script code in Expert view -can external Actions (and the DataTables in these external actions) connect/relate/refer to a QTP test file?

(Edit: Some text clarifications)