getting this error when trying to create JSON in robot file
akvinoth opened this issue ยท 1 comments
Exception at line 20
Expected Re:('\w+( \w+)*')
line: "${NAME} any of ${NAME} ${NAME1} ${NAME2} ${NAME3} ${NAME4} ${NAME5}"
Code below ๐
*** Settings ***
Library Collections
Library json
*** Variables ***
${NAME} XXXX
${ID} YYYY
${NAME1} QQQQ
${ID1} WWWW
${NAME2} EEEE
${ID2} RRRR
${NAME3} TTTT
${ID3} YYYY
${NAME4} UUUU
${ID4} IIII
${NAME5} OOOO
${ID5} PPPP
*** Machine ***
${NAME} any of ${NAME} ${NAME1} ${NAME2} ${NAME3} ${NAME4} ${NAME5}
${ID} any of ${ID} ${ID1} ${ID2} ${ID3} ${ID4} ${ID5}
*** Test Cases ***
Test Create Json
${req_dict} Create Dictionary name=${NAME} id=${ID}
${req_json} Json.Dumps ${req_dict}
Log To Console *** Test Create Json Result ***
Log To Console ${req_json}
*** Keywords ***
Prepare Json Keyword
[Arguments] @{args}
${req_dict} Create Dictionary @{args}
${req_json} Json.Dumps ${req_dict}
[Return] ${req_json}
I had similar issue . Any luck with resolution ?
Expected {Re:(' *\nโ) ^ LineEnd}
line: โ${POD} any of TESTโ