DEV Community

Cover image for Test your application by using real traffic from production
Jing for AREX Test

Posted on • Updated on

Test your application by using real traffic from production

Regression testing is a type of software testing that investigates the validity of previously-tested software. It ensures the software still functions as expected after it has been modified and integrated with other software, tools, and interfaces.

AREX is an open-source automated regression testing platform, which allows one to record production traffic and replay it to testing environment. By comparing the recorded responses against replay, it can clarify the impact of code changes to realize efficient automated regression testing:

  • Save 99% man-cost on regression: Our innovative record and replay approach eliminates the effort to write or maintain an automation suite. Testing without writing tests.
  • 0 database contamination: Mock external sub-calls in the requests to isolate the third-database called during replay, without causing any dirty data to the database or cache of the system.
  • High-speed regression testing across environments: Automatically reproduces the production environment by mocking all the external dependencies. With just a single click to start, and the use of multi-threading and random execution, it achieves high-speed replay.

For QA engineers, they don't need to write or maintain regression suite by using AREX to record online traffic as test cases. For developers, it enables them to get quick feedback to debug failures.

What is Developer Testing (DevTest)

Developer testing is the act of regression testing source code by developers after the development of new features - instead of relying entirely on a team of QA experts to carry out testing.
Here are some significant benefits with regard to developer testing:

  1. Higher code quality because new code is tested early and often.
  2. Shortened time to market for new features.
  3. The cost of change rises exponentially the longer it takes to find and then remove a defect.

How to do DevTest with AREX

Developers can use the standalone mode of AREX for quick self-testing of code changes before the test is submitted.

AREX Standalone mode refers to the independent operation of AREX in a local environment without the need to build storage services or other service components.

Install AREX on a Mac

Install AREX Standalone:

AREX_AGENT_MAJOR_VERSION=1.0.1 bash -c "$(curl"
Enter fullscreen mode Exit fullscreen mode

As follows, the latest version of the executable file has been successfully downloaded and installed.


Install on Windows

  1. Download the from "Assets" on the release page and unzip it.
  2. Run the arex-cli.bat script under arex-standalone-all folder.


  1. Before developing new features, start the stable version of the application, and run ./ to attach to the application which you want to test.
  2. For the first time to use, you need manually perform some actions to the application, so that AREX can record these requests as test cases.


Run ls -o 3 to view the recorded requests of /biz/getOrderInfo interface:

recorded interfaces

All requests are listed in the browser.

recorded cases

Click Detail to view the details:

recorded details


When a new feature or change is expected to be tested, start the latest version of the application with new feature or changes, and run ./ to attach Agent to the application.

Replay the recorded cases in the testing environment. After replay, AREX will compare the recorded responses against replay.


Run watch to check the differences between the two requests.


This help devs to identifies issues early, which allows them quickly test changes or new feature.

Top comments (0)