For the feature
Feature: One
Scenario Outline: Validate
Given ["<a>"|"<b>"|"<c>"|"<d>"|"<e>"|"<f>"|"<g>"|"<h>"|"<i>"|"<j>"|"<k>"|"<l>"]
Examples:
| a | b | c | d | e | f | g | h | i | j | k | l |
....
Auto generated step is
@Given("^\\[\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"|\"(.*?)\"\\]$")
public void (String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8, String arg9, String arg10, String arg11, String arg12) throws Throwable {
...
}
but this method is not recognized. In IntelliJ, error Variable 'String' is already defined in scope
for args (2,4,6,8,10 and 12) is thrown. Even spaces
in method definiton (e.g. space between void and (
throws identifier expected
. Whats wrong with this method?.