Report for io.github.jarent.LogSMSSpec


Summary:

Created on Thu Jun 02 13:37:47 CDT 2016 by jacek
Executed features Failures Errors Skipped Success rate Time
4 1 0 0 75.0% 12.398 seconds
Log SMS API Specification

Features:

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:
  • Condition not satisfied:

    result.getInboundProperty('http.status') == 200
    | | |
    | 500 false

    org.mule.DefaultMuleMessage
    {
    id=1996a030-28f1-11e6-825b-b68c5b4e6f8d
    payload=org.glassfish.grizzly.utils.BufferInputStream
    correlationId=<not set>
    correlationGroup=-1
    correlationSeq=-1
    encoding=UTF-8
    exceptionPayload=<not set>

    Message properties:
    INVOCATION scoped properties:
    INBOUND scoped properties:
    connection=close
    content-length=38
    date=Thu, 02 Jun 2016 18:37:46 GMT
    http.reason=null (java.lang.NullPointerException).
    http.status=500
    mule_encoding=UTF-8
    OUTBOUND scoped properties:
    SESSION scoped properties:
    }