Back to the news
Gravity News Gravity Gravity

Product update Q1 – Gravity

27.04.23

Hey all ????, it’s time for a product update! Let’s review what happened in Gravity these last three months.

Our focus

The first service we want to provide with Gravity is to help teams build and continuously improve their end-to-end test suites (aka “the top of the test pyramid”). We stated it as the following objective:

“Enable Agile/DevOps teams to build and improve their E2E test suite, so it covers their application’s actual usage”

Concretely, it means:

  • Detect and highlight critical paths for your users, so you can cover them with regression tests
  • Improve your current test suite to be closest to your users’ habits and avoid regressions in the gaps existing between what you are testing and what your users are doing “in real life”
  • Audit your e2e test suite to detect which ones could be removed, merged, or refactored to gain precious execution time, shorten your feedback loop, and save money (and software engineers’ happiness)

During this first quarter, we built and released a few capabilities to help you solve these problems.

So far, collected test sessions were displayed as a “flat” list. Multiple test sessions could be recorded from different runs of the same single test, which made our usage “test coverage metrics” inaccurate. To help continuously evolve end-to-end test suites, we need to be able to know their state at a specific point in time.

Since version `3.4.0` of gravity-data-collector, you can track a `build` number to identify a run (e.g. a CI run) in Gravity (see Track test execution).

Then you can get usage metrics based on a build number (defaulted on the last collected build)

New usage auto-discovery

Since the beginning, we don’t want you to rely on heavy code instrumentation to track users’ interactions with the tested application, like in product analytics or web analytics tools. We want Gravity to be as light as possible to set up and get started with.

That’s why in the new update we added a “new usage auto-discovery” feature. We developed some AI capabilities that can crawl the technical data collected by our agent, find patterns in these data, and suggest a human-readable name to make sense of the patterns.

New usage auto-discovery - Product update

This feature was designed to:

  • Help you discover users’ behavior you were not aware of
  • Quickly monitor these behaviors and evaluate their test coverage

Discover business flows

While Gravity’susages” can already help improve test coverage against application usage, they are not enough. We designed them to map and compare small sequences of user interactions on a page (e.g., “create account”, “fill address form”…).

However, neither an end-to-end test nor a user journey in an application is only about isolated business actions. They all come in the bigger picture of a user realizing a task.

We introduced “Flows” in Gravity. We define flows as a sequence of business actions a user can take in an application (e.g., “the user added a product to their cart, then filled their billing address, then proceeded payment…”).

With this new update, you can:

  • Discover new untested user journeys
  • Track whether a flow is important for your users or not
  • Bootstrap a Cypress test covering a flow

Discover business flows - product update Gravity Q1

What’s next?

These few features allow you to quickly create a set of end-to-end tests from your application usage. But in reality, you may already have an existing test suite that you want to improve.

In the coming months, we will work on smoothening Gravity integration with your automated tests.

We want Gravity to leverage your test data to evaluate its coverage against actual usage and give you recommendations to improve it in the most straightforward way possible.

What's next ? Futures updates - Gravity

Discover the other features of Gravity, by visiting our features page: https://www.smartesting.com/en/gravity/features/

Thanks for reading! Stay tuned!

Stay tuned!

Smoke Tests

Smoke Tests: What is-it?

Testing Gravity

Définition Smoke tests are, according to ISTQB definition:  A test suite that covers the main functionality of a component or…

Product Update - March 2024

Product Update – March 2024

Gravity News Gravity Gravity

Hello! 🌸 Spring has arrived with its share of good news: including our Product Update!! The features we’ve been talking…

Coverage requirements

Combining Usage and Requirement Coverage for Higher Quality

Gravity Testing Gravity

Requirement Coverage in a Nutshell Requirement coverage is a crucial metric in software testing that gauges the thoroughness of the…