Quality Assessment (QA)

Launching any application using Appium

Reading Time: 2 minutes In the last blog we learned how to identify different elements using Appium (https://blog.knoldus.com/finding-elements-using-appium-inspector/) . In this blog we will see how we can launch any application using Appium. It is not always possible to get the APK of the application that you want to test using Appium. For example, if we want to test any system application such as the messages app of any 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

DDT with Excel in Rest Assured

Reading Time: 3 minutes We have already discussed Rest assured in some of our previous blog posts. The scope of this blog will be DDT only. DDT stands for data driven testing. It is a practice of creation of test script where test data is read from data files instead of old school hard coded values each time scripts run. This way, testers can test how the application handles Continue Reading

How to load chrome extension in cypress.io

Reading Time: 3 minutes In our previous blog Progressive Web App Testing with Cypress.io, we explained: What is Cypress.io? How is it different from Selenium? How do we set up Cypress.io? Here we will see how do we load a chrome extension in cypress.io? So before moving on, As we know chrome extension do have a qualified URL which we can automate by using cypress commands so the first Continue Reading

Finding elements using Appium Inspector

Reading Time: 4 minutes In the previous blog, we had seen how we can install Appium on our local system. So in this blog, we will see how we can use Appium inspector and find different types of elements in them. So lets first see why we require Appium inspector? Why Appium Inspector? Testing a mobile application and a web application is different from one another. The main difference 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

Configuration file for log4j: An introduction

Reading Time: 3 minutes Log4j.xml is nothing but configuration file of log4j means you can customize loggers, in this blog we will be looking into this file to now the nuts and bolts of it. Log4j is a java based logging utility used for logging. Logging is an essential add on for any application. It not just printing the messages but also gives you detailed information about the messages. 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.

Integration testing using H2Database

Reading Time: 3 minutes Need of Integration Testing For doing unit tests, We use to do mocking. Consider we call getUser(), it calls the DAO that’s been mocked and returns “John” for the name and “21” for the age, assembles them and everything is perfect. No need to actually unit test a database there.What if there is any bug in database operations. If you mocked the database you can Continue Reading