Forum Discussion
4 Replies
Sort By
- theodoros_kosifNew ContributorSuggestions?
- murugans1011Regular ContributorHI wat u mean by " initialize all the variables from different tests" does the test are from same project or different projects?? if u want to run testitem from differenct project then u can add to current project using Scripts|Add Existing Item
- MikeSchmidOccasional ContributorYou can use the DDT excel driver to open a spreadsheet and read through the row and set your variables to the contents of what is in the spreadsheet for your initial variables.
Look up DDTDriver Object in the help and it explains how to use it. - sumit_engineerOccasional Contributor
FilePath = "C:\Envi.ini"
Section = "Environment"
Function Read_INI(Section,FilePath)
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(FilePath) Then
Set ini = Storages.INI(FilePath)
ProjectPhase = ini.GetSubSection(Section).GetOption("ProjectPhase","")
Else
Read_INI = False
End If
End EnviFunction
NOTE : 1.Make Sure in your Enviormnet.ini File [ROOT] is added on the first line .
2.No Space betweeen ProjectPhase and = 1 .
'==================C:\Envi.ini================
[Root]
[Environment]
ProjectPhase=1
'==================Envi.ini================
Related Content
- 11 years agomurugans1011
- 11 years agoebodien
- 3 years agoprasath_2k
Recent Discussions
- 2 days agoGane195