Testing flag targeting
Overview
This topic explains how to use the test run feature to find out which variation a particular context will receive for a given feature flag. Testing flag targeting helps ensure that contexts receive the flag variations you expect after you make targeting changes.
Test flag targeting
To test a flag’s targeting:
-
From the Flags list, open the flag you want to preview.
-
Make any needed changes to the flag rules.
- If the flag is off and the rules are hidden, click View targeting rules.
-
Click the fingerprint test run icon. The “Test run a context” section appears.
-
Search for and select the context you want to preview, or edit the JSON object to supply the context kind and key.
The "Test run a context" section, populated with an example context.
The “Based on current targeting” section populates with the variation that the context is currently receiving. If you have unsaved targeting changes, the “Based on unsaved changes” section populates with the variation that the context will receive after you save your changes.
Click Clear context to clear the JSON object and start a new search.