Runs Dance Party against real iOS and Android devices using AWS Device Farm.
Based on this setup guide so check there if you get lost.
- 
Install Python 2
 - 
Install
pipFor Ubuntu use the
python-pippackage:sudo apt install python-pip
 - 
Install python virtualenv
pip install virtualenv
 
- 
Clone this repo
git clone https://github.com/code-dot-org/dance-stress-test.git cd dance-stress-test - 
Create a virtualenv workspace
virtualenv . - 
Active your workspace in your current terminal
You'll need to do this each time you open a new interactive terminal session for this project.
source bin/activate - 
Install additional project dependencies into your workspace
pip install -r project_requirements.txt
 - 
Verify you can load and list tests
py.test --collect-only tests
 
- 
Run the
buildzipscript to generate a package for upload to Device Farm./buildzip # Expect output to end with: # 2.0M test_bundle.zip
 - 
Use AWS Device Farm to run the tests.
Sign into AWS Console
click here to open our AWS Device Farm project.
Click "Create a new run"
At "Choose your application" pick "Test a web application." The run name is just a label.
At "Configure" pick "Appium Python" and upload the test_bundle.zip you just generated. After the zip file is processed more settings will pop up - use "Run your test in a custom environment" and the default YAML spec.
At "Select devices" use whatever device pool you like - I've been using iPhone 5s and Samsung Galaxy S4.
At "Review and start run" use a 30 minute timeout.
 
Due to how many tests there are, it might be easiest to run a subset of tests on each Device Farm run.
Not solved yet! This is more difficult than it looks