Deloitte_Consul
13 years agoContributor
Request working with Jmeter but failing in soapUI
Hi All,
We are testing an API which convert a text message into an audio file.
Through soapUI, we are getting "internal server error" but while executing same test case through Jmeter it is working fine and in Jmeter, audio file automatically gets saved in <Jmeter_Home>, where would soapUI save the audio file?
Please find below soapUI request and response.
Req:
POST https://apimatrix.tfoundry.com/a1/speec ... xttospeech HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E; Zune 4.7; USPortal)
Authorization: Bearer sb1kiyzefzb0tmuaqrwub1r7zsieexob
Content-Type: application/xml
Accept-Language: en-US
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*, audio/amr-wb
Connection: keep-alive
Hello Deepak, How are you?
Resp:
HTTP/1.1 500 Internal Server Error
Server: nginx/1.0.5
Date: Thu, 21 Feb 2013 13:47:42 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 500 Internal Server Error
Content-Length: 728
X-Request-Id: b76647ab9233b77bf4c82bdb4cd7e19c
X-Runtime: 0.093350
X-Rack-Cache: invalidate, pass
<!DOCTYPE html>
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
</div>
</body>
</html>
Jmeter Request:
POST https://api.foundry.att.com/a1/speechalpha/texttospeech
POST data:
Hello Deepak, How are you?
[no cookies]
Request Headers:
Accept-Language: en-US
X-Arg: VoiceName= crystal,ClientApp=NoteTaker,ClientVersion=1.0.1
Content-Length: 26
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E; Zune 4.7; USPortal)
Connection: keep-alive
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Content-Type: text/plain
Pragma: no-cache
Any help will be anticipated. Thanks in advance.
Regards
Deepak Rawat
We are testing an API which convert a text message into an audio file.
Through soapUI, we are getting "internal server error" but while executing same test case through Jmeter it is working fine and in Jmeter, audio file automatically gets saved in <Jmeter_Home>, where would soapUI save the audio file?
Please find below soapUI request and response.
Req:
POST https://apimatrix.tfoundry.com/a1/speec ... xttospeech HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E; Zune 4.7; USPortal)
Authorization: Bearer sb1kiyzefzb0tmuaqrwub1r7zsieexob
Content-Type: application/xml
Accept-Language: en-US
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*, audio/amr-wb
Connection: keep-alive
Hello Deepak, How are you?
Resp:
HTTP/1.1 500 Internal Server Error
Server: nginx/1.0.5
Date: Thu, 21 Feb 2013 13:47:42 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 500 Internal Server Error
Content-Length: 728
X-Request-Id: b76647ab9233b77bf4c82bdb4cd7e19c
X-Runtime: 0.093350
X-Rack-Cache: invalidate, pass
<!DOCTYPE html>
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
</div>
</body>
</html>
Jmeter Request:
POST https://api.foundry.att.com/a1/speechalpha/texttospeech
POST data:
Hello Deepak, How are you?
[no cookies]
Request Headers:
Accept-Language: en-US
X-Arg: VoiceName= crystal,ClientApp=NoteTaker,ClientVersion=1.0.1
Content-Length: 26
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E; Zune 4.7; USPortal)
Connection: keep-alive
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Content-Type: text/plain
Pragma: no-cache
Any help will be anticipated. Thanks in advance.
Regards
Deepak Rawat