jmeter - Getting 404 error after sending username and password as post requests -


i have jmeter script main purpose of script post username , password read excel sheet. have excel sheet saved in e:\ drive of local system , sending post requests reading username , password excel getting issue in response received.please me.

response data:

<!doctype html> <html>     <head>         <title>the resource cannot found.</title>         <meta name="viewport" content="width=device-width" />         <style>          body {font-family:"verdana";font-weight:normal;font-size: .7em;color:black;}           p {font-family:"verdana";font-weight:normal;color:black;margin-top: -5px}          b {font-family:"verdana";font-weight:bold;color:black;margin-top: -5px}          h1 { font-family:"verdana";font-weight:normal;font-size:18pt;color:red }          h2 { font-family:"verdana";font-weight:normal;font-size:14pt;color:maroon }          pre {font-family:"consolas","lucida console",monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}          .marker {font-weight: bold; color: black;text-decoration: none;}          .version {color: gray;}          .error {margin-bottom: 10px;}          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }          @media screen , (max-width: 639px) {           pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }          }          @media screen , (max-width: 479px) {           pre { width: 280px; }          }         </style>     </head>      <body bgcolor="white">              <span><h1>server error in '/' application.<hr width=100% size=1 color=silver></h1>              <h2> <i>the resource cannot found.</i> </h2></span>              <font face="arial, helvetica, geneva, sunsans-regular, sans-serif ">              <b> description: </b>http 404. resource looking (or 1 of dependencies) have been removed, had name changed, or temporarily unavailable. &nbsp;please review following url , make sure spelled correctly.             <br><br>              <b> requested url: </b>/account/authenticate/<br><br>      </body> </html> 

request:-

post http://pulsedindev.halcyontek.com/account/authenticate/  post data: devicetype=5&password=halcyon12%24&username=test04.pharma%40gmail.com  [no cookies]  request headers: connection: keep-alive accept-language: en-us,en;q=0.5 accept: application/json, text/plain, */* user-agent: mozilla/5.0 (windows nt 6.1; rv:43.0) gecko/20100101 firefox/43.0 referer: http://pulsedindev.halcyontek.com/ accept-encoding: gzip, deflate content-type: application/x-www-form-urlencoded content-length: 69 host: pulsedindev.halcyontek.com 

i found issue test - server expecting get, not post passing username , password. bad practice suggest post , on https.

how did figure out

  1. i used seleniumide + jmeter recorder simulate traffic , record selenium , jmeter
  2. i played test in jmeter , there no issue.

if want here copy of selenium recorded test plan , simple jmeter test plan site.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -