Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

October 2018 – Make Selenium Easy

Posted on 10/07/2019 By admin

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      […]

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. […]

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 […]

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 […]

Hello Folks, As part of our API Testing series, we will see “Sending first GET request in Postman”. First of all we need some APIs to test. There are many public APIs available which you can use for testing purpose. I will suggest you to register at below site to use free APIs for testing: GoRest […]

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:

// A data provider method with return type as 2D array @DataProvider(name = “DataContainer”) public Object[] myDataProvider() { return new Object[][] { { “Mukesh”, “Otwani”, “[email protected]” }, { “Amod”, “Mahajan”, “[email protected]” }, { “Animesh”, “Prashant”, “[email protected]” }, { “Ankur”, “Singh”, “[email protected]” }, { “Amritansh”, “Kumar”, “[email protected]” } }; }

// A data provider method with return type as 2D array @DataProvider(name = “DataContainer”) public Object[] myDataProvider() { { “Mukesh”, “Otwani”, “[email protected]” }, { “Amod”, “Mahajan”, “[email protected]” }, { “Animesh”, “Prashant”, “[email protected]” }, { “Ankur”, “Singh”, “[email protected]” }, { “Amritansh”, “Kumar”, “[email protected]” }

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 […]

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 […]

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 […]

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   […]

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 […]

Uncategorized

Post navigation

Previous Post: October 19, 2018 – Make Selenium Easy
Next Post: August 20, 2018 – Make Selenium Easy

Related Posts

April 7, 2017 – Make Selenium Easy Uncategorized
fluent wait in selenium Uncategorized
Git Tutorial 20 – Untracked File Vs Unstaged File Uncategorized
December 17, 2017 – Make Selenium Easy Uncategorized
IMG_6689[1] – Make Selenium Easy Uncategorized
REST Assured Tutorial 25 – How To Create a JSON Object Using Jackson API – ObjectMapper – createObjectNode() Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark