Selenium vs Cypress: A Comprehensive Comparison for Web Test Automation In the world of test automation, there are numerous frameworks available that are used to perform tests on web applications. Two of the most popular frameworks are Selenium and Cypress. ...
Softans Latest Articles
Automating Cypress Test Scripts with Jenkins: A YAML Guide
Ghulam NabiHow to Write a YAML File for Jenkins to Execute the Cypress Test Scripts Cypress is a powerful end-to-end testing framework that can be used to test web applications. Jenkins is a popular continuous integration (CI) server that can be ...
If Else and For loop in cypress
Ghulam NabiUsing if/else and for loops in Cypress tests Cypress is a popular JavaScript testing framework that makes it easy to write end-to-end tests for web applications. As with any testing framework, you’ll likely need to use conditional logic and iteration ...
Google Authentication in Cypress
Ghulam NabiGoogle Developer Console Setup The technique we will use for testing is to use the Google OAuth 2.0 Playground to create a refresh token that can be exchanged for an access token and id token during the testing phase. Google Project and ...
Parallelization in Cypress
Ghulam Nabi
Parallelization is the process of running multiple tests or suites concurrently to improve test execution time. Cypress, a popular end-to-end testing framework, provides built-in support for parallelization. Here’s how you can parallelize tests in Cypress: Install Cypress-parallel plugin: You can ...
API Automation in Cypress
Ghulam NabiHow to login programmatically with Cypress #cypress #testing #authentication #javascript Learn how to make your automated tests faster by authenticating via API Automated graphical user interface tests must be independent of each other. In addition, such tests must rely as ...
Cypress Page Object Model
Ghulam NabiCypress Page Object Model Page Object Model, also known as POM, is a design pattern that creates an object repository for storing all web elements. It is useful in reducing code duplication and improves test case maintenance. In the Page ...
Get User Data from json file in Cypress
Ghulam NabiGet User Data from json file in Cypress Get User Data from json file in Cypress and use it your Test Cases. (1) Create a UserData.json file in fixtures folder. (2) Define the Values in the Curly Brackets . Something ...
Draw a line using Cypress
Ghulam Nabi
Draw a line using Cypress Method (1) step 1: First of all get the exact coordinates i.e. { clientX: 200, clientY: 300 } step 2: Find the the exact Locater i.e. cy.get(‘[datatestid=’xyz’]’) step 3: cy.get(“[datatestid=’xyz’]”).trigger(‘mousedown’,’center’) .click({release:false}) .trigger(‘mousemove’,{ clientX: 200, clientY: ...
Cypress multiple environments
Ghulam NabiOne of the most common scenarios in an automation framework is to run scripts on different environments like QA, staging, production, etc. There are multiple ways to configure your Cypress framework to run on different environments. I am going to ...