Showing
2 changed files
with
8 additions
and
0 deletions
... | ... | @@ -60,6 +60,7 @@ Resource playtender_claim |
60 | 60 | Log ${complaint} |
61 | 61 | ${complaint}= op_robot_tests.tests_files.service_keywords.Munchify arg=${complaint} |
62 | 62 | Log ${complaint} |
63 | + ${complaint} = playtender_service.split_complaintdata ${complaint} | |
63 | 64 | # Set To Dictionary ${USERS.users['${username}']} complaint_data=${complaint} |
64 | 65 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=123 |
65 | 66 | # Log ${USERS.users['playtender_Provider'].complaint_data['complaintID']} | ... | ... |
... | ... | @@ -429,6 +429,13 @@ def split_docname(str_value): |
429 | 429 | return str_value |
430 | 430 | |
431 | 431 | |
432 | +def split_complaintdata(str_value): | |
433 | + str_value = str_value.replace("u'data': [{", "") | |
434 | + str_value = str_value.replace("}]}", "}") | |
435 | + str_value = str_value.replace("u'", "'") | |
436 | + return str_value | |
437 | + | |
438 | + | |
432 | 439 | def doGetRequest(url, data): |
433 | 440 | r = requests.get(url, params=data) |
434 | 441 | response = {} | ... | ... |
Please
register
or
login
to post a comment