How to use a project variables in a VB script unit
Hi all,
I have come across a problem, that I cannot fathom.
I have 4 values I will be using across a suite of tests I am defining. I have created persistent project variables to store these values (LAA = Local Admin account)
I am launching a CMD prompt using the local administrator account, because using certain WMIC commands require to be executed as the local admin account, e.g. WMIC USERACCOUNT.
I know the LAAPassword project variable is typed as a string in the screenshot, but this is irrelevant because I have the exact same failure when the LAAPassword variable is typed as a password
The following VB script fails to launch a batch file, and errors with 'Unable to run "GenLAAProps_app" under the domain\account name"
If I define the variables within the VB script, e.g. LAAName = "CantGuessMe", etc. then the script works. Because of the way we do security, different Windows installations have different local admin names and passwords, which I wish to feed-in via a datasource, hence the reason for using project variables - this input will be developed once I can get the project variables to work.
I've also tried assigning the project variables to local variables defined within the VB script, but no luck.
It's probably something very simple I've missed out, but I can't find it.
Any help would be welcomed.
Cheers,
Simon