11-08-2017 10:27 AM
In my application, I have disabled Test Stand's login method. I don't want to use a login method. I want the report that is auto generated to contain a value in the operator field that I programmatically set. I don't need to have a user logged in, just want to override the value for the operator in the report.
To disable the user login, I set "Check User Privileges" = FALSE, "Require User Login" = FALSE, "Automatically Login Windows System User" = TRUE, "Login On Start" = FALSE.
I am using the default Batch Model. I have a variable with the string value of the name I want to populate to the operator field in the results log. I'm using the default ATML result processor.
I've tried setting various variables, but it is always empty in the results. Can someone point me in the right direction?
Thanks!
Solved! Go to Solution.
11-08-2017 11:07 AM
Figured it out...
"Automatically Login Windows System User" should be FALSE. Then I can set the operator through:
RunState.Root.Parameters.ModelData.StationInfo.LoginName = "my_new_name"
08-18-2020 04:08 AM
I'm struggling with the same issue.
If I use a statement in the main sequence file with the mentioned action :
RunState.Root.Parameters.ModelData.StationInfo.LoginName = "my_new_name"
I will get an error that the property name is unknown.
What I'm doing wrong ?