Testing

Integrate TestNG and Json-Server with Rest-Assured

Reading Time: 6 minutes A quick intro about Rest Assured? Integration of  TestNG with Rest-Assured What is  JSON Server and how to set it up. How to create or setup a project? Let’s get to our first question. What is Rest Assured? In brief Rest Assured is nothing but a JAVA library or a set of JAVA APIs for testing and validating RESTful webservices. In other words, REST Assured Continue Reading

Understanding Java Enums

Are you worried about the broken links on your Application?

Reading Time: 3 minutes Nobody wants that his/her application is having even a single broken link. Now again a question arises that, Then What should we do about that? Do we need to click every single link and check if its working or not? Definitely no one will do that tedious thing. As a result we’ll not be able to complete our deadlines. In Today’s world every application have Continue Reading

Combining Gatling Reports

Reading Time: 4 minutes Hi guys, In this blog, we shall discuss about the report generation through Gatling and combining Gatling Reports. As you may already know, when we run a Gatling test the report gets generated automatically. However, you cannot compare the Gatling test report of two different tests in a single report unless you have the enterprise version of Gatling. I will try to explain an easy Continue Reading

windows handling using selenium webdriver

Reading Time: 3 minutes Selenium is one of the most loved UI automation tools. Selenium makes tester’s life easier. And for those who don’t know this beautiful tool can start with this baby steps in exploring this tool. windows handling is one of the basic problems when we are talking about UI Automation. Pr-requisites:- Java:- As programming language. Eclipse:- As an IDE where we’ll write code. Selenium plugin:- we’ll Continue Reading

Cypress: How to retry failed test cases and log the console error on command line?

Reading Time: 3 minutes In our previous blog “How to load chrome extension in cypress.io” we explained How to get an unpacked version of an extension from the chrome web store? How to load chrome extension in our application under test? What are the related configuration changes needed to load an extension in cypress? Here we will discuss: How to add retry ability in our test scripts? How to Continue Reading

Date Picker Made-Easy using Selenium

Reading Time: 3 minutes What’s this blog all about? Folks, it’s selenium 3(stable) already! Thinking about how date picker works made me write this blog post! As a part of learning selenium webdriver, you all must have gone through different date pickers. Every e-commerce, banking, insurance, travel websites plus rewards and sales portals and other applications use different calendars for picking up the date. With the course of UI Continue Reading

TestNG Listners: ITestlistners in TestNG(Part 1)

Reading Time: 3 minutes TestNG provides the @Listeners annotation which heedfully auricularly discerns every event that occurs in a selenium code. Listeners are activated either afore the test or after the test case. It is an interface that modifies the TestNG comportment. For example, when you are running a test case either through selenium or appium and suddenly a test case fails. We require a screenshot of the test Continue Reading

Mocking The Right Way

Reading Time: 3 minutes Mockito is a fun way to perform unit tests, but it’s true potential can only be realised if the underlying layers are designed in such a way that there is no interaction with the internal logic of other components of the application.

Monkey patching in NodeJS

Reading Time: 3 minutes Hey guys, I am back with another blog in my series of blogs on mocking in nodeJS, so if you have read my last blog, in which we looked over how we can use sinon for testing in nodeJS to effectively mock and stub behaviours, so in this blog we would look over the concept of monkey patching to make things more testable, so let’s Continue Reading

Spies and Stubs in NodeJS

Reading Time: 3 minutes Hi folks, my last two blogs we discussed about how we can use monkey-patching to test complex code logic which could be difficult to test if it is not used, along with that we also looked over how can stub or mock behaviours of our dependencies using sinon, in this blog we would be exploring more utilities provided by sinon i.e; Spies and Stubs. Spies Continue Reading