Git Product home page Git Product logo

automation-testing-supported-ci-cd-'s Introduction

Automation-Testing-supported-CI-CD-

Web Automation Framework Template Using defined step and architechure from gitHub: https://github.com/labs42io/web-automation Tests are written in an ordinary language that bridges the gap between business and technical people. The docker selenium simplifies the setup and avoids any local installation of browser specific dependencies. Supported CI/CD:

  • Gitlab
  • Jenkins (Update in the future)
  • Github (Update in the furture)
  • CircleCI (Update in the future)

Short guide to GitlabCI

Make a folder feature in your testing project Write Feature file based on Given, When, Then syntax Then test run

Quick start

  1. Install dependencies required to run the tests:
npm install
  1. Start docker selenium containers with docker-compose:
# starts the selenium hub and browser nodes in docker containers / chạy container gồm browser vs selenium

npm run selenium
  1. Run the tests and view the report:
# Chạy tất cả các test và tạo mới tất cả report

npm run test
# Chạy 1 test feature và tạo report cho test đó 

npm run test:run test.feature && npm run report
# Xoá các report ở local 

npm run report:clean

To stop all the docker containers from step 2:

npm run selenium:stop

Run the tests and view the report:

Chạy tất cả các test và tạo mới tất cả report

npm run test

Chạy 1 test feature và tạo report cho test đó

npm run test:run test.feature && npm run report

Xoá các report ở local

npm run report:clean

To stop all the docker containers from step 2:

npm run selenium:stop

Note that selenium containers can be started once and then used across multiple sessions of running and debugging tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.