Example: Example to use Python to export Split names and Treatments to YAML files. The YAML files can be used with test automation to test all possible treatments from each Split.
The tool accept a list of Split names, will fetch the first treatment of each split and create a yaml file named "splits_treatment1.yaml".
Then for each subsequent treatments, a yaml file will be created for each treatment, for example:
For example, splits_treatment1.yaml:
Script will use the REST Admin API to fetch Split treatments.
- Python 2.7.15
- requests 2.18.1
How to use:
- Class wrapper for Admin API is:
- Update the following variables in Main.py:
sourceSplitName, sourceWorkspaceName, sourceEnvironmentName
Admin API Key