Teststand 之User Manager面向?qū)ο笾^承特性user manager中Users中的用戶權(quán)限由兩部分形成:繼承組特性;本身特性比如繼承Groups的Developer的lhuiy用戶:1.由于Groups的Developer.Privileges.Configure.CofigEngine=True的,即使lhuiy.Privileges.Configure.CofigEngine=False,lhuiy還是擁有CofigEngine權(quán)限的;2.Developer.Privileges.Configure.EditUsers=False,說明Developer用戶組沒有修改User manager的權(quán)限,如果將lhuiy.Privileges.Configure.EditUsers=True,lhuiy也可以擁有修改User manager的權(quán)限。Privilegeslhuiy.Privileges.GrantAll 開放所有權(quán)限 lhuiy.Privileges.Custom.GrantAll 開放所有Custom權(quán)限lhuiy.Privileges.Operate.GrantAll 開放所有Operate權(quán)限lhuiy.Privileges.Operate.Execute Execute>>Test UUTs權(quán)限lhuiy.Privileges.Operate.Terminate Debug>>Terminate Executionlhuiy.Privileges.Operate.Abort Debug>>Abortlhuiy.Privileges.Debug.GrantAll 開放所有Debug權(quán)限lhuiy.Privileges.Debug.ControlExecFlow Debug>>Step Into,Step Over,Step Out,Set Next Step to Cursorlhuiy.Privileges.Debug.SinglePass Execute>>SinglePassslhuiy.Privileges.Debug.RunAnySequence Execute>>Run lhuiy.Privileges.Debug.RunSelectedTests Execute>>Run Selected Steps,Run Selected Steps Usinglhuiy.Privileges.Debug.LoopSelectedTests Execute>>Loop Selected Steps...,Loop Selected Steps Usinglhuiy.Privileges.Debug.EditStationGlobals 修改和添加StationGlobals變量(sequence文件中的Variables>>StationGlobals);修改Test UUTsStationGlobals變量(前提條件是:lhuiy.Privileges.Debug.EditRuntimeVariables=True)lhuiy.Privileges.Debug.EditRuntimeVariables 修改Test UUTs的運行變量(StationGlobals變量不能修改)lhuiy.Privileges.Develop.GrantAll 開放所有Develop權(quán)限lhuiy.Privileges.Develop.EditSequenceFiles 可以修改SequenceFileslhuiy.Privileges.Develop.SaveSequenceFiles 擁有保存SequenceFiles的權(quán)限lhuiy.Privileges.Develop.EditWorkspace 可以修改Workspacelhuiy.Privileges.Develop.UseSourceControl 可以使用源代碼控制lhuiy.Privileges.Configure.GrantAll 開放所有Configure權(quán)限lhuiy.Privileges.Configure.EditTemplates 修改Template的權(quán)限(前提:lhuiy.Privileges.Develop.EditSequenceFiles=True)lhuiy.Privileges.Configure.EditTypes 修改Types Palettes下文件類型(Sequence Files中類型由lhuiy.Privileges.Develop.EditSequenceFiles授權(quán);Station Globals中的類型由lhuiy.Privileges.Debug.EditStationGlobals授權(quán);User Manager中的類型由lhuiy.Privileges.Configure.EditUsers授權(quán))lhuiy.Privileges.Configure.ConfigEngine 有Configure>>Station Options...權(quán)限lhuiy.Privileges.Configure.ConfigAdapter 有Configure>>Adapters...權(quán)限lhuiy.Privileges.Configure.ConfigApp 有Configure>>Sequence Editor Options...權(quán)限lhuiy.Privileges.Configure.ConfigReport 有Configure>>Report Options...權(quán)限lhuiy.Privileges.Configure.ConfigDatabase 有Configure>>Database Options...權(quán)限lhuiy.Privileges.Configure.ConfigModel 有Configure>>Model Options...權(quán)限lhuiy.Privileges.Configure.EditUsers 有修改User Manager權(quán)限lhuiy.Privileges.Configure.EditProcessModelFiles 怎么使用Privileges.Custom自定義權(quán)限1.以Administrator身份創(chuàng)建客戶定制的自定義權(quán)限:打開Type>>Other>>User Manager>>NI_UserCustomPrivieges創(chuàng)建自定義權(quán)限,比如Calibration。2.以上自定義的權(quán)限就可以在User Manager的Groups和Users的Privileges>>Custom里可以看到,這樣就可以根據(jù)不同的用戶進(jìn)行不同的配置。3.使用權(quán)限:可以用Variables>>StationGlobals>>TS>>CurrentUser下的變量比如StationGlobals.TS.CurrentUser.Privileges.Custom.Calibration訪問使用不同用戶的權(quán)限配置情況,以針對不同的用戶設(shè)計不同功能的代碼和界面。