Prepare for your Next Interview
This is a discussion on Script which retrieves the current path of the test script within the QTP forums, part of the Software Testing category; Hi Everybody, Could you tell me the script which retrieves the current path of the test script? I am working on version 9.1...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Script which retrieves the current path of the test script
Hi Everybody,
Could you tell me the script which retrieves the current path of the test script? I am working on version 9.1 |
| The Following User Says Thank You to niranjanbiswal For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Script which retrieves the current path of the test script
sObjRepoFile = Environment.Value("TestDir")
Set oFso = CreateObject( "Scripting.FileSystemObject" ) Environment.Value("RelativePath")=oFso.GetParentFolderName( oFso.GetParentFolderName( sObjRepoFile )) scriptpath = Environment.Value("RelativePath") msgbox scriptpath Hope this will work! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Writing Test Script Language in QTP | olateejay | QTP | 2 | 01-11-2008 01:38 AM |
| What is the script to find out the test directory | Geek_Guest | QTP | 1 | 11-12-2007 03:16 AM |
| Template for new test script in QTP | Geek_Guest | QTP | 1 | 06-25-2007 02:20 AM |
| How do I make a new requirement, test plan, test script, defect in test director 9.0 | Geek_Guest | Test Director | 0 | 06-20-2007 09:50 PM |
| How to delete cookies from the specified dir path using vb script? | Jyothi_E | QTP | 0 | 04-30-2007 07:21 AM |