Snooz82 / robotframework-datadriver

Library to provide Data-Driven testing with CSV tables to Robot Framework
Apache License 2.0
131 stars 37 forks source link

Escaping commas in dictionary variables #69

Closed chaosseed closed 2 years ago

chaosseed commented 2 years ago

Hello. Could someone please tell me how to escape commas in dict variables?

I have dict varibale in xlsx file like below:

&{expected_message} code=1,message=Date is a required field, but was not found...

Already tried adding \,\ or \\ before comma yet still getting error like

Invalid dictionary variable item "but was not found..."

Thank you

Snooz82 commented 2 years ago

It is not designed to escape comma. I think you have to work with two columns.

${expected_message.code};${expected_message.message}
1;Date is a required field, but was not found...
chaosseed commented 2 years ago

It is not designed to escape comma. I think you have to work with two columns.

${expected_message.code};${expected_message.message}
1;Date is a required field, but was not found...

Thank you for the clarification. I will update my sheet then.