Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting this error when trying to create JSON in robot file #25

Open
akvinoth opened this issue Jan 14, 2020 · 1 comment
Open

getting this error when trying to create JSON in robot file #25

akvinoth opened this issue Jan 14, 2020 · 1 comment

Comments

@akvinoth
Copy link

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}

@TestUserRobot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants