Giter VIP home page Giter VIP logo

r3's Introduction

README

API-Automation

API Test Automation build with

| Tools & Technologies    |
|---------------------    |
| Cypress                 |
| BDD                     |
| Java Script             |
| POM                     |

Prerequisites

Make sure you have installed the following prerequisites on your development machine:

| OS      | Node                                       |
|---------|--------------------------------------------|
| Windows | `winget install OpenJS.NodeJS.LTS`         |
| macOS   | `brew install node@latest`                 |

Files System

-- cypress
    -- e2e (Test Inside e2e)
        -- features 
        -- step_definitions
    -- fixtures (Data)
    -- support (Support folder)
        -- commands.js (common util)
        -- e2e.js (loaded before test dependencies e2e)
    -- reports (reports)
-- cypress.config.js (config)
-- cypress.report.js (report generator)
-- Dockerfile 
-- package.json (package management)

How Do I Get Set Up?

* Link : https://github.com/sajjasivakumar/r3.git
* Do git clone into your machine

Contribution Guidelines

* Cd to console-ui-automation
* Do git pull
* Make sure master is update date
* Create a branch from master
* Work on branch 
* Add and Commit your changes
* Add reviewer and get it approved
* And Merge your changes to master
* Delete your Branch in local as in upstreams 
* Do fllow same steps every time 

Executing The Tests

* Build the project

```shell
ncu -u
```
```shell
npm install
```
OR
```shell
npm i
```

Run In CLI

```shell
    npx cypress run
    npm run report
```

Run The Test In parallel

```shell
npm run clean
```
```shell
npm run cy:parallel
```
```shell
npm run report
```

Open Cypress Runner UI

```shell
    npx cypress open
```

To Build This Image Just Use The Following Command Line

```shell
docker build -f Dockerfile -t api-automation .
docker image ls -a
docker run -it <IMAGE ID> /bin/bash
```

Total Feature Tags

Total Count:

|   Name                 | Count                  |
|----------------------  |----------------------  |
| No of Feature Files    | 01                     |
| No of Tests Scenario   | 05                     |
| Runing Tests Scenario  | 05                     |

To Run An Example

  • Run with mutiple tags

        npx cypress run --spec 'cypress/e2e/features/*.feature' --headed --env TAGS='@APITest'
  • TAG INSTANCE: Headless Chrome

        npx cypress run --spec cypress/e2e/features/*.feature --headed --browser chrome --config baseUrl=https://open.er-api.com/v6,retries=0 --env test_env=sandbox,TAGS=@APITest

Who do I talk to?

* Repo owner or admin [email protected]

r3's People

Contributors

sajjasivakumar avatar

Watchers

 avatar

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.