Debomita Bhattacharjee has Published 867 Articles

How to skip a particular test method from execution in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 13:10:21

4K+ Views

We can skip a particular test method from execution in Cucumber with the help of tagging of scenarios in the feature file.Examplefeature file.@Regression Feature: Invoice Testing @Smoke Scenario: Login Verification Given User is in Home Page @Payment Scenario: Payment Testing Given User is in Payment PageFeature file with scenarios having ... Read More

How to set the order of execution for test methods in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 13:07:55

4K+ Views

We can set the order of execution for test methods in Cucumber with the help of order keyword. Test methods are assigned with order in the step definition file.The test method with lower order executes first followed by the methods with higher orders.ExampleStep definition file.@Before (order = 1) public void ... Read More

What do you mean by Scenario Outline in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 13:06:11

412 Views

We use the Scenario Outline keyword in the feature file in Cucumber. If a particular scenario needs to be executed with more than a set of data in multiple combinations, then we use the Scenario Outline.The multiple data sets are represented in form of a table separated by (||) symbol ... Read More

What are the main file components in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 13:04:56

696 Views

The main file components in Cucumber are listed below −Feature file − This file has an extension of .feature. It comprises single or multiple test scenarios in plain text. All the scenarios are written with the keywords like Then, Given, When, And, But, Feature, Background and so on.ExampleFeature file.Feature: Login ... Read More

What are the advantages of using Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 13:01:11

2K+ Views

Some of the advantages of using Cucumber are listed below −Cucumber is an open source tool and does not require licensing.Cucumber can be easily configured with IDEs like Eclipse.Cucumber bridges the understanding and communication gaps among developers, testers, business analysts, customers and product owners.Cucumber enables the participation of business stakeholders ... Read More

How to combine multiple groups to single Test in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

1K+ Views

We can combine multiple groups to single Test in TestNG with the help of test group feature.ExampleTestng xml files with groups.                                                   ... Read More

What do you mean by Listeners in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:58:14

450 Views

TestNG Listeners have the capacity to listen to a specific incident. It is basically an interface that changes the nature of the system. TestNG Listeners are used for logging purposes and creating reports.There are two Listeners in Selenium. They are listed below −TestNG Listeners.WebDriver Listeners.TestNG can be configured with the ... Read More

How to achieve parallel execution in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

571 Views

We can achieve parallel execution with the help of TestNG. There is a parallel attribute in TestNG which is used for this implementation. The parallel execution in TestNG is associated with another attribute called thread-count.The parallel attribute can have the values listed below −Methods.Classes.InstancesTestsExampleTestng xml file.     ... Read More

What do you mean by timeOut in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

2K+ Views

The timeOut is a helper attribute in TestNG that can put an end to the execution of a test method if that method takes time beyond the timeOut duration. A timeOut time is set in milliseconds, after that the test method will be marked Failed.Example@Test public void ContactVerify(){    System.out.println("Contact ... Read More

How to incorporate and remove test methods from execution from acollection of test cases in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:51:12

255 Views

We can incorporate and remove test methods from execution with the help of tags in testng xml file.ExampleTestng xml file.                                                 ... Read More

Advertisements