From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Login into Teststand with Message Popup

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
(2,085 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
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(2,062 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
testeract.com
~Will work for kudos and/or BBQ~
Message 3 of 4
(2,050 Views)

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

0 Kudos
Message 4 of 4
(2,032 Views)