Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
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...
|
|||||||
|
|||
|
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 | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Writing Test Script Language in QTP | olateejay | QTP | 3 | 04-01-2009 08:41 AM |
| What is the script to find out the test directory | Geek_Guest | QTP | 1 | 11-12-2007 04:16 AM |
| Template for new test script in QTP | Geek_Guest | QTP | 1 | 06-25-2007 03: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 10:50 PM |
| How to delete cookies from the specified dir path using vb script? | Jyothi_E | QTP | 0 | 04-30-2007 08:21 AM |