francisco_garci
10 years agoOccasional Contributor
Getting SOAPAction error
Hi, I'm trying to execute methods from our web services using javascript, but I'm getting the error on the response: <script>// function writeContent(){ var c = document.getElementById("conta...
- 11 years agoHope i got it.
As i mentioned earlier, use script assertion.
headers["#status#"] returns List. Looks you are asserting with string.
So, you may use value coming from excel file for variable 'excelExpectedValue'def headers = messageExchange.getResponseHeaders()
log.info headers["#status#"]
assert ['HTTP/1.1 200 OK'] == headers["#status#"]
//log.info messageExchange.getResponseContent()
headers["#status#"] instanceof List
def actualStatus = headers["#status#"].get(0)
def excelExpectedValue = '200 OK'
def expectedStatus = 'HTTP/1.1 '+excelExpectedValue
assert expectedStatus == actualStatus