Debomita Bhattacharjee has Published 872 Answers

How does the execution of a particular test method depend on other test methods in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:29:24

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

What is the purpose of the testng.xml file?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:25:18

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

Name the various annotations available in TestNG.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:23:48

The various annotations available in TestNG are listed below −@Test − This is used before every test method in the java class file.@BeforeSuite − This is used to run a particular test method before all the test methods.@AfterSuite − This is used to run a particular test method after all ... Read More

Explain modular automation framework.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:22:24

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

State the differences between TDD and BDD.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:21:31

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

Explain Test Driven Development Framework.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:19:52

Test Driven Development framework is the methodology implemented from a developer’s mindset. Here, a developer writes test cases covering each and every functionalities of the application with the intention of verifying if the code is proper.Once these test cases get failed, the developers’ refactor the code in order to make ... Read More

Explain Behavior Driven Framework.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:18:52

Behavior driven framework takes the inputs from all the stakeholders in the project like the developers, testers, product owners, managers, customers and business analysts. The idea is to bring each of the members of the project in the same understanding.Behavior driven framework works on collaboration and coordination among everyone in ... Read More

State differences between Data Driven and Keyword Driven Framework.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:17:23

The differences between Data Driven and Keyword Driven framework are described below.In data driven testing, we can run our tests on multiple data in multiple combinations with the help of parameterization. Here the data is treated as an input to the test script logic. Each data set can be treated ... Read More

Explain data driven framework.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:16:20

Data driven framework is used for segregating test script logic from the test data. In this framework, we can run our test scripts using multiple sets of data in multiple combinations with the help of parameterization. The test data is maintained in separate files like excel, access, txt and so ... Read More

Explain Keyword driven framework.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:15:04

Keyword driven framework is also known as table driven framework. Here we have a table where we describe the keywords or actions for the methods that have to be executed.Automation test scripts are developed based on the keywords or actions mentioned in excel. The automation testers need to extend the ... Read More

Advertisements