Quality Assessment (QA)

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

Performance Testing with Gatling

Reading Time: 4 minutes This blog is basically for the one who wants to do performance testing using the Gatling tool. Before starting with the actual Gatling tool we will have a brief introduction of performance testing. What is Performance Testing? Performance Testing is defined as a type of software testing to ensure software applications will perform well under their expected workload. Here expected workload is that which makes Continue Reading

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

Beginners Guide for Mocking in Scala

Reading Time: 3 minutes We all must know how the unit test cases are one of the most important part of an application. If not? Then I must tell you that unit testing is one of the earliest testings which is performed on the unit of code and the earlier the defects are detected, the easier it is to fix. It reduces the difficulties of discovering errors contained in Continue Reading

Mocha- A Rich JavaScript Framework.

Reading Time: 4 minutes When I have started using postman and design my first framework, I have got to know that postman uses Mocha as an internal JavaScript framework to execute and manage the test cases. A few days later I was exploring Cypress.io which also follows Mocha standards for executing and managing test cases. That makes me curious to explore more about Mocha and use its powerful features Continue Reading

Test report for Rest Assured

Reading Time: 3 minutes Test report is generally a communication bridge between test manager and stakeholder. The stakeholder can understand the project situation with test report only. One of the use case will be evaluating the quality using test report. It is because you want to make decisions based on those reports for example if there are number of defects remaining the project, we simply not release the project. Continue Reading

Introduction to Appium and it’s Drivers – 2

Reading Time: 3 minutes In the previous blog we discussed different drivers which are supported by Appium. https://blog.knoldus.com/introduction-to-appium-and-its-drivers/ . In this blog we will learn about emulator, and installing GUI version of on Ubuntu. Emulator Setup An emulator is a software which uses computer resources to behave like another computer system. Using emulator we can emulate any android device on our local computer system. We can use AVD (Android Continue Reading