Git Product home page Git Product logo

mtbf-driver's Introduction

MTBF-Driver

For latest document, please refer to MDN https://developer.mozilla.org/en-US/Firefox_OS/Platform/Automated_testing/MTBF_tests

MTBF (Mean time between failures) is defined generally for mobile device stability testing (http://en.wikipedia.org/wiki/Mean_time_between_failures)

MTBF Driver is for performing long-term testing (over 100 hours) on Firefox OS devices automatically. It uses marionette as test runner and gaia ui test as base library, emulate user's behavior randomly while no crash and hang is permitted.

Environment

OSX or Linux-like operating system

Installation

After cloning repository, please execute setup.py and install all dependancies. Python virtual environment is recommended.

Execution

You can find command sample in shell/mtbf.sh MTBF_TIME=10h MTBF_CONF=conf/local.json mtbf --address=localhost:2828 --testvars=testvars.json tests/test_dummy_case.py

Parameters

System variable:

MTBF_TIME=100h
Specify duration of test, for example, 10h = 10 hours,
500S = 500 seconds, 120m = 120 minutes. mixing is ok.
-- 

MTBF_CONF
Give a file path with general runnning parameters.
You can find a couple of examples in conf folder.

Options in config file

{
  "memory_report": false,
  "logcat": true,
  "overall_status": true,
  "b2g_status": true,
  "get_event": true,
  "rootdir": "tests/mtbf",
  "workspace": "/tmp/workspace",
  "manifest_prefix": "mtbf",
  "archive": "output",
  "runlist": "runlist/all.list",
  "level": 4
}
  • memory report: Enable get_about_memory script during test run
  • logcat: Trigger logcat periodically
  • overall_status: Get android system info
  • b2g_status: Get b2g specific system info
  • get_event:
  • rootdir: Indicate search path of test case bank
  • workspace: A temporary directory to store running artifacts
  • manifest_prefix: Not used in production
  • archive: Not used in production
  • runlist: Specify test cases to be randomly executed
  • level: Robust magnitude, every round test runner will insert a dummy test case. level equals to number of active test cases inserted.

For example, 3 means in each round, 2 real test cases and 1 dummy test case scheduled. Level 0 means no test cases executed but dummy.
Level 5 is to disable dummy and run test in best effort.

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.