NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

test stand report header

How do you customize the information placed in the "Operator" cell of the report header? I can't use the default (login name?).
Thanks.
 
George
0 Kudos
Message 1 of 6
(3,771 Views)

George,

I am not sure why you need to change the operator cell value.
The value in this cell indicates what user executed the test sequence (current user name).
Usually when you are looking to a report you want to know what user was logged in when you executed the sequence.
If you want a different name to appear in that cell you can create a new user with the desired name, log in and execute the sequence.
The newe user name should appear in the header.
Could you describe the problem you are trying to solve?

Best Regards.

Antonio Lie.

 


 

0 Kudos
Message 2 of 6
(3,753 Views)

We need to change operators during the middle of tests and have operators that won't necessarily be the person who logs onto the system.

I found an example to do just what I need to do (I think) but it does not work. My version of teststand (I don't know if it is a version problem) does not recognize one of the variable names (RunState.Root.Locals.StationInfo.LoginName)

The file is called newuser.seq found on the ni website under teststand examples.

Thanks for your feedback

 

George Belva

0 Kudos
Message 3 of 6
(3,736 Views)

George,

What version of TestStand are you using?
Could you attach the sequence file?

Regards.

Antonio Lie.

 

0 Kudos
Message 4 of 6
(3,732 Views)
0 Kudos
Message 5 of 6
(3,726 Views)
George,
I think I know what is going on.
Try executing the sequence using Single Pass or Test UUTs and the variables should be there.
The variables you are trying to access are under RunState.Root.
From the TestStand Help:
 
RunState.Root:
Sequence context for the root sequence invocation. If you initiate an execution using a Process Model entry point, the property is the sequence context for that entry point. For example, if you use an entry point from the default TestStand process model, the Root property is the sequence context of the Test UUTs or the Single Pass sequence. If you initiate an execution on a sequence without using a Process Model entry point, the Root property object is the sequence context for the sequence you run.
 
It seems that whoever wrote that sequence was expecting to execute it with Single Pass or Test UUTs all the time.
If you execute the sequence using Run MainSequence then the process model is not used and since the sequence we are running does not contain a Local variable called StationInfo then we get the error while trying to evaluate the expression.
 
If you do not want to get  the erro when you execute using Run MainSequence you could check for the existence of the variable using the PropertyExists() function before trying to access it.
 
Hope it helps.
 
Antonio Lie.
 

Message Edited by Antonio Lie (NI) on 10-10-2006 04:14 PM

0 Kudos
Message 6 of 6
(3,721 Views)