All Projects → ChrisZie → Nightwatch Boilerplate

ChrisZie / Nightwatch Boilerplate

Licence: mit
boilerplate for nightwatch.js with selenium

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nightwatch Boilerplate

nightwatch-boilerplate
boilerplate for nightwatch.js with selenium
Stars: ✭ 16 (+0%)
Mutual labels:  selenium, e2e-tests, ui-testing
E2e Experiment
A demo project with Spring Boot / Angular application and e2e tests
Stars: ✭ 9 (-43.75%)
Mutual labels:  selenium, e2e-tests
Selenium Toys
Selenium Toys
Stars: ✭ 14 (-12.5%)
Mutual labels:  selenium, ui-testing
Sakuli
Sakuli is an end-2-end testing and monitoring tool for web sites and common UIs with multiple monitoring integrations
Stars: ✭ 115 (+618.75%)
Mutual labels:  e2e-tests, ui-testing
Seleniumbase
A Python framework that inspires developers to become better test automation engineers. 🧠💡
Stars: ✭ 2,520 (+15650%)
Mutual labels:  selenium, e2e-tests
Express Typescript Boilerplate
A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
Stars: ✭ 2,293 (+14231.25%)
Mutual labels:  boilerplate, e2e-tests
jdi-light
Powerful Framework for UI Automation Testing on Java
Stars: ✭ 84 (+425%)
Mutual labels:  selenium, ui-testing
babel-plugin-remove-test-ids
🐠 Babel plugin to strip `data-test-id` HTML attributes
Stars: ✭ 40 (+150%)
Mutual labels:  selenium, e2e-tests
Sassy Starter
🎉 Sassy starter - HTML / SCSS (SMACSS)
Stars: ✭ 740 (+4525%)
Mutual labels:  boilerplate
Marvin
Opinionated React app boilerplate in TypeScript, based on CRA.
Stars: ✭ 783 (+4793.75%)
Mutual labels:  boilerplate
Chimney
Scala library for boilerplate-free, type-safe data transformations
Stars: ✭ 731 (+4468.75%)
Mutual labels:  boilerplate
Frame
💡 A user system API starter
Stars: ✭ 741 (+4531.25%)
Mutual labels:  boilerplate
Ui Testing Best Practices
The largest UI testing best practices list (last update: January 2021)
Stars: ✭ 783 (+4793.75%)
Mutual labels:  ui-testing
Cypress Example Kitchensink
This is an example app used to showcase Cypress.io testing.
Stars: ✭ 734 (+4487.5%)
Mutual labels:  e2e-tests
Selendroid
"Selenium for Android" (Test automate native or hybrid Android apps and the mobile web with Selendroid.) Join us on IRC #selendroid on freenode. Also confirm you have signed the CLA http://goo.gl/pAvxEI when making a Pull Request.
Stars: ✭ 828 (+5075%)
Mutual labels:  selenium
Jslib Base
A modern JavaScript|Typescript library scaffolding, modularity, purity & extras
Stars: ✭ 721 (+4406.25%)
Mutual labels:  boilerplate
React Clean Architecture
A realistic approach to implement clean architecture on react codebases
Stars: ✭ 713 (+4356.25%)
Mutual labels:  boilerplate
Js Package Template
Boilerplate for creating a new javascript package
Stars: ✭ 16 (+0%)
Mutual labels:  boilerplate
Shiftscheduler
A boilerplate ASP.NET Core project, including a sample employee shift scheduler app
Stars: ✭ 5 (-68.75%)
Mutual labels:  boilerplate
Minimal React Webpack Babel Setup
The minimal React, Webpack, Babel Setup. You want to get beyond create-react-app?
Stars: ✭ 777 (+4756.25%)
Mutual labels:  boilerplate

nightwatch-boilerplate

boilerplate for nightwatch.js with selenium

Original Framework is from https://github.com/nightwatchjs/nightwatch and also from https://github.com/mucsi96/nightwatch-cucumber

I created a Boilerplate for nightwatch to use with and also without nightwatch-cucumber.

Install Nightwatch Boilerplate

First you need to install Node.js (https://nodejs.org/en/) and Java.

Then...

$ git clone https://github.com/christinezierold27/nightwatch-boilerplate.git
$ cd nightwatch-boilerplate
$ npm install

Run Tests

In this boilerplate you find one test which does a simple GUI Test in Google. The configuration is set up (nightwatch.conf.js) that the selenium server is started with the test and you do not have to start the server manuelly. The test is saved under tests/src/ and also as a cucumber version under features/group .

to start plain Nightwatch test (tests/src/)

$ cd nightwatch-boilerplate
$ npm start

to start cucumber Nightwatch test (features/group)

$ cd nightwatch-boilerplate
$ npm start:cucumber

Console Output

reports

for cucumber

under features\reports will be a HTML Report created after each cucumber test run.

HTML Report

configuration

There are two config files in this project. One in the main folder (nightwatch.conf.js) for all the general configurations and one under tests/nightwatch.conf.js for the specific configuration for the plain nightwatch tests.

to set up the default starting browser

open nightwatch.conf.js in the main folder

under test_settings --> default --> desiredCapabilities --> browserName you can change the value to chrome or firefox to change the browser

to set up that the selenium server starts with tests

open nightwatch.conf.js in the main folder

under selenium --> start_process set the value of TRUE to set up that the selenium server starts with the test

Use Docker

In the docker-compose.yml are one Selenium Hub (2.53.1) and two nodes (chrome and firefox) configured. The Images are from https://github.com/SeleniumHQ/docker-selenium

To start/build the Docker containers run this:

$ docker-compose up -d

After that the containers for the Grid and Nodes are build and ready to use.

usage under Windows 7

If you use Windows 7 you may have to change the value for server_path for the selenium server because Windows7 uses docker-machine and that's why the selenium server container is not reachable via the service name 'seleniumhub'. You find this setting in the nightwatch.cong.js:

selenium : {
        server_path : dockerSeleniumHub
        ...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].