NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Login into Teststand with Message Popup

Highlighted

I want to Login into TS with Message Popup. I tried to overwrite FrontEndCalback.seq like this:

Capture.PNG

 

But TS return an error:

 

Capture2.PNG

 

What is wrong ??

0 Kudos
Message 1 of 4
(86 Views)

You are setting a user object equal to a string.  That doesn't make sense.

 

You need to acquire the user from the Users.ini file or create a new user and assign it to CurrentUser.

jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(63 Views)

I got thinking about it and here is some code to help you out.

 

Create a Local variable that is an Object Reference.  Then the following will log in your user:

Locals.NewUser = RunState.Engine.NewUser(Nothing),

Locals.NewUser.AsUser.FullName = RunState.PreviousStep.Result.Response,

RunState.Engine.CurrentUser = Locals.NewUser

 

If you want the user to do anything you'll have to add their privileges. 

jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 4
(51 Views)

Thank you ! But how can I add privilegies other way than using TS User Manager?

0 Kudos
Message 4 of 4
(33 Views)