Geeks Talk

Prepare for your Next Interview




Script which retrieves the current path of the test script

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...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-17-2007
Junior Member
 
Join Date: Jul 2007
Location: India
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
niranjanbiswal is on a distinguished road
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
Reply With Quote
The Following User Says Thank You to niranjanbiswal For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-18-2007
Contributing Member
 
Join Date: Mar 2007
Location: Florida,United States
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
myth.ks is on a distinguished road
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!
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 10:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved