Ashish Anand has Published 213 Articles

Advantages of using TestNG with Cucumber

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 14:49:34

288 Views

Testing is the process of checking the functionality of an application to ensure it works as per requirements. Unit testing comes into picture at the developer level where adequate measures are taken to test every single entity (class or method) to ensure the final product meets the requirements. What is ... Read More

Automating Functional Tests with TestNG

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 14:48:20

102 Views

TestNG is a powerful testing framework, an enhanced version of JUnit which was in use for a long time before TestNG came into existence. NG stands for 'Next Generation'. TestNG framework provides the following features − Annotations help us organize the tests easily. Flexible test configuration. Test cases can ... Read More

How to Use Beanshell Script in TestNG?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 13:15:53

192 Views

TestNG supports to group the test cases based on similar functionality or uses. Sometimes user has customized conditions to pick classes/methods/groups at run time based on conditions and use cases. TestNG supports simple frequently use scenarios but covering all expects are unnecessary. For Example, user may add multiple groups ... Read More

How to check reports created by TestNG?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 13:14:20

63 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 creates ... Read More

How to create a TestNG file in IntelliJ IDE?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 13:09:51

530 Views

TestNG file is a simple java class. IntelliJ supports TestNG class as simple java class. To create a TestNG class, user should create a java class first and then enter the desired TestNG annotations and respective code to execute. In this article, let’s follow the steps to create a TestNG ... Read More

How to continue test execution after assertion failed in TestNG?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 12:50:28

1K+ Views

A TestNG class can have different tests like test1, test2, test3 etc. There could be some failure while running the test suite and user may get failures in between of @Test methods. Once a test method gets failed, he wants to continue the execution so all failures can be found ... Read More

How to continue execution when assertion is failed in TestNG?

Ashish Anand

Ashish Anand

Updated on 16-Aug-2023 12:46:14

592 Views

A TestNG class can have different tests like test1, test2, test3 etc. There could be some failure while running the test suite and user may get failures in between of @Test methods. Once a test method gets failed, he wants to continue the execution so all failures can be found ... Read More

How does TestNG invoke a test method using multiple threads?

Ashish Anand

Ashish Anand

Updated on 09-Mar-2022 11:44:46

3K+ Views

TestNG supports multi-threading, i.e., a @Test method can be invoked multiple times in parallel. A test method should be invoked from multiple threads so that multiple invocation is also required. If we want to run a single @Test at multi-thread, it is of no use. Therefore, multi-thread is useful if ... Read More

How to disable a TestNG test based on a condition?

Ashish Anand

Ashish Anand

Updated on 09-Mar-2022 11:43:08

1K+ Views

TestNG supports multiple ways to skip or ignore a @Test execution. Based on the 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 ... Read More

How to get the result status from TestNG in @AfterMethod?

Ashish Anand

Ashish Anand

Updated on 09-Mar-2022 11:40:01

2K+ 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:ITestContextXmlTestMethodITestResultYou can use these dependencies to get the execution status of a test in TestNG.Usually, @AfterMethod ... Read More

Previous 1 ... 6 7 8 9 10 ... 22 Next
Advertisements