See a!testRunStatusForId(), a!startRuleTestsAll(), a!startRuleTestsApplications() for additional information on other testing functions. See Parsing Batch Test Results for Expression Rules for details on parsing a TestRunResult
data type.
Test results will be grouped by application. Expression rules that are not part of any application, will be grouped in a separate ApplicationTestResult structure with the name Other Objects.
Changes made to expression rules after a test run has started will not be reflected on the test results for that test run.
Test results will not reflect changes that were made to expression rules after the test run has started.
Test case execution times out after one minute. As a result, an error status will be set for that particular test case in the test results and other test cases can continue to be executed. The execution of an application or system test doesn't time out.
Test runs can only be queried by the same user who initiated the test, or by a user of type System Administrator.
Results from a test run expire after 7 days. After 7 days, an error will be returned indicating that the test run has been deleted. If you'd like to persist this data for a longer period of time, you will need to write this data into a table in your business data source.
a!testRunResultForId( testRunId )
Provided a test-run ID, this function returns a TestRunResult data type containing the results of a rule test run. If the status of the test is IN PROGRESS, TestRunResult will contain only results for completed tests; if the status is COMPLETE, TestRunResult contains all test results.
Keyword | Type | Description |
---|---|---|
|
Integer |
The test-run ID returned when executing a test on a system or applications. |
a!testRunStatusForId(25)
Where 25 is a valid test-run ID.
See the Common Uses section of Expression Rule Testing Functions page for more examples.
Feature | Compatibility | Note |
---|---|---|
Portals | Partially compatible | Can be used with Appian Portals if it is connected using an integration and web API. |
Offline Mobile | Incompatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Incompatible | Cannot be used to configure a process report. |
Process Events | Incompatible | Cannot be used to configure a process event node, such as a start event or timer event. |
a!testRunResultForId() Function