Testing

Writing Independent Tests

Reading Time: 2 minutes What does it mean for a test to be independent? It means that a test should not depend upon the presence or absence of other tests, the order of the tests, or whether or not previous tests failed or not. It also means that the tests should not be dependent upon external things such environment variables, an internet connection, or the local time. Why is Continue Reading

Advertisements

Progressive Web App Testing with Cypress.io

Reading Time: 4 minutes A few days back during a client presentation, we were discussing different tools that can help us to perform end to end testing of a web app developed on some emerging technologies like Ionic, React, Angular and Vue. I am a super fan of selenium for testing different web apps and also have used Protractor for testing some of the angular based applications but this Continue Reading

Integration Testing with H2

Reading Time: 3 minutes It goes without saying that testing code is essential, if you don’t want to have buggy code in production, but how can you test code that queries a database? One solution is an in-memory database, and a common in-memory database is H2. Here is some code that queries a database. More specifically the method getNumDistinctInColumn returns the number of distinct values in a specified column Continue Reading

Difference between Mockito and JMockit

Reading Time: 2 minutes A Brief analysis on Mockito And Jmockit Mockito JMockit 1. We can achieve Static method/constructor mocking by the combination of Mockito with Powermock. 1. Static method/constructor can be mocked directly in JMockit. 2. The Mockito API contains several inconsistencies in the syntax used for invocations to mocked methods. In the record phase, we have calls like when(mock.mockedMethod(args))… while in the verify phase this same call Continue Reading

JMockit: A beginner’s guide for Unit Testing

Reading Time: 5 minutes So we are following TDD, And we are working on unit test cases, And then we are stuck with mocking. Well this was the situation we faced. And while going through various API tools for mocking, we came through this amazing toolkit: JMockit. What is JMockit? JMockit is open source software licensed under the MIT License. It includes APIs for mocking, faking, and integration testing, Continue Reading

Unit Testing Of Kafka

Reading Time: 2 minutes Apache Kafka is a distributed publish-subscribe messaging system and a robust queue that can handle a high volume of data and enables you to pass messages from one end-point to another. Generally, data is published to topic via Producer API and  Consumers API consume data from subscribed topics. In this blog, we will see how to do unit testing of kafka. Unit testing your Kafka Continue Reading

TUTORIAL 3 :Using Tags in Cucumber

Reading Time: 2 minutes Hello Everyone, Now We will go through the TAGS in cucumber. You can read the previous post related to how to write a  Test Script in CUCUMBER : here In chapter of Feature if we have many Scenarios , to put them under a single umbrella, we use tags in our cucumber through which we will be able to generate reports for specific scenarios under the same Continue Reading

Tutorial 4: Background in CUCUMBER

Reading Time: < 1 minute Hello Everyone, In this Series we will try to understand that how to organize our scenarios using Background in CUCUMBER. When we write  multiple scenarios within single feature file with repeated steps. Starting steps which are common in all the scenarios can be pulled out into a Background test steps. Using Background in CUCUMBER, we can make the feature file more readable and less complex Continue Reading

Tutorial 2:Introduction on how to write a First Test Script in CUCUMBER

Reading Time: 3 minutes Hello Everyone, In this series of blog it’s time to look into how to write test cases in cucumber and execution of these test cases.Follow these Steps for the Same. You can read the previous post related to installation of cucumber: here Step 1: We will use the test package to define the location of features (Resources folder), step definitions (Java folder) and other files. Then Continue Reading

Tutorial 1:Cucumber with java maven project

Reading Time: 2 minutes Hi Folks. From this Blog we will start a series of cucumber BDD tool .Before go through the cucumber We should know how to integrate cucumber with java maven project. To run Cucumber test with Java, following are the steps. Step 1. Install Eclipse IDE -Make sure java should already be installed on your machine. Step 2. Then Create the New Project in Eclipse IDE by following steps: Continue Reading

Jmeter Load Testing:Send and Receive Email

Reading Time: 2 minutes Email notification, send email and retrieve email is a important part of any company or organisation so if you have your email server and want to know the email performance of email server then we can use the jmeter. Beauty of jmeter is it gives the power in your hand you can measure the performance of send email same as received email performance.So we can Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!