It would be nice to be able to programmatically access the QA URLs for a current running AB test. We run a small subset of front end tests in our CI pipeline and we need the tests to be deterministic. The way we do that now is manually retrieve the QA URL from the adobe target GUI. We'd like to have the test determine the experience without having to retrieve the QA URL manually.
I have two suggestions:
First: Add it to the existing `Get AB Activity by ID`
Second: Create a new API to `Get AB Activity QA URLs by ID`
Suggested response:
"experiences": [
{
"experienceLocalId": 0,
"name": "Experience A",
"visitorPercentage": 34,
"qaUrl": "at_preview_token=g5xKOs9QjAl3KN%2BwvyAAmnWEFq%2Br1NJA9GWwjZnLpb4%3D&at_preview_index=1_1&at_preview_listed_activities_only=true&at_preview_evaluate_as_true_audience_ids=1100025",
"offerLocations": [
{
"locationLocalId": 0,
"offerId": 395818
}
]
},
{
"experienceLocalId": 1,
"name": "Experience B",
"visitorPercentage": 33,
"qaUrl": "at_preview_token=g5xKOs9QjAl3KN%2BwvyAAmnWEFq%2Br1NJA9GWwjZnLpb4%3D&at_preview_index=1_2&at_preview_listed_activities_only=true&at_preview_evaluate_as_true_audience_ids=1100025",
"offerLocations": [
{
"locationLocalId": 0,
"offerId": 395819
}
]
}
]
If the qaUrl property is too verbose it can be broken up into its separate properties:
at_preview_token,
at_preview_index,
at_preview_listed_activities_only,
at_preview_evaluate_as_true_audience_ids