简体   繁体   中英

How to mention Boolean value in 'Examples' in feature file of cucumber and make sure it creates a method in java?

I am trying a negative scenario for susbcription name(string) for different data type which is boolean. Examples:

|Subscription Name|Ext Id|Owner Firstname|Owner Lastname|

|true             |"423" |"abc"          |"xyz"         |

First, I never put quotes around items in the examples table. I put quotes around the item in the step definition.

When I search for "<Ext Id>"

As for the Subscription name element, you can convert that within your step definition using How to convert String object to Boolean Object?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM