LeetCode Java Programs
Skip to content Problem Statement https://leetcode.com/problems/ransom-note/ Given an arbitrary ransom note string and another string containing letters from all the magazines, write a…
And Keep It That Way
Skip to content Problem Statement https://leetcode.com/problems/ransom-note/ Given an arbitrary ransom note string and another string containing letters from all the magazines, write a…
Hello Programmers, An interview candidate was asked to write java code to find the length of given string WITHOUT USING LENGTH METHOD in Capgemini. In this post, I will find length of string without using Length method but using some other method. :-p There is another method in String class called lastIndexOf(). LastIndexOf() method: As…
Read More “Java Programs 16: Java Program to Find Length of String Without Using Length Method” »
I remember when I used to generate some random data with alphabets and numbers which were meaningless words like “Bjhet”, “Hyiue” etc. Generating some random data helps you to eliminate boilerplate codes or unnecessary headaches of maintaining data. For example:- If you need to register a user which requires first name, last name, age, address,…
Read More “Javafaker API – Generate Real-Time Fake Data – Faker Class” »
Hello Guys, I am going to explain the usage of a method named string-length() from XPath 1.0. This method is very useful to write advanced and dynamic locators. XPath 1.0 provides an overloaded method named string-length():- string-length(string) – returns length of given string string-length() – returns the length of the string specified by the context…
Read More “XPath Method- string-length() – Usage in Locating Element” »
An Introduction to Selenium – A set of Tools Architecture of Selenium Webdriver http://makeseleniumeasy.com/2017/03/21/installation-of-java-eclipse-and-selenium/ http://makeseleniumeasy.com/2017/03/24/setup-of-selenium-project-and-how-to-open-a-chrome-browser/ How To Launch Firefox Browser in Selenium WebDriver – Java Launch of Edge and Internet Explorer browser in Selenium 3 Hierarchy of Classes & Interfaces of WebDriver Interface in Selenium WebDriver All about WebDriver: Methods And Its Usages Why syntax…
Hello Folks, In this post we will learn below topics: 1. How to skip a test conditionally? 2. How conditionally skipped test is reported in TestNG report? 3. How to report conditionally skipped test case as failed in TestNG report instead of skipped? 4. What is SkipException class? 5. What is use of isSkip() method?…
Read More “TestNG Tutorials 41: Skipping a Test Conditionally in TestNG” »
As a part of End to End REST Assured Tutorial , in this post We will learn about Interface in Java. I will strongly recommended you to go through the topic Abstraction – Hide the implementation before continuing this post. Let’s start with a real time example. You would be reading this post on a…
Read More “REST Assured Tutorial 6 – Interface in OOPS – Implement As You Wish” »
Skip to content Introduction As a part of the End to End REST Assured Tutorial, in this post, we will learn to learn more JsonPath… Introduction As a part of the End to End REST Assured Tutorial, in this post, we will learn to write JsonPath for…
Hello Folks, We have written so many automated scripts in previous posts. We wrote those scripts inside a main method. To run that particular script, we ran main method of that particular class. Let’s assume that we have 100 test scenarios to automate and we developed 100 test scripts using typical style of writing java…
Read More “TestNG Tutorials 1: Why Do We Require TestNG In Selenium?” »
Sometimes I think that a Tester must need to know to code to write better automated test scripts. We have a good number of tools that require a good amount of coding such as Selenium, Protractor, Cypress, Rest Assured, etc. There are some tools that require less coding but for better assertions and extension of…