> ## Documentation Index
> Fetch the complete documentation index at: https://confidence-auth-testing.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolver Test

> Test flag rule evaluation by providing an evaluation context and inspecting which rules match and why.

**Test Flag Resolution**

Learn how to test flag resolution using the resolver test.

Test and build intuition for the resolving of rules on a flag by providing an
evaluation context and resolving it against a client.

## Test Flag Resolution

**1. Navigate to the flag you want to test**

Go to **Flags** and select the flag you want to test resolving.

**2. Open the resolver test**

Click the test button (beaker icon) in the **Rules** section of the flag detail page. This opens the Resolver test page.

**3. Select a client**

Choose the client you want to test resolution for from the **Clients** dropdown.

**4. Select credentials**

Choose the credentials to use for authentication from the **Credentials** dropdown.

**5. Filter by flag (optional)**

The **Filter by flag** checkbox is enabled by default when you open the resolver test from a specific flag. Disable it to test resolution across all flags.

**6. Add evaluation context**

Click **Add evaluation context** to add context fields. Toggle between key-value editing and JSON input using the buttons above. For example, add `user_id` with your user ID or `country` with value `Sweden`.

**7. Resolve the flag**

Click **Resolve** to test the resolution.

The resolver test returns a detailed response explaining which rules match and which don't, together with the reasons why.

> [!TIP]
>
> Use **Fill using SDK data** to automatically populate the evaluation context with data from a recent SDK request.

## Common Reasons Rules Fail

The most common reasons for a rule not returning a variant are:

* The rule is not enabled
* The evaluation context lacks a field used in the inclusion criteria of the rule
* The evaluation context has a value on a field that doesn't match the criterion on that field in the rule
* The rule is not considered because it has a lower priority than another rule that matches the evaluation context
* The entity value provided in the evaluation context used for random sampling of units might be outside of the sample for the rule due to chance

## Related Resources

> **[Rules Reference](/docs/capabilities/flags/define-rules.md)**
>
> Understand rule types and evaluation

> **[Context Schema](/docs/capabilities/flags/context-schema.md)**
>
> Configure evaluation context attributes
