Skip to content
CheckcraftDownload
Practical workflow

Automated testing in 1C: Vanessa Automation, YAxUnit and integration checks

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. Download, no sign-up →

1C is tested on three levels: unit tests of code, scenario tests of the UI, and integration checks from outside over HTTP. Each level has its own tools and they do not replace each other. Below is an overview of when each is needed and where to start if there are no tests yet.

Checkcraft ·

Get help with your first test →

Scenario tests: Vanessa Automation

Vanessa Automation is an open tool where a scenario is written in Gherkin: given, when, then. It opens forms, fills fields, clicks buttons and checks the result like a user. It suits regression of standard processes after updates, but such tests take longer to write and need more maintenance.

Unit tests: YAxUnit

YAxUnit is an open unit testing framework for 1C: tests are written in the 1C language in a separate extension and check common module functions without the UI. It is the fastest level, convenient for calculations, data transformations and JSON parsing.

API call diagram: method and URL, headers, body, status and response body, logs and database

Checking integrations from outside

HTTP services, OData and web services are easier to check the way the partner calls them: an external request with response field checks. Such checks do not depend on the configuration version, a tester without 1C knowledge can maintain them, and they catch silent exchange breakage after updates.

1C testing tools

LevelToolWhat it checks
Unit testsYAxUnitCommon module functions without the UI
Scenario testsVanessa AutomationUser actions in forms
Scenario tests1C:Scenario TestingRecorded form scenarios
Load1C:Test CenterThe database under many users
Integrationscurl, API clients, HTTP checksHTTP services, OData, web services from outside

1C:Scenario Testing and 1C:Test Center are part of the 1C:Corporate Toolkit. Vanessa Automation and YAxUnit are open and free.

Layers of an API call check: status, headers, body, calculations, logs, database

Where to start with no tests

  1. List the five processes whose failure costs most: usually key document posting and exchanges.
  2. For exchanges, add checks from outside: they are fastest to write and catch breakage after updates.
  3. Add unit tests for complex calculations.
  4. Add UI scenario tests last, only for the most important processes.

A Vanessa Automation scenario sample

Feature: Posting a customer order

Scenario: An order with two items posts
  Given I open a new "Customer order" document
  And I fill the counterparty "Ivan Petrov"
  And I add item "Monitor 24" quantity 2
  When I click "Post and close"
  Then the order list has an order for 31800

Steps are simplified here: real scenarios use the library's ready steps or recorded actions. Integration checks from outside are covered in API regression testing.

More on 1C

Section overview and all guides: 1C integration via API: options, architecture and examples.

Frequently asked questions

What automates 1C testing?

YAxUnit for unit tests, Vanessa Automation or 1C:Scenario Testing for UI scenarios, 1C:Test Center for load, HTTP checks for integrations.

What is Vanessa Automation?

An open 1C scenario testing tool: Gherkin scenarios run in forms like user actions.

Where to start?

Exchange and HTTP service checks from outside and unit tests for calculations; UI scenarios for the key processes only.

Next step

Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

Download FreeDownload and first run

No sign-up or email needed, the archive is ready in a couple of minutes. See the edition limits.

References

Vanessa Automation on GitHub · YAxUnit on GitHub

Start with the linked example and compare its result with your own test requirement.

Ask a person

Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

No account required. We will reply by email. This is a support request, not a newsletter subscription.