# SmartFloors Integration Test UI

## Purpose of this Guide

This page provides a step-by-step guide for using the **SDK Integration Test** tool to validate your integration with the Metica mobile SDK for SmartFloor before submitting your build for verification.

***

## Overview

The SDK Integration Test tool helps you test your client integration with the Metica SDK for SmartFloor. You must test both normal and holdout behaviors by selecting the appropriate test user ID for each scenario. Instructions and expected results may differ depending on which test user ID you select.

**Available test user IDs:**

* `metica-force-test` — for normal behavior
* `metica-force-holdout` — for holdout behavior

You should perform the test twice:

1. First, select `metica-force-test` and complete the test for normal behavior.
2. Then, restart the test, select `metica-force-holdout`, and complete the test for holdout behavior.

Be sure to restart the test each time you change the test user ID.

***

## Steps to Use the SDK Integration Test Tool

1. **Log in to the Metica Platform**
   * Go to <https://platform.metica.com>
2. **Select the Correct Game**
   * Ensure you are in the game you want to test (use the game selector at the top left).
3. **Navigate to the Integration Test Page**

   In the left navigation, select **SmartFloor → Integration Test**.

   <figure><img src="/files/IJh5WyllhpoFhAvZDE92" alt="Integration Test navigation"><figcaption></figcaption></figure>
4. **Start the Test**
   1. Select one of the test user IDs (`metica-force-test` for normal behavior, or `metica-force-holdout` for holdout behavior).

      <figure><img src="/files/9y8ymo9iqWAIPChU4xnN" alt="Select test user"><figcaption></figcaption></figure>
   2. Follow the on-screen instructions to set the test user ID in your game. The instructions may change depending on which test user ID you select.

      <figure><img src="/files/FsO2wdngzNh7ave8NcVj" alt="Debugging/set user ID instruction"><figcaption></figcaption></figure>
   3. Click **Start**.

      <figure><img src="/files/gy9yK4RSPUOkp4VzmTr9" alt="Start button"><figcaption></figcaption></figure>
   4. Completely close (if already open) the game you want to test, then reopen it.
   5. Play the game toward the ad showing path (e.g., finish a level, trigger an ad button).
   6. The testing page will display events sent by your game. **Key events:** - SDK Initialization - Ad Load - Ad Shows

      <figure><img src="/files/gGulnEg5iKS8Sh0QN9Jw" alt="Events list"><figcaption></figcaption></figure>
   7. Click on any event card to view detailed information sent by your game.

      <figure><img src="/files/0jaiTOgDoyIucncuQk69" alt="Event detail"><figcaption></figcaption></figure>

> **Important:** If you change the test user ID, you must restart the test from this step to ensure accurate results for each behavior.

***

## Troubleshooting

If you see an error in any event, fix the issue in your integration and restart the test from step 4.

Example screenshot of a failing event:

<figure><img src="/files/3ywJch5gZljefA5EAnJO" alt="Failing event"><figcaption></figcaption></figure>

***

## Support

If you have questions or need help, contact your Metica point of contact or refer to the official documentation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.metica.com/uiguide/sdk-integration-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
