Add Variable Assertion
This document outlines the process of creating an automated test to verify that a data point on a mobile application screen updates over time.
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.
Last updated