Month: October 2018

Frequently Asked Java Program 23: Java Program to Remove Extra WhiteSpace Between Words In Given String

Problem Statement: Remove extra white spaces between words. Only one white space is allowed between words. If more than one, remove it. If given string has leading or trailing white spaces, remove them as well. Do not use trim method. Write your own logic. Example: You entered with spaces: ”       Make      […]

Frequently Asked Java Program 22: Java Program to Trim Whitespace From String Without Using Trim Method

Hello Folks, This interview question was asked in Deloitte.  Write a java program to Trim a given string without using inbuilt trim() method of String Class in Java. “trim()” method of String class trims leading and trailing whitespace/s of given string. It does not remove whitespace between words. We need to write logic to do so. […]

TestNG Tutorials 55: DataProvider in TestNG – Lazy Initialisation of DataProvider Method – Use of Iterator Return Type

Hello, DataProvider is an important functionality provided by TestNG to achieve Data driven testing or providing a set of different dataset to a method to execute on. We have seen DataProvider concept in details in previous posts. DataProvider may become nightmare if number of data (arguments) is more or it keeps changing or you do not […]

TestNG Tutorials 54: DataProvider in TestNG – Implementing Object Oriented Concept “Encapsulation” with DataProvider Method

Hello Folks, As part of ongoing series on DataProvider, we will learn “How does Encapsulation ( in OOPS concept) help in a DataProvider method? ” in this post. Encapsulation is an Object Oriented Programming concept which describes binding of related stuffs together under one roof. It makes easier to add , remove and modify members. For […]

TestNG Tutorials 53: DataProvider in TestNG – Is It Mandatory To Have Return Type as Object in DataProvider Method

Hello Guys, DataProvider method in TestNG is a way to provide test data to Test annotated methods in a TestNG class. A typical DataProvider method looks like as below:

You can see that return type of above DataProvider method is an Object array. Is it mandatory to have return type as Object only? Answer […]

Postman Tutorial Part 1 – Introduction of Postman Tool

Hello Folks, As part of our API Testing series, we will see “Introduction of Postman Tool” in this post. Postman is a complete API development environment/suite which supports every stage of the API lifecycle. Through design, testing and full production, Postman is there for faster, easier API development—without the chaos. Postman’s API Development Environment (ADE) consists of […]

API Testing Tutorial Part 12 – Tools For Manual & Automation API Testing

Hello Folks, As part of our API Testing series, we will see “Tools to test SOAP and REST APIs manually and automation”  in this post. There are many tools available for API testing in market with many advanced features. Some tools are free and some are paid. You get basic features when you use a free […]

API Testing Tutorial Part 11 – Difference Between SOAP and Rest Web Services or API

Hello Folks, As part of our API Testing series, we will see “Difference between SOAP and REST web services” in this post. Note: It is a frequently asked interview question in interviews. Designing a web services or API depends on two common implementation: SOAP – Simple Object Access Protocol REST – Representational State Transfer Protocol   […]

API Testing Tutorial Part 10 – Introduction of SOAP (Simple Object Access Protocol)

Hello Folks, As part of our API Testing series, we will see “Introduction of SOAP” in this post. SOAP stands for “Simple Object Access Protocol“. Protocol is a set of rules which are followed to achieve something or need to follow if performing specific things. For example: There are a set of rules defined for […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.