Showing posts with label Protractor. Show all posts
Showing posts with label Protractor. Show all posts
Cypress Tutorial : A Brief Introduction to Cypress

Cypress Tutorial : A Brief Introduction to Cypress


Cypress Tutorial : A Brief Introduction to Cypress



In this article, we will be having an introduction of Cypress.io and how to set this up and creating our first test in cypress.

Introduction to Cypress.io

Cypress.io is an open-source test automation tool built for modern web applications. It is fast, easy and reliable testing for anything that runs in a browser.

The most important part of it, it doesn’t build on Selenium WebDriver.
Cypress.io is NOT Selenium and hence there is a new architecture been built
from the ground up.
Protractor Automation FrameWork Using Page Object Model

Protractor Automation FrameWork Using Page Object Model

Protractor Automation FrameWork Using Page Object Model


In this article, I will be sharing the complete Protractor automation framework using Page Object Model which I have created using type and javascript.

In this framework I have automated a few scenarios for a Publicly available angular website named ProtoCommerce. Please Note for using this Framework you need to change your system configuration.

Reading Data From Excel File in Protractor

Reading Data From Excel File in Protractor


Reading Data From Excel File in Protractor


As we all are aware, data driven testing is one of the important aspects we need to take care while designing any testing framework. There could be different approaches of data Driven Testing in automation framework like
  •         Reading Test Data from properties file
  •         Reading Test Data from JSON File
  •     Using DataProvider
  •         Reading Test Data from excel

We already have seen in other blog, how to read data from properties file and use it in our automation framework. Please refer this link to know about it.

We also have seen how to Read test data from JSON file. Please click on this link.

In this blog, we will learn how to read data from Excel File and use them in our protractor automation framework.


For reading data from excel file in protractor automation framework, we need to follow below steps:

1)     We need to download the npm xlxs dependency from this link in your package.json.


2)     Then we can create one excel file inside our project and let's name it as GoogelTestData.With the help of this excel file I will read the url of google home page then click on Images link present on top of page and then do some search on google Search box.


3)     Now to Read this Excel File from our automation script we need to provide the path and name xlsx file.



Below is my runner class to execute this automation scripts

Output of above code execution would Be: