Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pass a list to python library in Robot Framework

I need to pass a list to Python library from Robot Framework test case. I've checked manual List variables syntax but it is working not how I'm expecting. Attempt to create list

@{filters}    Test_one    Test_two

gives to different arguments but my python library expects one. Attempt to pass list of one element by

@{filters}    Test_one

Gives list

['T', 'e', 's', 't', '_', 'o', 'n', 'e']

The desired result inside python lib should like this:

['Test_one', 'Test_two']

What have I missed? Please help me to solve the issue.

like image 890
r_spb Avatar asked May 17 '26 15:05

r_spb


1 Answers

So list variable should be created with @{} but passing to library should be done as scalar ${}. Original answer is here .

like image 91
r_spb Avatar answered May 19 '26 03:05

r_spb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!