How can I import environment from a file on disk?
Environment.LoadFromFile "C:\Env.xml"
Set qtApp = CreateObject("QuickTest.Application")
Open the test using:
qtApp.Open vDriverScriptDir + "\verify Login page"
Set qtTest = qtApp.Test
Assigning values to environment variables:
qtTest.Environment.Value("TestExecResultsPath") = TestExecResultsPath
qtTest.Environment.Value("strCompanyName") = strCompanyName
qtTest.Environment.Value("strUserName") = strUserName
qtTest.Environment.Value("strPassword") = strPassword
''Loading Environment Variables file
qtTest.Environment.LoadFromFile vLibLocation + "EnvironVariables.XML",True
Envi sml file content:
<Environment>
<Variable>
<Name>ScrDetailSheet</Name>
<Value>ScreenDetails</Value>
</Variable>
<Variable>
<Name>ObjDetailsSheet</Name>
<Value>ObjDetails</Value>
</Variable>
<Variable>
<Name>TestDataSheet</Name>
<Value>TestData</Value>
</Variable>
<Variable>
<Name>TestDataDetailSheet</Name>
<Value>TestDataDetail</Value>
</Variable>
<Variable>
<Name>AddlDetailsSheet</Name>
<Value>AddlDetails</Value>
</Variable>
</Environment>
The environment variable file must be an XML file using the following syntax:
› Syntax
› Environment.LoadFromFile(Path)
› Example:
› Environment.LoadFromFile("C:\QuickTest\Files\MyVariables.xml")
› Environment.LoadFromFile("C:\MyVariables.xml")
================================
'' Add / associate libraries with test:
'Loading Necessary Libraries for the test
Set qtLibraries = qtTest.Settings.Resources.Libraries
qtLibraries.RemoveAll
qtLibraries.Add vLibLocation + "GlobalVariables.vbs", 1 ' Add the library to the collection
qtLibraries.Add vLibLocation + "Config.vbs", 2
qtLibraries.Add vLibLocation + "CommonLibrary.vbs", 3
qtLibraries.Add vLibLocation + "GenericLib.vbs", 4
qtLibraries.Add vLibLocation + "InsertsLibrary.vbs", 5
Environment.LoadFromFile "C:\Env.xml"
Set qtApp = CreateObject("QuickTest.Application")
Open the test using:
qtApp.Open vDriverScriptDir + "\verify Login page"
Set qtTest = qtApp.Test
Assigning values to environment variables:
qtTest.Environment.Value("TestExecResultsPath") = TestExecResultsPath
qtTest.Environment.Value("strCompanyName") = strCompanyName
qtTest.Environment.Value("strUserName") = strUserName
qtTest.Environment.Value("strPassword") = strPassword
''Loading Environment Variables file
qtTest.Environment.LoadFromFile vLibLocation + "EnvironVariables.XML",True
Envi sml file content:
<Environment>
<Variable>
<Name>ScrDetailSheet</Name>
<Value>ScreenDetails</Value>
</Variable>
<Variable>
<Name>ObjDetailsSheet</Name>
<Value>ObjDetails</Value>
</Variable>
<Variable>
<Name>TestDataSheet</Name>
<Value>TestData</Value>
</Variable>
<Variable>
<Name>TestDataDetailSheet</Name>
<Value>TestDataDetail</Value>
</Variable>
<Variable>
<Name>AddlDetailsSheet</Name>
<Value>AddlDetails</Value>
</Variable>
</Environment>
The environment variable file must be an XML file using the following syntax:
› Syntax
› Environment.LoadFromFile(Path)
› Example:
› Environment.LoadFromFile("C:\QuickTest\Files\MyVariables.xml")
› Environment.LoadFromFile("C:\MyVariables.xml")
================================
'' Add / associate libraries with test:
'Loading Necessary Libraries for the test
Set qtLibraries = qtTest.Settings.Resources.Libraries
qtLibraries.RemoveAll
qtLibraries.Add vLibLocation + "GlobalVariables.vbs", 1 ' Add the library to the collection
qtLibraries.Add vLibLocation + "Config.vbs", 2
qtLibraries.Add vLibLocation + "CommonLibrary.vbs", 3
qtLibraries.Add vLibLocation + "GenericLib.vbs", 4
qtLibraries.Add vLibLocation + "InsertsLibrary.vbs", 5
Casino Finder | The City of Atlantic City
ReplyDeleteFind Casinos Nearby 골드머니 in Atlantic City, 쪽박 걸 NJ 일반인 후방 from $100K to $600K! A large m 2 슬롯 variety of casino games and jackpots are 파라오 사이트 waiting for you at Ocean Casino Resort