This post is continuation of the earlier post here: TestNG @Test Annotation in Detail – 1 invocationCount The number of times this method should be invoked.The default value is 1. So both the below code snippets are equivalent.
Selenium WebDriver Tutorial
While writing tests we may want to know that everything is as expected. ( testdata , conditions , navigation flows etc ). We may have checkpoints at some specific points in our tests. TestNG framework has in-built provision to work with asserts. Assert class has lot of static assertion methods mostly with the following natural […]
In this post, we will go through TestNG Groups. In TestNG framework, we can group multiple test methods into one group. We can execute the test methods that belong to the group. For example, we can have the following groups and segregate the @Test methods like:
In this post we will discuss commonly used testing terms that will be used by QA on day to day basis during work. Testing: Testing is executing the software application with an intention of finding a bug. Applying “testing sense” while executing the application with a high probability of uncovering a defect. It is the […]
TestNG dependencies allows us to specify dependency methods or dependency groups for test methods.In this post will cover dependency on methods.
In this post we will go through a sample TestNG suite file with Custom Listener.Also, we will discuss about a sample test method that opens Firefox browser and searches Bing search engine.
In this post, we will discuss more details of handling multiple exceptions and other examples with examples.
In this post, we will learn some code examples about TestNG priority and how to set to @Test methods.By default TestNG executes the tests in order of the names and not in the order you write test methods in a class. To demonstrate it we will see code examples.
In this post, we will see how to customize SoftAssert in TestNG Framework. Sometimes, we might write more than one assert in a @Test method and want to make all the asserts run even if one or more fails. This can be achieved using SoftAssert in TestNG ( SoftAssert in TestNG Framework ). However, we […]
In this post we will go through the differences between findElements and findElement methods of Selenium Webdriver.This question is often asked in the testing interviews for webdriver automation testers. Both the methods use By The locating mechanism