Home » Testing

Tag Archives: Testing

Mock Void method with Mockito

Hey guys! After our previous blog on difference between thenReturn and thenAnswer mockito methods, we are back with yet another interesting blog on Mockito. Here, we shall discuss “How to Mock Void method with Mockito”. Let’s get started! When writing code, there is always at least one method that returns ‘void’, and at some point in time we need to ...

Read More »

Test Coverage Reports For Maven Projects In SonarQube 8.3.x

Some years ago I write a blog post about how to generate test reports in SonarQube separate in test report for unit tests and for integration tests. Since SonarQube 6.2 the test report isn’t separate in these categories any more (see SonarQube’s blog post). SonarQube merges all test reports to one test report with an overall coverage. So how to ...

Read More »

WebDriverIO Tutorial For Handling Dropdown In Selenium

While performing automated browser testing, there’ll be plenty of times when you’d have to handle the dropdown menu. Often used in forms, dropdown works great when it comes to conserving space and preventing users from choosing the wrong option in a form. I’d have rarely come across a form without dropdown to select a field from multiple options. Thereby, it ...

Read More »

Top 13 Challenges Faced In Agile Testing By Every Tester

Even though we strive for success in whatever journey we undertake, sometimes failure is inevitable. But in most cases, if we just avoid a few blunders and get through major challenges hampering progress, the path to success won’t seem so challenging. The same goes for agile testing teams where the pressure of continuous delivery can be overwhelming. Now, I’m not ...

Read More »

Maven Tutorial For Selenium Test Automation

While working on a project for test automation, you’d require all the Selenium dependencies associated with it. Usually these dependencies are downloaded and upgraded manually throughout the project lifecycle, but as the project gets bigger, managing dependencies can be quite challenging. This is why you need build automation tools such as Maven to handle them automatically. Maven can be more ...

Read More »

What Is Parallel Testing And Why To Adopt It?

With the advancement in technology, testing solutions have become more scalable than ever, as organizations moved to Selenium test automation from manual testing. But, one area that most organizations are still struggling with is the scalability to run multiple tests in parallel. Many corporations are still using sequential testing methods to deliver quality assurance, which consumes a lot of time, ...

Read More »

Clean Code from the Trenches – Writing Executable Specifications with JUnit 5, Mockito, and AssertJ

Executable Specifications are tests that can also serve as design specifications. They enable technical and business teams to get on the same page by enabling the use of a common language (in DDD-world this is also known as Ubiquitous Language). They function as documentations for the future maintainers of the code. In this article we will see an opinionated way of ...

Read More »

Testing using mocks

java-interview-questions-answers

Mock objects are very useful if used right way. I shared some of the experience of using Mock Objects in need-driven-software-development-using post. In this post i share 2 things– Contract based testing using mocks.– Patterns to organized mock code. Contract based testing Lets take scenario where you are building Money remittance service. Key component in such type of service is Currency Converter , ...

Read More »

Invoking Secure WCF SOAP Service using SoapUI – Part 1, The service

java-interview-questions-answers

In this saga divided into three-part, I will demonstrate how to use the SoapUI API tool to invoke a secured SOAP service. Firstly, I will focus on creating a service where in the next posts it will serve as the system under test. The access to the resource in this service is maintained using Basic Authentication transport security mechanisms. One of many provided by ...

Read More »