AI Verify Complex Scenarios

Easily Verify Dynamic Data with ContextQA: A Step-by-Step Guide

Sometimes, your application generates new values every time you run a test—like random IDs or reference numbers. Traditional automation struggles with these dynamic scenarios. ContextQA makes it simple and reliable.

Follow this walkthrough to see how you can build and enhance automation that verifies dynamic content without hard coding.


Launch your application and create an account or add a contact. Notice the system generates a unique id or random reference number each time.

Image
Image

Observe that on repeated runs, the values change. For example, you’ll see a different ID or reference number after each new account or contact creation.

Image
Image

Open ContextQA and navigate to your test cases. ContextQA lets you build test cases using the AI system, by uploading test flows, or through record and playback.

Image

For this scenario, start with your prepared test case (or record a new one) that reaches the point where the dynamic value appears.

Enhance your test by adding a verification step for dynamic IDs. Use the application feature, such as a random string generator, to produce a new value.

Image
Image

Rather than hard coding the generated value, add a verification step. In ContextQA, hover over the step showing the dynamic data, select Add step, then choose AI Verification.

Image
Image

Write a simple, plain English query for the verification—for example: "verify that a random ID has been generated successfully."

Image
Image

Click Create to add your new AI verification step, confirming your changes as prompted.

Image
Image

Add similar verification steps after every relevant dynamic data step in your test if needed.

Run your enhanced test. As the application produces a new ID each time, ContextQA checks that the new, dynamic value appears as expected. The live execution shows the ID is successfully detected and verified.

Image

Review results. ContextQA reports successful generation and verification of dynamic IDs or values. Your tests avoid brittle checks and stay robust even as underlying data changes.

Image

Using ContextQA and AI-powered verification, confidently automate scenarios where dynamic data appears. No more static checks or manual locators—ContextQA adapts each time, saving time and keeping your flows stable.

Supporting Videoarrow-up-right

Last updated