Agi-container

AGI Container is a key component of the ActionTestScript (ATS) ecosystem, designed for massively parallel, cross-platform execution of automated tests.

What is AGI Container?

It is a lightweight container runtime, specifically optimized for running ATS scripts. Unlike traditional solutions, which often rely on Docker Desktop (which can be resource-intensive or require a paid license in enterprise settings), agi-container is based on:

  • containerd : The industry-standard container engine.
  • nerdctl : A command line interface for containerd.

Usually, when you create a test in Agilitest, you open a channel that launches a browser in your own Windows session.

With AGI Container, the editor shifts to a new paradigm: Instead of searching for a chrome.exe executable on your hard drive, the editor asks nerdctl to mount a Docker/Containerd image. Communication no longer occurs directly, but via a network stream to the container.

Principal functionalities:

  • Maximum Parallel Execution: This feature allows you to execute entire test suites simultaneously, thereby drastically reducing the total validation time (the “Time to Feedback”).
  • Linux & Windows hybrid: That is one of its greatest strengths. It can simultaneously control:
    • Linux containers (via WSL2 on Windows or natively on Linux) for testing browsers like Chrome or Firefox in “headless” mode.
    • Windows containers (using Hyper-V isolation) for applications that require a specific Windows environment.
  • Docker Desktop is standalone: It operates independently, making it easy to integrate into enterprise CI/CD pipelines.

How to activate agi-container?

In the editor sidebar, select “Agilitest Containers

This opens the Agilitest containers execution menu.

Click on the “settings” button at the bottom right to install “agi-container”.

Then, click on “Install”.

You can choose between automatic and manual installation:

Click “Execute in PowerShell” or copy the command line depending on whether you’re using Windows or Linux, then paste it into a terminal.

Once Agi-container is installed, you can select your tests to execute them directly from the container.

From the editor's execution management menu, select the “Execute in Container” tab.

Select the Playlists (TestNG suites) that you want to execute, then click on “Execute”

Select on which container you want to execute your Playlists.

The editor uses predefined images (often hosted by Agilitest or your company) that already contain everything needed: the ATS engine, the browser, and the drivers (Selenium/Playwright).

Why use it?

Agi Container acts as the “conductor” that helps you transition from a test running on your desktop to a test running in an isolated environment, ready for the cloud or CI/CD.

Using Agi Container addresses three critical needs:

  1. Speed: Reduce testing time from several hours to just a few minutes through parallel processing.
  2. Isolation: Each test runs in its own environment, preventing cross-contamination between browser sessions. 
  3. Portability: You can execute the same containers on your development machine, on a build server, or in the cloud.

Scripts parallelization

Unlike traditional sequential execution, agi-container allows you to execute multiple instances of your tests simultaneously. The approach involves dividing your test campaign into several isolated containers.

The key feature is the ability to use a project environment variable as a pivot for parallelization.

The tool will automatically instantiate a container based on the specified value.

In Agilitest, open the command lines interface with a right click on a script

There, you have specific options to configure your execution: 

  • Click on the Agilitest (agi-container) window
  • Activate the “Parallel execution” option: This will activate the execution of a suite of  tests per container..
  • Enter the “Tag

In short, Agi-Container is the scaling tool for the ATS framework, transforming a single script into a powerful tool capable of validating complex applications across multiple environments in record time.

On this page

// TOC MANAGEMENT