GithubHelp home page GithubHelp logo

etcherpro-testing's Introduction

EtcherPro automatic testing project

This repository is designed to help us test Etcher on EtcherPro functionalities before release.

This should be run on a computer attached to an EtcherPro running the latest release in the EtcherPro flowzone deployment automatic tests.

Requirements

For this project to work, you need to run EtcherPro software v1.3.4 or above.

Dependencies

This project relies on Playwright with electon Chrome Debugging Port capability. At the time of creating this project, this only exists in an unmerged branch.

These dependencies have been included in the deps folder for ease of use.

Setting up

Installing dependencies

To setup this package, run:

npm i
npx playwright install

Setting up the EtcherPro

In order to enable Electron debugging on EtcherPro, you need to set these two variables on the etcher service of the device under test:

  • BALENAELECTRONJS_REMOTE_INSPECT_PORT=9229
  • BALENAELECTRONJS_REMOTE_DEBUGGING_PORT=9222

You will also need the EtcherPro to be online, and to be on the same local network as the testing computer.

Finally you will need the IP address of the EtcherPro on the local network. Add this IP address as "etcherProIP" in config.json file.

Setting up the URL

Finally set the URL to flash from in the "flashFromUrl" field of config.json file to link to a file accessible by the EtcherPro.

Running the tests

To run the test, run npm test.

The report can be seen using npm run report.

etcherpro-testing's People

Contributors

wolvi-lataniere avatar

Stargazers

 avatar

Watchers

 avatar  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.