- 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
Debomita Bhattacharjee has Published 867 Articles
Debomita Bhattacharjee
525 Views
We can execute a particular test method multiple times (say 5 times) with the help of the invocationCount helper attribute.Example@Test public void PaymentDetails(){ System.out.println("Payment details validation is successful”); } @Test(invocationCount=5) public void LoginAdmin(){ System.out.println("Login in admin is successful”); } @Test public void LeaseDetails(){ System.out.println("Lease details verification is ... Read More
Debomita Bhattacharjee
220 Views
We can run a prerequisite method and post condition method for every test in TestNG with the help of @BeforeMethod and @AfterMethod annotations.Example@BeforeMethod public void prerequisite(){ System.out.println("Run before every tests"); } @AfterMethod public void postcondition(){ System.out.println("Run after every tests "); } @Test public void loanPay(){ System.out.println("Loan pay ... Read More
Debomita Bhattacharjee
904 Views
We use regular expressions in TestNG to work with a group of test methods that are named with a certain pattern.ExampleTestng xml file. ... Read More
Debomita Bhattacharjee
523 Views
We can set priority for test cases in order of their execution, by giving priority to each test method. A test method having lower priority runs first then the test methods with higher priority are executed.Example@Test (priority = 1) public void verifyTravel(){ System.out.println("Travel history successful "); } @Test (priority ... Read More
Debomita Bhattacharjee
941 Views
We can run a particular set of test cases by including a group of test cases in the execution.ExampleTestng xml files with groups. ... Read More
Debomita Bhattacharjee
282 Views
To overlook a particular test method from execution in TestNG enabled helper attribute is used. This attribute has to be set to false to overlook a test method from execution.ExampleJava class file.@Test(enabled=false) public void verifyRepay(){ System.out.println("Repayment successful"); } @Test public void Login(){ System.out.println("Login is successful "); } @Test ... Read More
Debomita Bhattacharjee
226 Views
The execution of a particular test method can be made dependent on another test method with the help of dependsOnMethods helper attribute.Example@Test(dependsOnMethods={"Payment"}) public void verifyLoan(){ System.out.println("Loan payment successful"); } @Test public void Payment(){ System.out.println("Payment successful "); } @Test public verifyTransaction(){ System.out.println ("Transaction verification"); }Here in the Java ... Read More
Debomita Bhattacharjee
1K+ Views
The testng.xml file has the numerous uses as listed below −Test cases are executed in groups.Test methods can be included or excluded in the execution.The execution of multiple test cases from multiple java class files can be triggered.Comprises names of the folder, class, method.Capable of triggering parallel execution.Test methods belonging ... Read More
Debomita Bhattacharjee
2K+ Views
In a modular automation framework, test scripts are developed on the basis of modules or clusters by dividing the entire application into several small and self-sufficient blocks. Thus individual test scripts belonging to a particular module or cluster are created.These scripts belonging to these isolated modules can be integrated and ... Read More
Debomita Bhattacharjee
909 Views
The differences between Test Driven Development (TDD) and Behavior Driven Framework (BDD) are listed below −Sl No.TDDBDD1This is driven by the developers.This is driven by developers, QAs, product owners, customers and business analysts.2This is mostly focused on the coding implementation of the functionalities of the application.This is mostly focused on ... Read More
To Continue Learning Please Login
Login with Google