Git Product home page Git Product logo

autophone's Introduction

Autophone, a mobile-device manager for automated-test frameworks

** This project is no longer active and has been archived. **

Autophone controls one or more mobile devices via adb. Its primary goals are to:

  • execute arbitrary tests on devices
  • provide basic device status
  • between tests, verify that devices are still connected and responsive, and, if not, attempt to recover them

Autophone does not provide a test framework. Rather, it executes arbitrary Python code, which can also launch and control subprocesses to execute tests of any format and design.

The project page contains more background, goals, implementation notes, and other such information.

Source code is at https://github.com/mozilla/autophone/

See also phonedash for a basic results server.

See the files INSTALL.md and USAGE.md for more detailed information.

autophone's People

Contributors

ahal avatar ahal-test avatar bclary avatar creativcoder avatar davehunt avatar dminor avatar edmorley avatar fpischedda avatar gbrownmozilla avatar jgraham avatar jmaher avatar kmoir avatar mjzffr avatar ms2ger avatar parkouss avatar wlach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autophone's Issues

adb errors being ignored

As reported in the last issue, somehow the runbrowserprofile.sh script became inaccessible; however, autophone never noticed the error:

$ adb -s 0A3A8EB60D02201D shell sh /data/data/com.mozilla.SUTAgentAndroid/files/tests/autophone/runbrowserprofile.sh org.mozilla.fennec/.App /data/data/com.mozilla.SUTAgentAndroid/files/tests/autophone/profile file://mnt/sdcard/s1test/startup6.html
sh: Can't open /data/data/com.mozilla.SUTAgentAndroid/files/tests/autophone/runbrowserprofile.sh

AutoPhone should be checking the results of the adb command to verify that it worked. We probably need an ERROR or DISABLED state as well.

'stop' command

It would be nice to be able to terminate the tests on a particular phone.

pip install -r requirements.txt gives an error on logparser

Downloading/unpacking logparser (from -r requirements.txt (line 4))
Could not find any downloads that satisfy the requirement logparser (from -r requirements.txt (line 4))
Cleaning up...
No distributions at all found for logparser (from -r requirements.txt (line 4))
Storing debug log for failure in /Users/shawn.mccarthy/.pip/pip.log

bad testroot

Somehow this happened:

$ ls -l /data/data/com.mozilla.SUTAgentAndroid/files/
-rw------- app_113 app_113 102 2012-04-07 11:27 SUTAgent.ini
drwx------ app_113 app_113 2012-04-07 11:27 tests

Since the tests directory somehow became accessible only to the app_113 user, the shell command to launch runbrowserprofile.sh failed:

$ sh /data/data/com.mozilla.SUTAgentAndroid/files/tests/autophone/runbrowserprofile.sh org.mozilla.fennec/.App /data/data/com.mozilla.SUTAgentAndroid/files/tests/autophone/profile file://mnt/sdcard/s1test/startup6.html
sh: Can't open /data/data/com.mozilla.SUTAgentAndroid/files/tests/autophone/runbrowserprofile.sh

Unfortunately autophone didn't notice this error (see issue #2).

Wiki changes

FYI: The following changes were made to this repository's wiki:

  • defacing spam has been removed

  • the wiki has been disabled, as it was not used

These were made as the result of a recent automated defacement of publically writeable wikis.

Queue jobs to file

It would be super to be able to resume jobs if autophone is killed. I think it would be too tricky to figure out exactly where we are in a given test, so we should just redo the jobs for the current build when it's restarted.

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].

(Message COC001)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.