Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step implementation with parameters #104

Open
David-Grigoryan opened this issue May 17, 2018 · 2 comments
Open

Step implementation with parameters #104

David-Grigoryan opened this issue May 17, 2018 · 2 comments

Comments

@David-Grigoryan
Copy link

I have Then step in my .feature file
Then I have entered valid <username> and <password>
And also examples provided like:

Examples:
        |      username    | password   |
        | "[email protected]" | "password" |

I stuck on swift implementation part and unable to write any correct swift code as I can't find any example or documentation. The simple steps without parameters are working as they should but I'm unable to match step implementation with step definition and even pass actual arguments. Everything I found is usual steps without parameters or it's obj-c code. If anyone can help me with step definition in Swift for this particular step I'll be more than happy.

@jerseysu
Copy link

jerseysu commented May 17, 2018

@David-Grigoryan
How about write scenarios outline as follow?

Examples:
        |   username      | password       |
        |  [email protected] | xxxxxx         |

@kk143g
Copy link

kk143g commented Aug 21, 2020

You don't need to add commas around your identifier

Examples:
| username | password | username field | password field |
| [email protected] | password | username_textfield | password_textfield |

And then use like this OR use as per your step defination
And i type "<username>" into "<username field>"
And i type "<password>" into "<password field>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants