Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extract data from test and use it in another test
#10
Solved: 10 Years, 9 Months, 1 Week ago
Quick-and-dirty alternate method using Windows environment variables:

Code:
Sub SetSysEnv(strSysEnvVar,strValue)
    Set WshShell = CreateObject("WScript.Shell")
    Set WshSysEnv = WshShell.Environment("SYSTEM")
    WshSysEnv(strSysEnvVar) = strValue
    Set WshShell = Nothing
    Set WshSysEnv = Nothing
End Sub

Function GetSysEnv(strSysEnvVar)
    Set WshShell = CreateObject("WScript.Shell")
    Set WshSysEnv = WshShell.Environment("SYSTEM")
    GetSysEnv = WshSysEnv(strSysEnvVar)
    Set WshShell = Nothing
    Set WshSysEnv = Nothing
End Function

Archens
Reply


Messages In This Thread
RE: Extract data from test and use it in another test - by Archens - 04-26-2012, 12:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 931 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Multiple rows of test data Bhuvana 0 1,169 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Can we test Salesforce Standard form using QTP? yona34 0 943 05-22-2018, 10:57 AM
Last Post: yona34
  issue with IE when running test eiko 2 1,447 02-01-2018, 04:46 PM
Last Post: eiko
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,367 10-14-2016, 08:38 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)