Make Selenium Easy – Page 25

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, … Continue reading TestNG Tutorials 30: Groups Attribute at Class Level In TestNG

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 … Continue reading TestNG Tutorials 29: Grouping Configuration Methods in TestNG

Hello Folks, In this post, we will learn about grouping of test methods in TestNG. “Group” is meant for categorisation of similar items. In a supermarket, you see how they separate different types of vegetables to make it easier for customers to locate them (As shown in above pic). Similar concept we apply for test … Continue reading TestNG Tutorials 28: Grouping Test Methods In TestNG

Hello Folks, In last post we learn usage of of alwaysRun Attribute With Test Method of TestNG. In this post, we will see usage of alwaysRun attribute with configuration method in TestNG. What is a Configuration Method in TestNG? When we mark a method as @BeforeXXXX or @AfterXXXX, that method is called as Configuration method. Example: … Continue reading TestNG Tutorials 27: Usage of alwaysRun Attribute With Configuration Methods of TestNG

Hello Folks, In this post we will learn about “alwaysRun” attribute and its usage with @Test annotated method in TestNG. “alwaysRun” attribute can be used with Configuration methods(BeforeXXXX and @AfterXXXX) and Test methods(@Test). TestNG documentation defines alwaysRun attribute as: For configuration methods: For before methods (beforeSuite, beforeTest, beforeTestClass and beforeTestMethod, but not beforeGroups): If set to … Continue reading TestNG Tutorials 26: Understand Usage of alwaysRun Attribute With Test Method of TestNG

Hello Folks, In last post, we have seen available annotation in TestNG. Beginner and experienced professionals are always confused in understanding order of execution of annotated methods and usage. In this post, I will try to help you in understanding this concept better. I will recommend to read this post first which explains hierarchy of … Continue reading TestNG Tutorials 25: Relation Between TestNG Annotations and TestNG XML

Hello Folks, In this post, we will see below topics: What is White box testing? What is Black box testing? What are differences between White box and Black box testing? There are many testing techniques which are broadly categorised into two: Static Testing and Dynamic Testing. Dynamic testing is again subdivided into two major categories: … Continue reading Black Box Testing and White Box Testing : : Everything You Need To Know

Hello Folks, As part of learning TestNG step by step, I will list all available annotations of TestNG in this post and will see each and every annotations in details in later posts. As per TestNG documentation, TestNG provides you below annotations: @BeforeSuite @AfterSuite @BeforeTest @AfterTest @BeforeGroups @AfterGroups @BeforeClass @AfterClass @BeforeMethod @AfterMethod @DataProvider @Factory @Listeners … Continue reading TestNG Tutorials 24: Annotations In TestNG – A Quick Guide

Hello Folks, We learn about priority of test methods in a TestNG class in this post. TestNG Tutorials 22: @Test Annotation – Games Of Priority Of Methods In TestNG Do you know that TestNG will execute methods in unexpected order if you provide duplicate priorities and can create a nightmare for you. We will see … Continue reading TestNG Tutorials 23: @Test Annotation – Don’t Confuse TestNG With Duplicate Priorities

Hello Folks, We have seen how a TestNG class executes methods when we do not provide any order to methods. You can refer those posts here: Default Priority in a TestNG Class Default Priority in an Inherited Class But, you may require to execute methods in a certain order. Consider a scenario where you need … Continue reading TestNG Tutorials 22: @Test Annotation – Games Of Priority Of Methods In TestNG