vtex plugin abtest
Host: app.io.vtex.com
Initialize a test or add workspaces to a running test:
/vtex.ab-tester/v0/{{account}}/master/\_v/private/abtesting/initialize
Body:
{
"InitializingWorkspaces": "Workspace1 Workspace2 Workspace3", // the workspaces that will be tested; no need to include master
"Proportion": 5000, // 100 times the percentage of traffic you want the master workspace to receive during the first hours of test
"Hours": 5, // the number of hours the test will run with the initially fixed proportion (after that, it starts to update the proportion accordingly to each workspace's performance
"Type": "conversion" // you can also select "revenue", in which case the ab-testing system will look at each workspace's revenue (and not conversion) when updating the traffic
}
Get the status of a test:
/vtex.ab-tester/v0/{{account}}/master/\_v/private/abtesting/status
Remove a specific workspace from a running test:
/vtex.ab-tester/v0/{{account}}/master/\_v/private/abtesting/finish/{{finishingWorkspace}}
To finish a test:
/vtex.ab-tester/v0/{{account}}/master/\_v/private/abtesting/finish
If you add or remove a workspace to/from a running test, the test is reinitialized, which means that the starting date is updated. (edited)
oclif-example workspace:abtest:finish
oclif-example workspace:abtest:start
oclif-example workspace:abtest:status
Stops all A/B tests from running on the current account.
USAGE
$ oclif-example workspace:abtest:finish
OPTIONS
-h, --help show CLI help
-v, --verbose Show debug level logs
--trace Ensure all requests to VTEX IO are traced
See code: build/commands/workspace/abtest/finish.ts
Starts a new A/B test on the current workspace.
USAGE
$ oclif-example workspace:abtest:start
OPTIONS
-h, --help show CLI help
-v, --verbose Show debug level logs
--trace Ensure all requests to VTEX IO are traced
See code: build/commands/workspace/abtest/start.ts
Displays the results of the active A/B tests.
USAGE
$ oclif-example workspace:abtest:status
OPTIONS
-h, --help show CLI help
-v, --verbose Show debug level logs
--trace Ensure all requests to VTEX IO are traced