mercredi 19 septembre 2018

Katalon Studio: Multiple keywords mapped in one

we're trying to evaluate some automation tools right now. We are currently looking at Katalon Studio. And sadly we didn't find a way to accomplish a very simple task: Mapping multiple keywords into one.

Let's say we have the following keywords for login in to our web interface:

click_on_username
send_keys "user1"
click_on_password
send_keys "password1"

So let's imagine I have multiple times (e.g. tests) I need to log in. As I dont want to be repetitive: How can I map those four keywords into just one, for example in a "login_with_credentials "user1, password1" without coding everything again, but just by simply bind those keywords together in a hierachial way.

Let's say:

login_with_credentials "user1, password1" -> click_on_username
                                             send_keys "user1"
                                             click_on_password
                                             send_keys "password

How do I do that?

Aucun commentaire:

Enregistrer un commentaire