TestNG Framework Basics:TestNG is a test framework usually for large scale end-to-end testing needs. Also, it uses Java and test methods are written using @Test annotation. Furthermore, functional TestNG tests and suites are mainly driven using suite XML testng.xml file. TestNG handles many things needed for testcase automation and management. It acts like test engine […]
Selenium WebDriver Tutorial
In this post, we will discuss Java platform overview for testers. Often, novice testers get confused about the keywords of the Java Platform. Here, we will attempt to clear the confusion with a pictorial view of JDK, JRE and the JVM.
In this post, we will see how to update Eclipse TestNG Plug-in.Steps to update the plug-in are shown below:
In this post we will see how to read parameters from testng.xml and passed to test methods in java. We will see how to read “browser” parameter and instantiate the corresponding browser based on the parameter value.
In this section we will discuss some of the important TestNG annotations frequently used. @BeforeSuite This method will be executed before any tests declared in the testng.xml file . @BeforeTest This method will be executed before <test> section in testng.xml
Introduction to Selenium IDE : Selenium IDE is an integrated development environment for Selenium scripts. It’s a Firefox extension, and allows you to record, edit, and debug tests. Also, Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run […]
In this post, we will discuss test driven development approach. First of all, Test Driven Development (TDD) is a development methodology where developers create software by first writing a unit test, then writing the actual code to make the unit test pass. Also, the unit test can be viewed as a specification on how the […]
@Test is the basic annotation of TestNG framework. We can mark a class or a test with this annotation.Test annotation has a lot of attributes that we can use along with the annotation as shown in the below picture.
In this article, we would discuss TestNG exception test example. While writing automation tests using TestNG there could be scenarios where we need to verify that a particular exception is being thrown by the test method during execution.
We can disable test in TestNG by using the attribute “enabled=false” for the @Test method. We will see how to disable a test with a code example.