Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Built-in Environment Variables
#1
Solved: 11 Years, 4 Months ago
Hi,

Can someone please let me know how I can refer to a "Built-in Environment Variable" within my QTP test?

For example, I tried to refer the variable "TestDir" as TestDir and Environment.TestDir. Nothing worked.

I have tried searching in the Forum, did not notice any.

Please help. Thanks.
Subha
Reply
#2
Solved: 11 Years, 4 Months ago
Hi,

Code:
msgbox Environment.Value("ActionName")
msgbox Environment.Value("TestDir")

The first line will pull the action name and the second loc will pull the Test dir.

Let me know if you need any further info.
Thanks,
SUpputuri
Reply
#3
Solved: 11 Years, 4 Months ago Smile 
Thanks Supputuri! That works Smile

I was applying wrongly.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 2,293 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,950 11-30-2017, 02:21 AM
Last Post: supputuri
  environment variable path for qc automation2012 0 2,873 01-18-2015, 08:18 AM
Last Post: automation2012
  Select does not work together with Environment.Value qtped 7 4,062 02-14-2014, 12:46 PM
Last Post: supputuri
  Array as an environment variable..... rachna_nags 7 13,344 11-07-2013, 08:25 PM
Last Post: ssvali

Forum Jump:


Users browsing this thread: 1 Guest(s)