Reputation: 1175
I want to write keyword with infix arguments in python, is it possible?
*** Keywords ***
Set ${var} on device
set samething on device samething=${var}
Can I write Set ${var} on device in python?
Upvotes: 1
Views: 76
Reputation: 1175
from robot.api.deco import keyword
@keyword('Add ${quantity:\d+} Copies Of ${item} To Cart')
def add_copies_to_cart(quantity, item):
# ...
*** Test Cases ***
My Test
Add 7 Copies Of Coffee To Cart
Upvotes: 1