我有两个步骤,例如:
When the user launches site with the base configuration with url parameter set to http://www.youtube.com
When the user launches site with the base configuration
这两个步骤是在两个不同的场景中。在运行自动化时,我遇到以下错误:
Caused by: cucumber.runtime.AmbiguousStepDefinitionsException.
When the user launches site with the base configuration with url parameter set to http://www.youtube.com(android-config.feature:37) matches more than one step definition:
the user launches site with the base configuration in ConfigGlue.launches the base configuration()
the user launches site with the base configuration with url parameter set to(.*) in ConfigGlue.the user launches the cnfiguration(String)
如何对这两个步骤使用相同的步骤定义。