All Projects → ChrisPint → nightwatch-boilerplate

ChrisPint / nightwatch-boilerplate

Licence: MIT license
boilerplate for nightwatch.js with selenium

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Gherkin
971 projects

Projects that are alternatives of or similar to nightwatch-boilerplate

Docker Selenium
Docker images for the Selenium Grid Server
Stars: ✭ 5,476 (+34125%)
Mutual labels:  selenium, selenium-server, docker-selenium
Nightwatch Boilerplate
boilerplate for nightwatch.js with selenium
Stars: ✭ 16 (+0%)
Mutual labels:  selenium, e2e-tests, ui-testing
Nightwatch
End-to-end testing framework written in Node.js and using the Webdriver API
Stars: ✭ 10,912 (+68100%)
Mutual labels:  selenium, selenium-server, nightwatch
babel-plugin-remove-test-ids
🐠 Babel plugin to strip `data-test-id` HTML attributes
Stars: ✭ 40 (+150%)
Mutual labels:  selenium, e2e-tests
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
E2e Experiment
A demo project with Spring Boot / Angular application and e2e tests
Stars: ✭ 9 (-43.75%)
Mutual labels:  selenium, e2e-tests
Selenoid
Selenium Hub successor running browsers within containers. Scalable, immutable, self hosted Selenium-Grid on any platform with single binary.
Stars: ✭ 2,065 (+12806.25%)
Mutual labels:  selenium, selenium-server
Selenium Toys
Selenium Toys
Stars: ✭ 14 (-12.5%)
Mutual labels:  selenium, ui-testing
Zalenium
A flexible and scalable container based Selenium Grid with video recording, live preview, basic auth & dashboard.
Stars: ✭ 2,381 (+14781.25%)
Mutual labels:  selenium, docker-selenium
IridiumApplicationTesting
A&G Web Application Testing Suite
Stars: ✭ 19 (+18.75%)
Mutual labels:  e2e-tests, cucumber-tests
nightwatch-vrt
Visual Regression Testing tools for nightwatch.js
Stars: ✭ 59 (+268.75%)
Mutual labels:  e2e-tests, nightwatch
Docker Selenium
[NOT MAINTAINED] Please use <https://github.com/SeleniumHQ/docker-selenium>
Stars: ✭ 1,431 (+8843.75%)
Mutual labels:  selenium-server, docker-selenium
jdi-light
Powerful Framework for UI Automation Testing on Java
Stars: ✭ 84 (+425%)
Mutual labels:  selenium, ui-testing
Seleniumbase
A Python framework that inspires developers to become better test automation engineers. 🧠💡
Stars: ✭ 2,520 (+15650%)
Mutual labels:  selenium, e2e-tests
nightwatch101
使用 Nightwatch 實現 End-to-End Testing ★
Stars: ✭ 42 (+162.5%)
Mutual labels:  selenium, nightwatch
callisto
Callisto is an open-source Kubernetes-native implementation of Selenium Grid.
Stars: ✭ 83 (+418.75%)
Mutual labels:  selenium, selenium-server
PyWhatsapp
Python script to control whatsapp web using terminal
Stars: ✭ 20 (+25%)
Mutual labels:  selenium
pystest
WEB UI自动化测试框架,selenium结合python,测试人员不需要会代码,只需要写配置即可实现,并且方便懂代码的测试人员扩展
Stars: ✭ 24 (+50%)
Mutual labels:  selenium
instagram-post-scheduler
Python Program To Schedule Your Instagram Posts
Stars: ✭ 30 (+87.5%)
Mutual labels:  selenium
Selenium.WebDriver.Extensions
Extensions for Selenium WebDriver including jQuery/Sizzle selector support.
Stars: ✭ 46 (+187.5%)
Mutual labels:  selenium

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