This repository contains a Docker container designed as sandboxes for Remote WebDriver clients written in Python.
Docker installation instructions depend on your system, see docs.docker.com.
Mac users may want to use Kitematic, which is the simplest way to install and setup Boot2Docker. Boot2Docker uses VirtualBox to host a Linux VM for your docker containers (which itself will be used to host your running containers).
Since Kitematic is wrapping up Boot2Docker, you will need to add the following lines to your .profile
in order to use the docker
command line tools:
# Boot2Docker configuration
eval "$(docker-machine env dev)"
git submodule update --init
docker build -t appdynamics/rwd-python .
Setup your environment as defined in client/README.md
, then use the
run.sh
wrapper script to execute the client within Docker:
./run python singleurl.py --server-url http://user:[email protected]:port -b chrome --browser chrome --test-url http://appdynamics.com
It is sometimes necessary to log-in to the container in order to see what's going on and debug the image. Use the following command to start a container in interactive mode:
docker run -i -t appdynamics/rwd-python /bin/bash
Install the python requirements:
pip install --no-cache-dir -r requirements-aws.txt
Setup the AWS by downloading the Amazon AWS Command Line Interface tools and configuring it as explained here.
You'll need an AWS account. Currently, the AWS runner script assumes that you have an ECS cluster named 'sum-dev' and an ECS task named 'rwd-python'. TODO: describe the configuration of the AWS task and add parameters to specify different cluster and task names
python singleurl_ecs.py --server-url http://user:[email protected]:port -b chrome --browser chrome --test-url http://appdynamics.com
Copyright (c) AppDynamics, Inc, and its affiliates
2015
All rights reserved.