Debomita Bhattacharjee has Published 863 Articles

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

674 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

771 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

3K+ 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

378 Views

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

How to execute a particular test method multiple times (say 5 times) inTestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

596 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

How will you run a prerequisite method and post condition method forevery test in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:47:26

334 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

How to use regular expressions with TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

1K+ 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

How to set priority to the test cases in TestNG?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 11-Jun-2020 12:43:32

655 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

Advertisements