Understand Severity And Priority Of A Defect In Software Testing

Hello Folks, In this post, we will see an important concept of manual testing which is also a frequently asked interview question for both freshers and experienced. We will understand below points: What do you understand by severity and priority of a defect? Differentiate between severity and priority. Types of severity and priority. Who decides … Continue reading Understand Severity And Priority Of A Defect In Software Testing

TestNG Tutorials 14: Can We Overload Methods In TestNG Class?

Hello Folks, Method overloading is an important concept in Java. Can we create overloaded method in TestNG class. Let's give it a try. Overloaded TestNG class: Create a testng.xml and run it: Output: You will get above exception in console because TestNG does not allow you to put any type of parameters to a TestNG … Continue reading TestNG Tutorials 14: Can We Overload Methods In TestNG Class?

TestNG Tutorials 13: Can An Interface have TestNG Methods? If Yes, How To Execute Them?

Hello Folks, We talked about TestNG class in previous post. Can we declare and define TestNG annotated methods in an Interface? We will learn now. As per Java 8, An interface can have abstract methods, default methods and static methods. Let's create an Interface with TestNG annotated abstract methods and observe what happens: An interface … Continue reading TestNG Tutorials 13: Can An Interface have TestNG Methods? If Yes, How To Execute Them?

TestNG Tutorials 12: How To Run Inner TestNG Class From TestNG.xml ?

Hello Folks, We will see an interesting topic in this post. We can create an inner TestNG class as well like any normal inner class in Java. An example is as below: Let's try to generate a testng.xml for this: TestNG includes outer and inner class names default. That's good. Happy. Now run above testng.xml: … Continue reading TestNG Tutorials 12: How To Run Inner TestNG Class From TestNG.xml ?

TestNG Tutorials 11: How To Run TestNG class From Sub-package Using TestNG.xml?

Hello Folks, Java allows you to group similar types of classes, interfaces and sub packages. You can create nested packages means package inside package which is termed as sub-packages. Let's create a below hierarchy of package: Create a Package "MainPackage". Create a class "MainPackageClass"  in "MainPackage" Create a sub package "SubPackage" inside "MainPackage". Create a class … Continue reading TestNG Tutorials 11: How To Run TestNG class From Sub-package Using TestNG.xml?

TestNG Tutorials 10: What Is Package Tag And How To Use In TestNG.XML?

Hello Folks, When we generate a testng.xml for TestNG classes of a package, we see all class names (with at least one @Test annotated method) of that package under "class" tag wrapped by <classes> tag. We can see an example below: When we have multiple packages in a project , testng.xml includes all TestNG classes from … Continue reading TestNG Tutorials 10: What Is Package Tag And How To Use In TestNG.XML?