September 2018 – Make Selenium Easy

Hello Folks, In this post we will going to learn an advanced concept of xpath: – normalize-space method.  Before we discuss about method normalize-space, we will see why do we require that. Consider below html codes:    Make       Selenium      Easy (Inner text has more white spaces among words than normal.)  It […]

Hello Folks, You must have seen a web page which contains many divisions or multiple web elements and similar web elements in multiple divisions. Creating a web element repository for such pages is difficult in some cases which are given below: If you have many web elements in a page, Selecting desired web elements while […]

Hello Guys, Now we have good understanding of DataProviders in TestNG from previous articles. If you have not read my previous posts on DataProvider, you can go through them below: Why do you need DataProvider? How does DataProvider work? DataProvider with 2D array You can notice in all previous posts that I kept DataProvider methods […]

Hello Folks, In last post, we have seen Basics of DataProvider in TestNG and its working logic with one dimensional array. In this post I will explain the working logic of a DataProvider method which returns a two dimensional array. I see people are always confused with the usage of a DataProvider method which returns […]

This programming interview question was asked in Yodlee.  Problem: Write a Java program to find and print all special characters with their positions in a user input string. Example: Input string: Make%Selenium$Easy# Output: % at position 5. $ at position 14. # at position 19. Total special characters found:3 Solution: We will use regex to […]

Hello Folks, In last post, we have seen Why do we need to use DataProvider in TestNG. Now we will see a serie of posts on DataProvider. What is DataProvider? DataProvider is an annotation to mark a method as data provider which provides data as an array of array of Objects which can be used […]

Hello Folks, TestNG provides a beautiful functionality to parameterized our configuration and test methods so that we can execute the same test script with different set of data. To make a method (Configuration and Test) parameterized , we use “Parameters” annotation. If we make a method parameterized, we must need to pass parameters values from […]

Hello Folks, As part of our API Testing series, we will see “Difference between REST and RESTFul API” in this post. This is frequently asked interview question in interviews and I see people are confused with terms. We will learn about them in a very easy way. You must go through with basics of REST […]

Hello Folks, As part of our API Testing series, we will see below topics in this post: What is REST? Six principles of REST.   What is REST? REST stands for REpresentational State Transfer. It is an architectural style that defines a set of constraints to be used for creating web services or API. Web services which are […]

Hello Folks, As part of our API Testing series, we will see some important HTTP status codes in this post. This topic is very important for API testing. It is a frequently asked interview question as well. “Status” is what for everyone cares as it says what is output either negative or positive or partially. […]