title: asp.net login testing with jmeter
body: <p>I am a newbie in jmeter tool. I want to test login to an asp.net website. But I was not successful after 2 days of search through the internet.</p>
  
  <p>I am listing below the steps that I followed:</p>
  
  <ol>
  <li>Add an <code>HTTP Request Defaults</code>.</li>
  <li>Add an <code>HTTP Cookie Manager</code>.</li>
  <li>Add two <code>Regular Expression Extractor</code> for <code>EVENTVALIDATION</code> and <code>VIEWSTATE</code>.</li>
  <li><p>Add HTTP URL Re-writing Modifier with <code>ASP.NET_SessionId</code> (checked the <code>Path Extension</code> and <code>Cache Session Id</code>).</p>
  
  <p><img src="https://i.stack.imgur.com/WJYLo.png" alt="enter image description here"></p></li>
  <li><p>There are two pages, one is <code>Login Get Page</code> and another is <code>Login POST Page</code>. In Login Post Page, I've added the following parameters:</p>
  
  <ul>
  <li>UserName : <code>realUser</code></li>
  <li>Password : <code>realPassword</code></li>
  <li>__VIEWSTATE : <code>name="__EVENTVALIDATION"  id="__EVENTVALIDATION" value="(.+?)"</code></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/veVaC.png" alt="enter image description here"></p>
  
  <ul>
  <li>__EVENTVALIDATION : <code>name="__VIEWSTATE" id="__VIEWSTATE" value="(.+?)"</code></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/jNDzl.png" alt="enter image description here"></p>
  
  <ul>
  <li>LoginButton : <code>Log+In</code></li>
  </ul></li>
  <li><p>Add a <code>View Results Tree</code>.</p></li>
  </ol>
  
  <p>I've explored the following links but not successful.<br></p>
  
  <ul>
  <li><a href="http://blog.technicallyworks.com/2009/06/load-testing-aspnet-with-jmeter.html" rel="nofollow noreferrer">load-testing-aspnet-with-jmeter.html</a></li>
  <li><a href="http://blog.technicallyworks.com/2009/06/load-testing-aspnet-sites-with-jmeter.html" rel="nofollow noreferrer">load-testing-aspnet-sites-with-jmeter.html</a></li>
  <li><a href="http://wiki.apache.org/jmeter/JMeterTesting/ASPNETViewState" rel="nofollow noreferrer">ASPNETViewState</a></li>
  <li><a href="http://www.qadit.com/blog/?p=1684" rel="nofollow noreferrer">Load Testing ASP.NET Web Applications using Jmeter</a></li>
  </ul>
  
  <p><strong>Current Output:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/My2nN.png" alt="Current Output"></p>
  
  <p>What am I missing?<br>
  Any suggestion please.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Test plan tree structure:</p>
  
  <p><img src="https://i.stack.imgur.com/0oShS.png" alt="Test Plan Tree Structure"></p>
  
  <p><strong>Login Details:</strong>
  <img src="https://i.stack.imgur.com/KWRkw.png" alt="enter image description here"></p>
  
  <p><strong>Login Request Tab:</strong>
  <img src="https://i.stack.imgur.com/48H95.png" alt="enter image description here"></p>