项目作者: kartojal

项目描述 :
Support IEVMS (IE/Edge in VirtualBox) for testcafe
高级语言: JavaScript
项目地址: git://github.com/kartojal/testcafe-browser-provider-ievms.git
创建时间: 2017-09-13T21:59:11Z
项目社区:https://github.com/kartojal/testcafe-browser-provider-ievms

开源协议:MIT License

下载


testcafe-browser-provider-ievms

Build Status

This is the ievms browser provider plugin for TestCafe. It launchs your Windows VMs previously installed with IEVMS and proceed to run tests in it. When the tests are finished, the VMs are saved and stopped. It can run multiple Internet Browsers/Edge instances at once.

Install

  1. npm install testcafe-browser-provider-ievms

Requirements

Usage

You can determine the currently installed IE/Edge vms and discover the browser aliases with:

  1. testcafe -b ievms

When you run tests from the command line, use the alias when specifying browsers:

  1. testcafe 'ievms:MSEdge - Win10' 'path/to/test/file.js'

When you use API, pass the alias to the browsers() method:

  1. testCafe
  2. .createRunner()
  3. .src('path/to/test/file.js')
  4. .browsers('ievms:MSEdge - Win10')
  5. .run();

TODO

  • Stop running instances programmatically if user kills the current testcafe process (like with “CTRL + C”)