After adding examples value, Undefined step reference problem in using cucumber in java. Before adding examples value it recognize.
Feature :
...
And a person <name>
Example:
|name|
|"firs" |
TestStep :
@And("^a person name(.*)$")
public void aPersonName(String name) {
After adding example values it should be changed as following:
@And("^a person (.*)$")
means "name" should be removed.
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.