End 2 End test

ย  ย  ย withย 

๐Ÿš€

What is End 2 End test? ๐Ÿง

End-to-End Testing is a type Software Testing that not only validates the software system under test but also checks its integration with external interfaces. Hence, the name "End-to-End". The purpose of End-to-End Testing is to exercise a complete production-like scenario.

Why End 2 End test? ๐Ÿค”

Modern software systems are complex and are interconnected with multiple sub-systems.

End to End testing Process ๐Ÿคฉ

Title Text

How to create End-to-End Test Cases? ๐Ÿ™€

End to End Testing Design framework consists of three parts

  • Build user functions

  • Build Conditions

  • Build Test Cases

What isย 

๐Ÿ˜ง

7 ways Cypress is different ๐Ÿ˜ฑ

  • Does not use Selenium. ๐Ÿคญ

  • Focuses on doing end-to-end testing REALLY well.

  • Works on any front-end framework or website.

  • ย Tests are only written in JavaScript.

  • Is all in one. ๐Ÿ˜Ž

  • Is for developers and QA engineers.

  • Runs much, much faster.

Code ๐Ÿ‘ฝ

  let TODO_ITEM_ONE = 'buy some cheese'
  let TODO_ITEM_TWO = 'feed the cat'
  let TODO_ITEM_THREE = 'book a doctors appointment'

 it('should allow me to add todo items', function () {
      // create 1st todo
      cy.get('.new-todo').type(TODO_ITEM_ONE).type('{enter}')

      // make sure the 1st label contains the 1st todo text
      cy.get('.todo-list li').eq(0).find('label').should('contain', TODO_ITEM_ONE)

      // create 2nd todo
      cy.get('.new-todo').type(TODO_ITEM_TWO).type('{enter}')

      // make sure the 2nd label contains the 2nd todo text
      cy.get('.todo-list li').eq(1).find('label').should('contain', TODO_ITEM_TWO)
    })

Demo

Gracias ๐Ÿš€๐Ÿ‘จ๐Ÿผโ€๐Ÿ’ป

E

By nicolas restrepo

E

  • 291