Git Product home page Git Product logo

appium-instruments's Introduction

appium-instruments

Build Status Coverage Status

Wrapper module around iOS Instruments and instruments-without-delay.

The module exports two objects: Instruments (default) and utils.

utils

Exposes a number of helper functions.

rootDir

  • The base of the package, wherever it is installed

killAllInstruments

  • Kill all Instruments processes currently running.

cleanAllTraces

  • Delete all the trace directories that the system knows of.

getInstrumentsPath

  • Retrieve the path to the Instruments binary.

getAvailableDevices

  • Retrieve a list of the devices that Instruments supports.

parseLaunchTimeout

  • Get the launchTimeout into a standard state. If it is a String it is parsed as JSON. If it is a number, or if the parsed version is a number, it is added to an object as global (so that the result is {global: launchTimeout}).

getIwdPath

quickLaunch

  • Launches an instruments test with a default test that immediately passes. In this way we can start a simulator and be notified when it completely launches.

quickInstruments

  • Factory for making an Instruments object with sane defaults.

Instruments

This is the main class, exported as default, for the package. Through this class programs can interact with Apple's Instruments program.

The class has one static class method:

quickInstruments

  • Factory for making an Instruments object with sane defaults.

And a number of object methods:

constructor

  • args - opts - an object with values to be set on the newly created object.
    • app
    • termTimeout - defaults to 5000
    • flakeyRetries - defaults to 0
    • udid
    • bootstrap
    • template
    • withoutDelay
    • processArguments
    • simulatorSdkAndDevice
    • tmpDir - defaults to /tmp/appium-instruments
    • traceDir
    • launchTimeout - defaults to 90000
    • webSocket
    • instrumentsPath

launchOnce - async

  • Launch Instruments without any retries.

launch - async

  • Launch Instruments up to flakeyRetries (specified in constructor) times.

spawnInstruments - async

  • Actually launch the Instruments process.

shutdown - async

  • Cleanly shutdown the currently running Instruments process.

appium-instruments's People

Contributors

sebv avatar imurchie avatar jlipps avatar jonahss avatar moizjv avatar bootstraponline avatar nghiadhd avatar dmeyyapp avatar ncarroll-mdsol avatar russvanbert avatar srinivasantarget avatar toejough avatar

Watchers

 avatar James Cloos avatar

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.