Ashish Anand has Published 213 Articles

How to install TestNG plug-in for Eclipse?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 14:00:58

78 Views

TestNG is an open−source automation testing framework. It can be used along with build tool such as maven, Gradle, ant and even with snapshot. However, user can separately download the TestNG jar file and configure it with the project without using build tool. In this article, we will see how ... Read More

How to include two group names and create one group to run tests in TestNG?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 12:48:26

116 Views

TestNG supports to group the test cases based on similar functionality or uses. However, user may add multiple groups to single test. While running the group using syntax, TestNG runs all tests those are part of the group. It works as OR statement. Like if a test has 2 ... Read More

How to Ignore a Class in TestNG?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 12:46:15

264 Views

TestNG supports multiple ways to ignore all @Test execution. Based on requirement, user can ignore a complete test without executing it at all. TestNG supports following level to ignore all @Test: In a class In a particular package In a package and all of it’s child package ... Read More

How to Have Maven Surefire Execute Junit and TestNG Test Properly?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 12:43:12

206 Views

Maven is a project management and comprehension tool that provides a complete build lifecycle framework. User can automate the project's build infrastructure in almost no time as Maven uses a standard directory layout and a default build lifecycle To summarize, Maven simplifies and standardizes the project build process. It handles ... Read More

How to get current class name from BeforeClass in TestNG?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 12:15:08

275 Views

TestNG supports native dependency injection. It allows to declare additional parameters in methods. At the run time, TestNG automatically fill these parameters with right value. Following are few native dependencies in TestNG: ITestContext XmlTest Method ITestResult These dependencies help to retrieve the test class name depends on ... Read More

How to get current class name from AfterClass in TestNG?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 12:11:22

153 Views

TestNG supports native dependency injection. It allows to declare additional parameters in methods. At the run time, TestNG automatically fill these parameters with right value. Following are few native dependencies in TestNG: ITestContext XmlTest Method ITestResult These dependencies help to retrieve the test class name depends on ... Read More

How to generate test report in IntelliJ IDE?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 11:59:57

522 Views

TestNG allows to run the test suites from IntelliJ IDE as well as command line. When user run the testing.xml either from IDE or command line, TestNG generates a default report. It saves all reports and respective html files in Project −> test−output folder. If folder is not present, TestNG ... Read More

How to execute Testng and Maven without testng.xml file?

Ashish Anand

Ashish Anand

Updated on 17-Aug-2023 11:55:48

541 Views

TestNG is a testing framework and can use Maven as build tool. It helps to maintain dependencies and their version at one place in pom.xml Maven provides flexibility to run using surefire plugin. It allows user to run testng.xml as well as directly run a testng class without using a ... Read More

How to call testng.xml file from pom.xml in Maven?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 16:27:41

1K+ Views

Maven is a project management and comprehension tool that provides a complete build lifecycle framework. User can automate the project's build infrastructure in almost no time as Maven uses a standard directory layout and a default build lifecycle. In case of multiple environment, Maven can set-up the way to work ... Read More

How do I run classes with TestNG by wildcard in testng.xml?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 16:21:24

146 Views

testng.xml has a format as where we define what all test classes should be executed. There is no any specific way to provide regular expression in a class in . But there are work arounds those are useful to run specific @Test from a class. TestNG supports regular expression ... Read More

Previous 1 ... 4 5 6 7 8 ... 22 Next
Advertisements