Automated testing

Automated testing is a process that imitates user actions and checks the action results.

The imitation of user actions is performed using a set of 1C:Enterprise script objects that provide access to the client application logical model and to form items.

Automated testing includes interaction between two client applications: the test manager that runs the test algorithm and the test client that reproduces interactive user actions.

You can run the test manager in a thick client or thin client mode.You can run a test client in any mode: thin client, thick client, or web client.

The 1C:Enterprise script includes a set of objects intended for imitating user actions: navigation through applied solutions, running interactive commands, entering data in form fields, reading displayed data, and so on.

The following is a simple test that creates an item and records it to the database.

You can monitor the automated testing results visually or by comparing them with expected results using 1C:Enterprise script tools.

Since writing long and complex tests is time-consuming, the option to record interactive user actions to an XML file is available.

To record user actions, you have to run a client application in a special mode that supports writing the log of user actions using the commands available in the applied solution header.

You can use the resulting XML file for user action analysis or as a basis for an automated test.

See also:

Add comment