July 2018 – Page 2 – Make Selenium Easy
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 […]
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. […]
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 […]
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 […]
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 […]
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 […]
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), […]
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 […]
Hello Folks, In previous post, we learnt about basics of group concepts in TestNG and how to use with @Test annotated methods. Before continuing this post, I will advise you to go through this post first: @Test annotation at class level in TestNG Suppose if you need to write multiple @Test annotated methods in a class, […]
Hello Folks, In previous post, we learnt about basics of group concepts in TestNG and how to use with @Test annotated methods. In this method we will see how can we use grouping concept with configuration methods. Below are the configuration methods provided by TestNG: @BeforeSuite @AfterSuite @BeforeTest @AfterTest @BeforeGroups @AfterGroups @BeforeClass @AfterClass @BeforeMethod @AfterMethod […]