Try to put your code into the
TestLab_TestSetTests_MoveTo() Subroutine
And then just disable manual runner button -
Actions.Action("act_run_manually").Enabled = false
Actions.Action("TestSetView.RunManually").Enabled = false
DO NOT do this TestLab_ActionCanExecute = False
----------------------------------------------------------------------
Hm... after some investigation I think I know wha tis the problem.
Actions.Action("act_run_manually").Enabled = false - is just not visible in any test lab sub.
But you can put your code in Common script.
In ActionCanExecute or Enter Module for example.
for example this - disbales actions you need:
Sub EnterModule
'Use ActiveModule and ActiveDialogName to get
'the current context.
On Error Resume Next
ActionCanExecute = TestLab_ActionCanExecute(ActionName)
Actions.Action("act_run_manually").Enabled = false
Actions.Action("act_run_manually").Visible = false
Actions.Action("TestSetView.RunManually").Enabled = false
Actions.Action("TestSetView.RunManually").Visible = false
Actions.Action("act_run").Enabled = false
Actions.Action("act_run").Visible = false
On Error GoTo 0
End Sub