Skip to main content
added tags
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below:

assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how? Thanks!!

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below:

assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how? Thanks!!

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below:

assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how?

added 6 characters in body
Source Link
alecxe
  • 11.4k
  • 11
  • 51
  • 107

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below: assertTrue(selenium.isTextPresent("Name of the Customer"));

assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how? Thanks!!

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below: assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how? Thanks!!

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below:

assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how? Thanks!!

Source Link
Rose
  • 111
  • 2
  • 2
  • 10

How to write Assertion in Selenium Cucumber BDD?

I want to use assertion in cucumber to verify my test output, can some please write me an example how to do the same in cucumber.

As I googled, I found that people use junit/TestNG assertions like below: assertTrue(selenium.isTextPresent("Name of the Customer"));

Can I use the same assertions in cucumber test and how? Thanks!!