Testing

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

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

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

Nuts and Bolts Of Appium

Reading Time: 4 minutes Hello everyone, in this blog, I will be sharing some basic concept and installation process of Appium on your Linux system. In a job profile like QA you should be open to work on any kind of technology stack based on your project. You should not limit yourself to a specific skill set. In short as a QA you should be able to assure the Continue Reading

A Beginner’s Guide to Writing Acceptance Testing for Lagom Microservices with Cucumber

Reading Time: 3 minutes In software development, acceptance criteria is a way via which a client communicates their expectations to engineering team. Also, it acts as a list of conditions upon completion of which a software/app is marked as complete. Since acceptance criteria is an important part of software development, it becomes important to determine that the acceptance criteria is met by the software or not. This sub-discipline of Continue Reading

Spring-Webflux: Testing your Router Functions with WebTestClient

Reading Time: 3 minutes I recently started working on the functional approach of Spring Boot Webflux. You can explore it more on my previous blog on Spring Boot Webflux. It is a new concept and you may not find many useful blogs on it unlike for annotation based controllers. However, going with some trial and error, I have come out with how one can test its router functions along Continue Reading

Spring-Webflux: How to test your controllers using WebTestClient?

Reading Time: 3 minutes While working with Spring MVC, you might have used Spring MockMVC to perform testing of Spring web MVC controllers. MockMVC class is part of the Spring MVC test framework which helps in testing the controllers explicitly starting a Servlet container. But, this is not something which will work if you are using SpringBoot Webflux. If you have a Spring application built with Webflux, the MVC controllers can be tested using WebTestClient. Continue Reading