Executed features | Failures | Errors | Skipped | Success rate | Time |
---|---|---|---|---|---|
4 | 1 | 0 | 0 | 75.0% | 12.398 seconds |
Log SMS API Specification
should Reject Invalid Request
Return
|
|||||||||
Expect:
|
'400' http.status response code and { "exception" : {"code": "INVALID_REQUEST", "message": "Bad request" }} as a result
|
||||||||
Where:
|
request is {"phone":"6309999999"}
|
||||||||
should Fail When Invalid WhoId
Return
|
|||||||||
Expect:
|
'500' http.status response code and { "message": "Failed because of Name ID: id value of incorrect type: 00000" } as a result
|
||||||||
Where:
|
request is
{"LogSMSRequest" :
{
"occuredAt": "October 12, 2015 at 08:05PM",
"whoId": "00000",
"text":"Hello World!"
}
}
|
||||||||
should Fail When Salesforce Fault
Return
|
|||||||||
Given:
|
Exception thrown from Saleforce create call
|
||||||||
When:
|
Valid request is sent
|
||||||||
Then:
|
Expect 500 Internal Server Error status code
|
||||||||
And:
|
Salesforce exception code
|
||||||||
And:
|
Salesforce exception message returned in the response
|
||||||||
should Success For Valid Request
Return
|
|||||||||
Given:
|
'newTaskId' returned from SalesForce create call
|
||||||||
And:
|
Valid request
|
||||||||
When:
|
Request is sent
|
||||||||
Then:
|
Expect 200 http response status code
|
||||||||
And:
|
'newTaskId' returned in the response
|
||||||||
The following problems occurred:
|