Hello,
I would like to use arguments to create my test but I ask myself about the embedded keyword.
Here is my test with arguments “unembedded” :
*** Keywords ***
the partner is authenticated
[Arguments] ${partner} ${mdp}
Input Text id=username ${partner}
Input Password id=mdp ${mdp}
*** Tests Cases ***
Authentication
When the partner is authenticated PartnerName Partner Mdp
…
And I would like to use embedded keyword. How can I do ?
The username/mdp sould appeared clearly on the rapport ? Should I declare the variables on the “Variables” section ?
Thanks a lot !
No, need for that.
Here is my suggestion, untested:
*** Keywords ***
the partner, ${partner} is authenticated with password, ${mdp}
Input Text id=username ${partner}
Input Password id=mdp ${mdp}
*** Tests Cases ***
Authentication
When the partner, PartnerName is authenticated with password "Partner Mdp"
Hello,
Thanks for your answer.
Indeed, it works ! I didn’t know that I could put directly the argument’s value on the Keyword instead of as a argument of the keyword.
Thanks ! I’m going to continue to check this 
All users of Robot Framework, should read the User Guide, at least once!
And they can contribute to improve it, if they notice missing info
.
1 Like