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