How to pass argument in keyword Robot framework same Cucumber

Hi everyone,
In Cucumber, i have step below:
When I input “abc@gmail.com” to username and “12345” to password
So i want to convert it to robotframework below : I input ${username} to username and ${password} to password.
But it seems that params can only be placed at the end of the keyword.
is there any way to set param as i want??

Hello,

It is actually possible to embed arguments within keywords to achieve something similar to your Cucumber test, see this section of the user guide:

https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#embedded-arguments-matching-wrong-values

Laurent

1 Like

thanks so much,Laurent :grinning_face_with_smiling_eyes:

1 Like