This chapter covers the core features and capabilities of A/B Testing Framework.
# Generate a report from an experiment config with data
python src/ab_testing_framework.py --config examples/experiment.json --report
# Assign a visitor to a variant
python src/ab_testing_framework.py --config examples/experiment.json --assign visitor_001
# Calculate required sample size
python src/ab_testing_framework.py --config examples/experiment.json --sample-size 0.05 0.20
# Load events from CSV and analyze
python src/ab_testing_framework.py --config examples/experiment.json --events events.csv --report
# JSON output for programmatic use
python src/ab_testing_framework.py --config examples/experiment.json --report --format jsonFollow this guide to get A/B Testing Framework up and running in your environment.
| Flag | Description |
|---|---|
--config, -c | Path to experiment JSON config (required) |
--events, -e | Path to events CSV file |
--assign VISITOR_ID | Assign a visitor and print the variant |
--convert VISITOR_ID | Record a conversion event |
--report | Generate experiment report |
--sample-size RATE EFFECT | Calculate required sample size |
--format, -f | Output format: text or json |
--verbose, -v | Enable verbose logging |
See examples/experiment.json for a complete example.
Get the full A/B Testing Framework and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.