Working with cypress automation tool

 

Cypress is an automation tool for web application. You can use javascript to develop automation scripts.It has inbuilt browser for testing application and takes automated screen shots for each test steps in the testcase. It runs on node.js.

Following are the step you will need to follow to get started with Cypress.

 

1. Check the Version of Node.js

Before you begin, it's important to check if Node.js is installed on your system. If Node.js is already installed, verify the version.

    cmd.exe>node --version

    2. Installing Cypress
     
    Now that Node.js is installed, let's move on to installing Cypress, which is used for end-to-end testing of web applications.
     
      cmd.exe>> npm install cypress
     3. How to work with node.js. 
     

    1. Create a folder (cypressdemo)
    2. Create package.json file.to create the node.js project you require package.json. 
    3. The command is : cmd.exe>npm init

     

     .Run the cypress tool.
             cmd.exe > npx cypress ope
       

    Comments

    Popular Posts