# Test Setup

Quick guide on getting your test setup ready to test the common verification scenarios as described in previous sections

**Pre-Requisites**

* We suggest you to keep handy at-least 2 android smartphones with active SIM connections. Ensure that both the smartphones have your test app installed (Integrated with Truecaller SDK)
* 2 different smartphones are required so that in case you get verified on one of the smartphones, you can use the second smartphone to check for the fresh verification scenarios.

**Steps to follow for testing user scenarios :**

| **User State**           | **App Scenario**                                                                                                                                                                                                     | **Steps**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Existing Truecaller user |                                                                                                                                                                                                                      | <ul><li>Install Truecaller on smartphone 'A'</li><li>Complete profile creation step on Truecaller app</li><li>Launch your application and initiate the Truecaller verification flow</li><li>Truecaller profile consent screen should appear</li><li>Tapping on Continue button should verify the user</li></ul>                                                                                                                                                                                                                     |
| Non Truecaller User      | User *getting verified for the first time* on smartphone                                                                                                                                                             | <ul><li>Take smartphone 'A'</li><li>Uninstall Truecaller app from the smartphone</li><li>Launch your application and initiate the verification flow</li><li>User is asked for phone number in your application</li><li>On entering the phone number, call logs & phone permissions are asked ( if not already granted )</li><li>Allow the permissions to enable receiving a drop call</li><li>User is manually asked to enter name ( if it's a new user on your app )</li><li>On entering the name, SDK verifies the user</li></ul> |
| Non Truecaller User      | <p>User <em>already verified</em> on the smartphone and tried to re-verify</p><p><em>( Please ensure that you try this step only after you have performed the above step )</em></p>                                  | <ul><li>Take smartphone 'A'</li><li>Launch your application and logout from the app</li><li>Initiate the verification flow</li><li>User is asked for phone number in your application</li><li>On entering the phone number, call logs and phone permissions are asked ( if not already granted )</li><li>User should get verified directly without any drop call being initiated and received on the smartphone</li></ul>                                                                                                           |
| Non Truecaller User      | <p>User <em>already verified</em> on the smartphone, uninstalls and re-installs the application on the device</p><p><em>( Please ensure that you try this step only after you have performed the 2nd step )</em></p> | <ul><li>Take smartphone 'A'</li><li>Uninstall your application from the smartphone</li><li>Launch your application and initiate the verification flow</li><li>User is asked for phone number in your application</li><li>On entering the phone number, call logs and phone permissions are asked ( if not already granted )</li><li>User should get verified directly without any drop call being initiated and received on the smartphone</li></ul>                                                                                |

{% hint style="info" %}
*Wi-Fi or mobile internet should also be enabled on both the smartphones*
{% endhint %}


---

# 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.truecaller.com/truecaller-sdk/android/oauth-sdk-3.0.0/getting-release-ready/testing-your-verification-flow/test-setup.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.
