NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand - User Login based on Windows Credentials

Hello I have two questions:

 

1.) I want to create a sequence where a part of the sequence is only available to the an Operator level user and the whole sequence is available for an Admin level user.  Is there a way to modify a sequence such that it has this kind of restriction?  For example, if an operator is logged on, only half of the sequence will execute and if its an admin, the entire sequence will execute.

 

2.) Is there a way to have TestStand programmatically know which user is logged on based on their Windows credential?  Ideally, I would just like to have TestStand already know who the user is so that they don't have to manually log in each time when TestStand opens.

 

Any help is appreciated.

 

Thank you

0 Kudos
Message 1 of 3
(1,355 Views)

You can configure to automatically login using Windows Credentials - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YINaCAO&l=en-US

 

Then you can add preconditions to the test sequence to check for the user or user privileges and decide whether to run or not.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(1,332 Views)

Hi,

 

To your question 1...refer the example :

C:\Users\Public\Documents\National Instruments\TestStand 2019 (32-bit)\Examples\TestStand API\Creating & Deleting Users Using API\Creating & Deleting Users Using API.seq

 

 

Regards,

 

Ravi

0 Kudos
Message 3 of 3
(1,323 Views)