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
How to create response json block based on the API result which is in json format. Tried many ways from the doc I have seen, still get failure. My tavern test:
# ===================================================================# New Business Partner (BP) and full-setup, similar to full-setup.rtt# ===================================================================# Testing deployment, 220221, 10:47includes:
- !includeconfig/common.yamltest_name: Tavern POC, SAS-2279, New Business Partner/Customer, full setup, and NSQ# Additional keys in JSON and headers OKstrict:
- headers:off
- json:off#- response:off Does not workmarks:
# For Shipwire Api calls, hostname on which the test is run is needed
- usefixtures:
- get_randomstr_len1
- get_randomstr_len10
- get_host_name# Create SAP customer using endpoint which uses Recurring Billing APIsstages:
# SignIn
- name: Signon Using the Newly Created Business Partner/Customer using SW APIrequest:
url: http://merchant.developer.corp.shipwire.com/data/authmethod: GETjson:
user: aee99fbea4d14b619fe5929ae118595f+fakedev_shipwire_net+fakedev@shipwire.netpass: Ingram?123headers:
Content-Type: application/jsonresponse:
status_code: [200]json:
code: !anystrmessage: !anydicturl: !anystrresult: !anydict state: !anylist#headers:#cookies:# - PHPSESSID# set_cookie: # PHPSESSID: !anystr# content-type: application/json#- __swCustomerPreferences
How to create response json block based on the API result which is in json format. Tried many ways from the doc I have seen, still get failure.
My tavern test:
The response, got 200:
The text was updated successfully, but these errors were encountered: