Clear app data - operation¶
Clear app data attempts to delete local data of the app during the test run so that application is reset to its initial state before the next test step executes.
To perform this operation in the Suitest Test editor use the Clear app data line:
The application may store some data locally to remember a particular user preference or setting. Sometimes it is practical to empty the stores in order to test a particular piece of functionality.
For example if a user checks "Don't show this dialog again" on a certain popup the application may choose to store users choice in a local data store. Resetting the store will cause the popup to appear again.
What data is deleted¶
|HbbTV / Freeview Play||Cookies and local storage|
|HTML-based||Cookies and local storage|
|Xbox One (Native)||Application data (local, roaming and temporary data stores)|
|Xbox One (HTML)||Application data (local, roaming and temporary data stores), cookies and local storage|
Automatic local data clearing¶
Application's local data can be cleared in several cases:
- For packaged applications, local data is cleared every time the application is re-installed on the device.
- For hosted HTML-based (i.e. URL-based) application that use Suitestify, local data is updated whenever Suitestify session is started. In automated mode this means on the start of every test. In interactive mode this means every time you connect to a device. Whenever Suitestify session is started, a new domain is generated for the application, thus all domain-dependent data (cookies, local storage etc.) would be cleared.