HP ALM 12.5-如何在测试实验室模块中使测试集只读 [英] HP ALM 12.5 - How to Make Test Sets Read Only in Test Lab Module
问题描述
我正在尝试将特定的测试集设为只读,这意味着没有人能够运行,删除或修改这些特定的测试集.
I am trying to make particular test set Read Only, meaning no one will be able to run, delete or modify these particular test set.
我还不知道如何使测试集以及文件夹的删除"和修改"功能只读,我也将不胜感激):
I also don't know how to make Test Sets and also Folders Read Only for Delete and Modify functions yet, any help there I will be thankful too):
在测试实验室"模块脚本中-> TestSet_MoveTo子:
In Test Lab module Script --> TestSet_MoveTo Sub:
If TestSet_Fields.Field("TC_Cycle_ID").Value = 103 Then
Actions.Action("TestSetView.Run").Enabled = FALSE
Actions.Action("TestSetView.RunTestSet").Enabled = FALSE
Else
Actions.Action("TestSetView.Run").Enabled = TRUE
Actions.Action("TestSetView.RunTestSet").Enabled = TRUE
End If
现在,除了具有测试集ID 103的测试集外,它还禁用了测试实验室中的所有测试集的运行"按钮.我不确定在上面的编码中是否做错了什么.这应该只禁用了测试集ID 103的运行"和运行测试集"按钮.
Now it disables "Run" button for all test sets in Test Lab in addition to Test Set with Test Set ID 103. I'm not sure if I'm doing anything wrong in coding above. This should have only disabled the Run and RunTestSet buttons for Test Set ID 103.
即使测试集显示禁用的运行"按钮(对于所有测试集),也可以通过执行网格"更改测试集的状态.如何禁用此字段?
Also, even when test sets show disabled Run button (for all test sets), the Status of a test set can be changed through Execution Grid. How can I disable this field?
谢谢.
推荐答案
您需要使用CY_CYCLE_ID
而不是TC_Cycle_ID
字段.
You need to use the CY_CYCLE_ID
and not the TC_Cycle_ID
field.
If TestSet_Fields.Field("CY_CYCLE_ID").Value = "103" then
....
End If
如您所见,CY_CYCLE_ID
字段代表测试集ID:
As you can see, the CY_CYCLE_ID
field represents the testset ID:
这篇关于HP ALM 12.5-如何在测试实验室模块中使测试集只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!