How do I force a Task or a Test to run in ATEasy Test Executive?

Knowledge Base Article # Q200247

Read Prior Article Read Next Article
Summary Describes how to select a Task or a Test and prevent users from un-checking it.
The ATEasy Test Executive provides a way for users to check and uncheck a Task or a Test by clicking on the Tests pane check boxes. The Tests pane displays a tree control (TreeView) nodes that represents a Program, Task or Test. This article describes how to check and disable a TreeView node to force a Task or a Test to run and to prevent  the user from un-checking the node.

The example assumes you are running a program with a task ID "SystemBIT" and we want to prevent users from un-checking it. The code can be placed in Program.OnInit():

1. Define a program variable:

node: MSComctlLib.Node


2. Insert the following cod to the Program.OnInit() event:


! force task with an id of "SystemBit" to run, prevent the user from un-checking it
! find the node for SystemBIT, replace this name with your task ID
node=TestExec.m_frmMain.FindNode(Program, Program.Tests("SystemBIT"))
! check the node
TestExec.CheckTreeNode(node)  
! prevent the user from un-checking it
TestExec.SetNodeData(node, ateNodeFieldDisable, True)

Article Date 7/2/2013 9:47:35 AM     Updated: 4/17/2014 9:05:14 AM
Keywords

2 ratings | 3 out of 5
View Comment
Rating: 5 out of 5 | Ron Y. from Mission Viejo, | Wednesday, August 28, 2013
To Program.OnInit() !
View Comment
Rating: 1 out of 5 | Pimjai K. from Tucson, AZ | Wednesday, August 28, 2013
Read Prior Article Read Next Article