RoboMachine icon indicating copy to clipboard operation
RoboMachine copied to clipboard

getting this error when trying to create JSON in robot file

Open akvinoth opened this issue 5 years ago • 1 comments

Exception at line 20 Expected Re:('\w+( \w+)*') line: "${NAME} any of ${NAME} ${NAME1} ${NAME2} ${NAME3} ${NAME4} ${NAME5}"

Code below :+1: *** 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}

akvinoth avatar Jan 14 '20 21:01 akvinoth

I had similar issue . Any luck with resolution ? Expected {Re:(' *\n’) ^ LineEnd} line: “${POD} any of TEST”

TestUserRobot avatar Mar 25 '22 15:03 TestUserRobot