Forum Discussion
hlalumiere
11 years agoRegular Contributor
In your project's events, add something like the following in your OnStartTest handler:
Add whatever configs you want in the text file (could use XML too), and have the ParseAndApplyConfig routine set your variables as you want them depending on what's in the config file. Everytime you start a test the text file is read and the variables are modified.
Sub dynacom_OnStartTest(Sender)
set objFSO = createobject("Scripting.FileSystemObject")
set objFile = objFSO.OpenTextFile("C:\SomePath\TestConfig.txt", 1)
strConfig = objFile.ReadAll
ParseAndApplyConfig strConfig
End Sub
Add whatever configs you want in the text file (could use XML too), and have the ParseAndApplyConfig routine set your variables as you want them depending on what's in the config file. Everytime you start a test the text file is read and the variables are modified.
Related Content
Recent Discussions
- 3 hours agoSvetaG