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 programming language objects that provide access to the client application logical model and to form items.

Automated testing includes the 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 programming language 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 programming language 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.

Next page: Comparing and merging configurations

See also:
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.