Show TOC

Agentry Test Script OverviewLocate this document in the navigation structure

The Agentry test script is an XML schema, supported by the standalone Agentry test environment, that you can use to automate testing the client behavior of a mobile application built on Agentry. The Agentry test environment includes a script recorder that lets you record, then play back, test scripts.

Note Agentry test scripts are not supported by the Agentry test environment that is integrated with Agentry Editor.

Via the test script language, you can interact with all controls that are present on the client application’s interface, including field selection, data entry, button clicks, and navigation. You can check the current and expected values of labels, fields, and other items that appear on the client application’s interface.

You can also use the test scripts to query database systems for expected values. For example, you might want to use this after a transmit to verify the proper functioning of transactions related to back-end processing.

Elements within the test script XML schema are logically grouped into the following categories: script, button, field, list, tree, scanner, SQL, tab, window, client, and client host elements.

Common Test Script Element Attributes

The following attributes are common to the bulk of the elements within the Agentry test script XML schema. They relate primarily to timeouts for the execution of a given element, and the amount of time to pause between the execution of one element and the next. Setting these attributes in the <script> element of the test script sets defaults for the entire script execution that can then be overridden by individual child elements as needed.

Name Description Data Type Default Value Required
timeout The amount of time, in milliseconds, to wait for the element to finish processing before returning an error. You can set this value in the <script> element for the entire script, and at each processing element within the test script. Child elements with this attribute override the value set in parent elements. Positive Integer N/A No
sleep The amount of time, in milliseconds, to pause after the element is executed. You can set this value in the <script> element for the entire test script, and at each processing element within the test script. Child elements with this attribute override the value set in parent elements. Positive Integer N/A No