Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sw-tester/qa-wdio-js
Boilerplate Testing Framework based on WebdriverIO (JS) and Cucumber
https://github.com/sw-tester/qa-wdio-js
bdd cucumber qa-automation test-automation testing-framework webdriverio
Last synced: about 13 hours ago
JSON representation
Boilerplate Testing Framework based on WebdriverIO (JS) and Cucumber
- Host: GitHub
- URL: https://github.com/sw-tester/qa-wdio-js
- Owner: sw-tester
- License: gpl-2.0
- Created: 2023-04-01T09:32:55.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-08T04:19:10.000Z (almost 2 years ago)
- Last Synced: 2024-12-20T05:23:30.580Z (24 days ago)
- Topics: bdd, cucumber, qa-automation, test-automation, testing-framework, webdriverio
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WebdriverIO [JS] - ReadyState Framework Using Cucumber
## What it offers:
- This is a boilerplate test framework, developed using Cucumber-JS, which gives detailed
directions on: implementating pageobjects, writing feature files elequently using Gherkin
for an eCommerce site, running tests in a docker container and much more.- It aims to provide an idea on using various WebdriverIO API to mimick different user
interactions, and also, maintaining the data used for automated testing commonly using YAML file.- It generates test reports (allure), providing detailed outcomes about the test runs,
including screenshots on failures.- This repository contains all you need to run tests in docker container or optionally in
local machine.## How to do:
- Local:
- Install nodejs and npm
- Java [To run allure commandline]- Docker Container:
- Docker [ Though tests run in container, you still can monitor runs as container runs
in attached mode ]
- Tree View:
.
├── Dockerfile
├── README.md
├── init.sh
├── jsconfig.json
├── package-lock.json
├── package.json
├── src
│ ├── data
│ │ └── data.yml
│ ├── features
│ │ ├── account.creation.feature
│ │ ├── search.products.feature
│ │ └── sign.in.feature
│ ├── glue
│ │ ├── account.creation.js
│ │ ├── add.to.cart.js
│ │ ├── order.confirmation.js
│ │ ├── reviews.payments.js
│ │ ├── search.products.js
│ │ ├── shipping.info.js
│ │ └── sign.in.js
│ ├── pages
│ │ ├── add.to.cart.js
│ │ ├── base.page.js
│ │ ├── create.new.account.js
│ │ ├── customer.login.js
│ │ ├── home.js
│ │ ├── order.confirmation.js
│ │ ├── reviews.payments.js
│ │ ├── search.results.js
│ │ └── shipping.address.js
│ └── utils
│ ├── support.js
│ └── td.js
└── wdio.conf.js## What to do:
- For Mac or Linux distributions, you can run scripts using the script like this: ./init.sh
- In case of Windows, you shall run these commands on cmd or create a batch using these commands
rd /s /q allure-report
rd /s /q allure-results
npm install .
npm install -g allure-commandline
npm run test
allure generate --clean allure-results && allure open -h localhost -p 60606- After tests are done, allure will be launched in default browser, and for docker container, you
can check the reports manually at http://localhost:60606## What's next:
- This is a standard boilplate framework and is evolving, however if you think to add any feature
,please do so and create a pull request to this repository.