| || |
Move reusable action
I use QTP and quality center.
I have several reusable test stock on quality center. This reusable test are call by other test. The problem is that the caller test are link between the called with physical path and when I move a reusable test all the caller test are affect.
I have try to put in test path in tools >> option >> folders tab and to call the action without the complete path (like it is write in a previously post) but its doesn't work.
It'is very important on my project to can move the reusable test and still to work with other.
Thanks for your help
Re: Move reusable action
This is more of a QTP issue than QualityCenter. Probably should post it there.
<font color="#6B6B6B">Scott Genevish
Principal Consultant Designed Quality
Re: Move reusable action
I have "been there and done that" recently, as I had to move testcases from the Window's file system to being resident "in" QC.
When tests are placed in QC (which is a twisted sister virtual file system) you can't use path relative syntax like ../path/path/file--as you can when QTP tests are placed in the Windows file system. So in my case, all of these references had to be removed/replaced with:
Rather, you have to use QTP's Folders tab (which should really be labeled Search Folders) on the QTP Tools->Options dialog to specify an arbitary number of (fully qualified) search paths in QC. Using the "feature" you can then insert your calls to shared Actions using the "path relative" option, assuming that the just mentioned (search) Folders tab has a path to the folder containing the needed shared Action(s). Of course this is implicitly added ON THE PC where the initial call to the shared Action is added to a testcase.
BUT, this technique requires that ALL PCs (and all virtual sessions on multi-login systems) UPDATE their QTP to use the same set of search paths on the Folders tab--otherwise the test scripts can't find the "path relative" Action and fail (why QTP did not tie this kludge to the Test Settings Options dialog will always be a mystery to me).
Because of the need to sync all QTP's (and all logins using QTP on multi-user PCs) relative search Folders defintions (which BTW can be done use vbScript AOM syntax) I recommend that you FIX ONE folder PER PROJECT to store each of the following:
and then insert all calls using path absolute syntax.
-Hope this helps, Terry Horwath
P.S. It is also a mystery to me why you "need to move" the location/folders containing your shared Actions from time-to-time. Fix the location per project, and then leave it alone.