---
description: >-
  This document outlines the process of creating an automated test to verify
  that a data point on a mobile application screen updates over time.
---

# Add Variable Assertion

**Test Case Walkthrough**

This is a common test case for applications that display live information, such as stock tickers, timers, or status indicators.

**Step 1: Capture the Initial Value -** Extract the dynamic data from the screen and save it for later comparison to a variable say `before_value`

**Step 2: Add a 3s Wait Period**

**Step 3: Capture the Updated Value -** Captures the new value to a new variable `after_value`

**Step 4: Assert the Change -** Compare the two captured values to confirm they are different, which validates that the data updated correctly.



{% embed url="https://youtu.be/sDUAtqUx8WA" %}
