You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** 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}
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}
The text was updated successfully, but these errors were encountered: