Quickstart
Mobile phone setup
Ensure that the following settings are set on the phone:
Settings > Display > Sleep after 30 minutes
Settings > Security > Screenlock > None
Connect phone to the computer. Note down the "Device ID" after executing the following command. If authorization is necessary on the phone, do authorize the computer to access the phone.
adb devices
You have to kill the ADB server on the host machine. Execute the following command in the shell.
adb kill-server
- Download config.yml sent in the email sent to you. Copy the "Device ID" into config.yml and save it.
Docker setup
- Start the docker daemon with the following command
sudo dockerd
Pull docker with the following command. (Optional, if machine already has docker image)
sudo docker pull moquality/atest:0.331
You will need to have a docker account to be able to pull this image. You can use username:
archermind
with password:archertest
.Run the following command to start the docker image:
sudo docker run -i -t --privileged -v /dev/bus/usb:/dev/bus/usb -v /home/archermind/.android:/root/.android moquality/atest:0.331
Run the following command in host computer's terminal to obtain docker container id (alphanumeric)
sudo docker ps
In the host computer's terminal, copy the container id and execute the following command by replacing XXXX with the container id
sudo docker cp config.yml xxxx:app/config.yml
Running the program
Inside the docker terminal execute the following command to run the automated test suite.
cd /app
python run.py
The test suite should show you status messages for each test as they run.
Viewing results on Testlink
All the results are uploaded to Testlink hosted at http://139.196.121.67/testlink/login.php.
username: admin
password: archertest
You can see a matrix of current status of all test cases at:
- Test Report > Test Reports and Metrics >Test Result Matrix
Creating a new Build
To create new build, open testlink and navigate to "Test Plan > Builds / Releases".
Put this build name in the config.yml file under field "build" and run the previous steps again.
More Information
FAQ
Testsuite fails to run or doesn't show status messages.
The configuration file might be incorrectly specified. Follow Configuration Setup.
Testsuite fails because it cannot connect to an API server.
Testsuite needs to be authenticated with the correct API key to run. Before running each test, the test suite authenticates with our server. Ping our API server to see if it is online with ping 139.196.121.67
If you can ping our server and the test suite fails, contact MoQuality.
Cannot find the test results on Testlink.
You are possibly seeing the results under the incorrect project name or build. Check to see if the project name and build are same as config.yml.