Geeks Talk

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.

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 Blogs FAQ Tag Cloud 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 2 Times in 2 Posts
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 07:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved