Slide 1

Slide 1 text

Automate Test API Using Cypress

Slide 2

Slide 2 text

Fathur Rohim

Slide 3

Slide 3 text

What is API? ? ? An Application Programming Interface (API) is code that allows two program software to communicate with each other. an API may include specifications for routines, data structures, object classes, and variables.

Slide 4

Slide 4 text

Provider Program How does the API Work? The API consists of two relate elements. The first is a specification that explains how information is exchanged between programs, done in the form of request for processing and returning the necessary data. The second is the interface software written to that specification and published in some to used. Consumer Program API Interface

Slide 5

Slide 5 text

Why API is so Important? Speed up the creation of an application 2 Easy to implement on any platform 3 Ease for maintenance, etc. 1

Slide 6

Slide 6 text

What is Cypress?

Slide 7

Slide 7 text

Cypress is software used for automated testing on the web using the node.js platform and javascript. In testing using Cypress, we used script code. The script code that is written is processed to run the system or software

Slide 8

Slide 8 text

In Our Team We use Mocha & Chai for Automation API (Include in Cypress)

Slide 9

Slide 9 text

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on GitHub. What is Mocha ? ?

Slide 10

Slide 10 text

Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. What is Chai? ? ?

Slide 11

Slide 11 text

Source Code https://github.com/oimtrust/isqa-cy

Slide 12

Slide 12 text

Let’s Open Demo

Slide 13

Slide 13 text

Thank You