/
18.txt
18 lines (15 loc) · 1.29 KB
/
18.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
*** Settings ***
Library Collections
Library String
Library ../../src/RequestsLibrary/RequestsKeywords.py
Library OperatingSystem
Suite Teardown Delete All Sessions
*** Variables ***
${JSON_DATA} '{"file":{"path":"/logo1.png"},"token":"some-valid-oauth-token"}'
*** Test Cases ***
Encoding Error
Create Session httpbin http://httpbin.org
${headers}= Create Dictionary Content-Type application/json
Set Suite Variable ${data} { "elementToken":"token", "matchCriteria":[{"field":"name","dataType":"string","useOr":"false","fieldValue":"Operation check 07", "closeParen": "false", "openParen": "false", "operator": "equalTo"}], "account": { "annualRevenue": "456666", "name": "Account", "numberOfEmployees": "integer", "billingAddress": { "city": "Miami", "country": "US", "countyOrDistrict": "us or fl", "postalCode": "33131", "stateOrProvince": "florida", "street1": "Trade Center", "street2": "North Main rd" }, "number": "432", "industry": "Bank", "type": "string", "shippingAddress": { "city": "denver", "country": "us", "countyOrDistrict": "us or co", "postalCode": "80202", "stateOrProvince": "colorado", "street1": "Main street", "street2": "101 Avenu"}}}
${resp}= Post httpbin /post data=${data} headers=${headers}
Should Be Equal As Strings ${resp.status_code} 200