- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Ashish Anand has Published 213 Articles
Ashish Anand
707 Views
TestNG supports a lot of assertions. It has the org.testng.Assert class that extends the Java object class java.lang.object.Whenever there is a failure, a user would want to get a detailed failure report in order to perform a root cause analysis. But, sometimes the displayed failure information is not sufficient and ... Read More
Ashish Anand
9K+ Views
testNG.xml is very flexible and it can work as a harness file to execute the test cases. It keeps the development and execution separate from each other. A user can develop "N" number of test cases in testNG but can run a limited number of test methods based on the ... Read More
Ashish Anand
2K+ Views
Group test is a new innovative feature in TestNG, which doesn't exist in JUnit framework. It permits you to dispatch methods into proper portions and perform sophisticated groupings of test methods.Not only can you declare those methods that belong to groups, but you can also specify groups that contain other ... Read More
Ashish Anand
351 Views
TestNG allows to run the test suites from IntelliJ IDE as well as from the command line. When user runs the testNG.xml either from an IDE or the command line, TestNG generates a default report. It saves all the reports and respective HTML files in the Project->test-output folder. If this ... Read More
Ashish Anand
1K+ Views
TestNG supports native dependency injection. It allows to declare additional parameters in methods. At the runtime, TestNG automatically fills these parameters with the right values. Here is a list of some native dependencies in TestNG:ITestContextXmlTestMethodITestResultThese dependencies help to retrieve the names of test methods depending on where they are called. ... Read More
Ashish Anand
5K+ Views
TestNG supports multiple ways to skip or ignore a @Test execution. Based on requirement, a user can skip a complete test without executing it at all or skip a test based on a specific condition. If the condition meets at the time of execution, it skips the remaining code in ... Read More
Ashish Anand
683 Views
testNG.xml has a format where we define all the test classes that should be executed. There is no any specific way to provide regular expression in a class in . But there are workarounds of course which are quite useful in case you want to run a specific @Test ... Read More
Ashish Anand
2K+ Views
TestNG supports a lot of assertions. It has the org.testng.Assert class, which extends the Java object class java.lang.object.To compare two lists specifically, TestNG's Assert class has a method known as assertEquals(Object actual, Object expected) and there is an extended version of this method with customized message as assertEquals(Object actual, Object ... Read More
Ashish Anand
2K+ Views
TestNG supports multiple ways to ignore all @Test execution. If required, a user can ignore a complete test without executing it at all. TestNG supports ignoring all @Test at the following levels −In a classIn a particular packageIn a package and all of its child packageThe user has to use ... Read More
Ashish Anand
2K+ Views
A TestNG class can have various TestNG methods such as @BeforeTest, @AfterTest, @BeforeSuite, @BeforeClass, @BeforeMethod, @test, etc. As per the execution order, @BeforeTest executes first and after that @BeforeClass does. However, if there are multiple TestNG classes and multiple Tests inside each class, the behaviour of these methods is noticeable.@BeforeTestThis ... Read More
To Continue Learning Please Login
Login with Google