Rockstar is a collection of tests written for the Applitools Rockstar hackathon using WebdriverIO 4 Node.js test framework and Applitools Visual AI SDK.
Rockstar uses a number of open source projects to work properly:
- WebdriverIO 4 - WebDriver bindings for Node.js.
- Mocha - ☕ Simple, flexible, fun JavaScript test framework for Node.js & The Browser. ☕
- Chai - Test framework agnostic BDD/TDD assertion library for node.js and the browser.
- node.js - Evented I/O for the backend
- Visual Studio Code - Code editor for building and debugging modern web and cloud applications.
- Javascript - Duh.
Rockstar requires Node.js to run.
From a git initialized directory, clone the projects repository.
$ git clone https://github.com/sskenner/rockstar
Install the dependencies and devDependencies and start the server.
$ cd rockstar
$ npm install
Step 1: Run the tests for version 1 of target webapp (baseline)
$ ENV=v1 npm run test TraditionalTests.js
Step 2: Wait for it to finish.
Step 3: Run the tests for version 2 of target webapp
$ ENV=v2 npm run test TraditionalTests.js
Step 4: Wait for it to finish.
Step 1: Run the tests for version 1 of target webapp (baseline)
$ ENV=v1 npm run test VisualAITests.js
Step 2: Wait for it to finish.
Step 3: Run the tests for version 2 of target webapp
$ ENV=v2 npm run test VisualAITests.js
Step 4: Wait for it to finish.