03-16-2022 03:50 PM
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
03-17-2022 08:23 AM
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.
03-17-2022 11:47 AM
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