Git Product home page Git Product logo

openfin-wdio-testable-example's Introduction

OpenFin testing with Webdriver.io v5

An example project for testing an OpenFin application with Webdriver.io v5+ using the test runner configuration approach that should work across Windows, Mac, and Linx and is also compatible with execution on Testable.

Prerequisites to run locally

  1. Install the latest Node.js and npm
  2. git clone this repository and change into the directory
  3. Run npm install to install all dependencies.
  4. For Windows, install the Hello OpenFin app
  5. For Mac/Linux, install the Testable fork of openfin-cli that makes sure the devtools port works correctly: npm install -g testable-openfin-cli.
  6. Download and install chromedriver v2.37 (for compatibility with OpenFin 12.x).

Running locally

  1. Start chromedriver on the default port (9515)
  2. From the project directory run wdio to execute the test: ./node_modules/.bin/wdio wdio.conf.js

And that's it. The test will launch openfin as the chromium instance to drive via the webdriver protocol and run all tests found in the test.js spec.

Running on Testable

There are a few key differences from hello-openfin-selenium-example to get this test running on Testable.

RunOpenFin.bat

The location of the OpenFin binary is hard-coded to the location on our test runner:

SET openfinLocation=C:\Users\Administrator\AppData\Local\OpenFin

wdio.conf.js

The config url is set to process.env.CONFIG_URL. This path refers to a modified version of the application config json that will successfully launch multiple times on the same test runner for simulating multiple virtual users per instance.

To run this on Testable simply upload all the files, zip up the directory and upload into a Testable scenario, or connect it via a VCS link. Check out the OpenFin getting started guide for more details.

openfin-wdio-testable-example's People

Contributors

avistramer avatar datamadic avatar

Watchers

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.