Method File

TestBot ETM File Creation

  1. Right Click the Method Folder and Select New -> other.

Select Other
  1. Select “TestBot Method” and click Next

Select  TestBot Method

3.Enter User Defined Methods or Click Standard Methods, then Click OK and Click Finish

Select Other

The ETM file is opened in the TestBot ETM Editor.

  1. TestBot Method Details and Agent Creation

    • Enter the Method ID, Name, Description and Maximum Execution time (in seconds).

    • In Test Agents, click the “Add” button. A test agent property popup will appear, select the agent group and type.

TestBot Method Details and Agent Creation

Once test agents are added, the corresponding test agents commands will be created in the toolbox.

Agent Toolbox
  1. The screen below shows the added test agents. In this example, Toggle Key Test agents are added.

Agent Creation
  1. Click the “Add” button in the Test Case Parameter section.

    A popup window will appear, displaying a table of all parameters from the mapped TestBot Data file, each accompanied by a checkbox. select the checkboxes corresponding to the parameters and Click the Ok, added test data in the testcase parameter.

TestCase Parameter
  1. Graphical Programming for Test Case

    • Navigate to the Graphical Programming tab in the Test Method (.etm) file.

    • Click the white area, which represents the graphical programming test case, and provide the Test Case Name in the Test Case Properties.

Graphical programming Test Case
  1. Graphical Programming Test Step

    • Click the “Add Test Step” button to create a graphical programming test step.

    • Click that test step, provide the Test Step ID and Input.

    • In the Test Input field, when typing “par.” (which means parameter), a list box will appear with the data column list, allowing the user to choose the specified data. For example, “par.key_name” corresponds to the name of the Key. Like Caps Lock, Numeric Lock, Scroll Lock.

Graphical programming Test Step
  1. Handling Errors and Execution Flow

    Choose “Go to Next” or “Exit.”
    • “Go to Next”: If this option is selected and an error occurs during the execution of the test step, the tool will skip the erroneous step and continue executing the subsequent steps.

    • “Exit”: If this option is selected and an error occurs during the execution of the test step, the tool will terminate the test execution immediately.

Test Step Goto Next/Exit
  1. Block Properties

    • Drag and drop the commands from the Toolbox into test steps.

    • Providing the error message and select the appropriate data from the data list, which contains the column name of the data in the Test Data(.etd) file.

Graphical programming Command block properties
  1. TestStep Error Messages

    • Each step includes two messages: a True Message and a False Message.

    • The user define the expected True and False messages.

    • When typing “par.” (which means parameter), a list box will appear with the data column list, allowing the user to choose the specified data.

Graphical programming Test Step Error Message Graphical programming Test Step Error Message
  1. Graphical programming : Key On Test

The image below illustrates a Key On Test using graphical programming.

Executing the Test

The test follows the block dropping order, as shown below:
  • Read Parameter

  • Show Popup

  • Read Key State

  • Read Constant

  • Bool Compare

Graphical programming Key On Test
  1. Block Connections
    • Connectors (lines) visually represent connections between blocks.

    • Each connector has one output port and can be linked to multiple input ports.

Configuring the Blocks

  • Drag and drop the Read Parameter block, which provides data to the Read Key State block.

  • The Read Key State block reads the key’s current state and sends its output to the Bool Compare block.

  • Drag and drop the Read Constant block, which provides the expected input to the Bool Compare block.

  • The Bool Compare block compares the outputs of Read Key State and Read Constant:
    • If both values match, it generates a True Message.

    • Otherwise, it returns a False Message.

Error Handling

If test agents are removed, a popup is canceled, or a timeout occurs, an error message must be assigned to the corresponding block.

Graphical Programming Key On Test