Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Make Selenium Easy – Page 24

Posted on 02/18/2020 By admin

Hello Folks, This is also an interview question. These questions are asked to know how much you can think on a scenario. Question was, “Can a test method return a value? If yes, how can you use it?”. Yes, a @Test annotated method can return a value but that method will not be considered as … Continue reading TestNG Tutorials 36: Can a Test Method Return a Value in TestNG?

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 … Continue reading Java Programs 16: Java Program to Find Length of String Without Using Length Method

Hello Folks, It is frequently asked interview question to write a java program to print fibonacci number at any given position. I have already explained about program logics to print fibonacci series using both recursive and iterative model. Java program to print fibonacci series using iteration logic java program to print fibonacci series using recursion … Continue reading Java Programs 15: Java Program to Print Fibonacci Series at Given Position Using Recursion

Hello Folks, Before continuing this post, you must go through below posts: Integration of TestNG and Beanshell How To Pass a Group Name to be Run at Runtime in TestNG XML Using Beanshell Problem statement: You have created so many test methods with different groups. You do not need to run all group every time. … Continue reading Advanced TestNG Tutorials 35: How To Pass Multiple Group Names to be Run at Runtime in TestNG XML Using Beanshell

Hello Folks, In last post, we have seen how integration of beanshell and TestNg can help us to achieve “AND” and “OR” conditions with group names to be executed. Problem statement: You have created so many test methods with different groups. You do not need to run all group every time. You need to include … Continue reading Advanced TestNG Tutorials 34: How To Pass a Group Name to be Run at Runtime in TestNG XML Using Beanshell

Hello Folks, This is a frequently asked programming interview question to print a fibonacci series of given length. In previous post, we have seen printing fibonacci series using iterative logic with collection concept. This will be acceptable for freshers but not for experienced, interviewer expects recursion logic.  This post explains in details how recursion takes … Continue reading Java Programs 14: Java Program to Print Fibonacci Series of Given Length Using Recursion

Hello Folks, This is a frequently asked programming interview question to print a fibonacci series of given length. Fibonacci series: Wikipedia defines it very well. The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding … Continue reading Java Programs 13: Java Program to Print Fibonacci Series of Given Length Using Collection

Hello Folks, We have learnt how can we customise testng xml to run test methods belonging to multiple groups. Let’s consider a new scenario: Suppose There are three methods M1 ( belongs to group WIndows), M2(belongs to group Windows and Linux) and M3(belongs to group Windows ,Linux and Mac). You want to run methods which … Continue reading Advanced TestNG Tutorials 33: Integration and Usage of BeanShell In TestNG XML

Hello Folks, In last post, we learnt about Multiple groups names foe test and configuration methods. When we assign a method to multiple groups, you find difficulties when you want to run methods belong to only particular groups or to only some groups. For example: Suppose There are three methods M1 ( belongs to G1), … Continue reading TestNG Tutorials 32: Customizing TestNG xml For Methods Belong to Multiple Group Names

Hello Folks, In previous posts, we have learnt about: Grouping test methods in TestNG Grouping configuration methods in TestNG We know grouping is categorization of test scripts. Let’s ask a question to yourself: Is it possible that a test script may fall in more than one categories? Obviously Yes. So how can we achieve same … Continue reading TestNG Tutorials 31: Multiple Groups Name For Test And Configuration Methods in TestNG

Uncategorized

Post navigation

Previous Post: Make Selenium Easy – Page 11
Next Post: Make Selenium Easy – Page 9

Related Posts

Java Interview Question 4 – What is HashCode of an Empty String? Uncategorized
Postman Tutorial Part 24 -Set, Get and Unset Global & Environment Variables in Postman Scripts – Make Selenium Easy Uncategorized
Make Selenium Easy – Page 2 of 57 – Uncategorized
Hierarchy of Selenium Classes and Interfaces – Make Selenium Easy Uncategorized
July 2, 2017 – Make Selenium Easy Uncategorized
image – Make Selenium Easy 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