Skip to content

teitoku106/CypressTestingGithubAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CypressTestingGithubAPI

Testing Github API using Cypress Framework

This repo contains API Testing using Cypress in Javascript.

Author: Tam Pham (Kyle)


Instruction:

  1. Clone this Repo and open using Visual Studio Code
  2. Open Terminal inside Visual Studio Code and run [ npm install ] to install required packages (Make sure your machine got node.js + npm, more information: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
  3. Open Terminal inside Visual Studio Code, Run command [ npx cypress open ] to start Cypress, select demo.spec.js [Screenshot 4] to start the run and see the log [Screenshot 5]
  4. Open Terminal inside Visual Studio Code, Run command [ npx cypress run --reporter mochawesome ] to start Cypress in Headless mode, let it run and finish by itself, you can also find a report inside the reports folder name as: mochawesome.html (open it using any prefer browser) [Screenshot 6]

Coding Challenge Requirements

Screen Shot 2022-06-07 at 11 31 13 AM

Folder structure - Test File [Screenshot 1]

Screen Shot 2022-06-07 at 11 25 00 AM

Result [Screenshot 2]

Screen Shot 2022-06-07 at 11 18 07 AM

Functions [Screenshot 3]

Screen Shot 2022-06-07 at 11 18 21 AM

Select demo.spec.js [Screenshot 4]

Screen Shot 2022-06-07 at 11 23 38 AM

Result log in left screen [Screenshot 5]

Screen Shot 2022-06-07 at 11 24 24 AM

Report File in html format [Screenshot 6]

Screen Shot 2022-06-07 at 11 17 53 AM

About

Testing Github API using Cypress Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published