[Hye Friends] Can anybody tell how can we pass our Login Credentials [i.e Username and Password] to the Login Page and see the Next Page, which is the Home Page.
With thanks Neeraj Chowdhury Neeraj C wrote: > > [Hye Sebb] > > We have a Login Page // > User needs to enter his Credentials and after successful Login "Home" Page > is displayed // > How can we Login the User Credentials and see the Home Page // > > I have used "Save Responses to file" and it clearly showed that while I am > requesting the Home Page it is still on the Login Page // > > Please advice // > > With thanks > Neeraj Chowdhury > > > > Neeraj C wrote: >> >> [Hye Sebb] >> >> The 500 Error is gone after I placed the "Http Cookie Manger" under the >> "Test Plan Thread Group". >> But the Response data under the "View Results Tree" is same for all the >> three Requests I tried till now, the Requests are mentioned as follows : >> >> 1>>> GET http://IP:Port/WMS/login.do [For Login Page] >> >> >> 2>>> GET >> http://IP:Port/WMS/homepage.do?displayMsg=home&selectedWCSMenuItem=home >> [For Home Page] >> >> >> 3>>> GET >> http://IP:Port/WMS/document.do?displayMsg=document&selectedWCSMenuItem=document >> [For Documents Page] >> >> and I got the following response data for all the above three Requests: >> >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> >> <html lang="en"> >> <head> >> <title>Login Page</title> >> <base href="http://IP:Port/WMS/jsp/common/login.jsp"> >> <link rel="stylesheet" type="text/css" >> href="../../res/css/sc_styles.css"> >> <script src="../../res/js/conference.js"></script> >> >> <script> >> var qs = new Query_String(); >> >> function actionModifier(form) >> { >> >> if(mandatoryChk()) >> { >> if(qs.getFieldValue("confURL")!=undefined && >> qs.getFieldValue("confURL")!="undefined" && >> qs.getFieldValue("confURL")!=null) >> { >> form.action += "?confURL=" + >> qs.getFieldValue("confURL") + "&confId=" >> + qs.getFieldValue("confId"); >> } >> >> return true; >> } >> return false; >> } >> >> function trim(stringToTrim) { >> return stringToTrim.replace(/^\s+|\s+$/g,""); >> } >> >> function mandatoryChk() >> { >> if(trim(document.getElementById('username').value)== "" || >> trim(document.getElementById('password').value)== "") >> { >> alert("User name and Password are mandatory"); >> return false; >> } >> else >> return true; >> } >> </script> >> </head> >> >> <body> >> >> <form name="loginForm" method="post" action="/WMS/logon.do" >> onsubmit="if(actionModifier(this)) return true; else return false;"> >> >> >> <input type="hidden" name="red5ip" value="IP"> >> <input type="hidden" name="protocol" value="rtmp >> "> >> >> >> >> <table border="0" width="100%" height="100%" class="grpTable"> >> <tbody> >> <tr> >> <td width="50%"> >> <table align="center" border="0"> >> <tr> >> <td height="30"> >> For existing users >> </td> >> </tr> >> <tr> >> <td> >> <table> >> <tr> >> <td >> class="body"> >> >> Username >> </td> >> <td> >> >> <input type="text" name="username" id="username"> >> </td> >> </tr> >> <tr> >> <td >> class="body"> >> >> Password >> </td> >> <td> >> >> <input type="password" name="password" id="password"> >> </td> >> </tr> >> </table> >> </td> >> </tr> >> >> <tr> >> <td align="right"> >> <table> >> <tr> >> <td> >> </td> >> <td> >> >> <input type="submit" name="login" value=" Login " >> class="buttonEdit" > >> </td> >> </tr> >> </table> >> </td> >> </tr> >> <tr> >> <td> >> >> </td> >> </tr> >> </table> >> </td> >> <td width="5%"> >> <table> >> <tr> >> <td> >> >> ../../res/img/verticalbar.gif >> </td> >> </tr> >> </table> >> </td> >> <td width="45%"> >> <table> >> <tr> >> <td> >> <table border="0"> >> <tr height="30"> >> <td> >> >> For new users >> </td> >> </tr> >> <tr> >> <td> >> >> Create your ID today. >> </td> >> </tr> >> <tr> >> <td >> class="helpTextSmall"> >> >> By creating ID you will have access >> </td> >> </tr> >> <tr> >> <td >> class="helpTextSmall"> >> >> to many products and services provided by >> >> </td> >> </tr> >> <tr> >> <td >> class="helpTextSmall"> >> >> Its free. >> </td> >> </tr> >> <tr >> align="right"> >> <td> >> >> <input type="button" name="proceed" value=" Proceed " >> class="buttonEdit" >> onClick="window.open('/WMS/jsp/common/underConstruction.jsp','_parent')"> >> </td> >> </tr> >> </table> >> </td> >> </tr> >> </table> >> </td> >> >> </tr> >> </tbody> >> </table> >> </form> >> </body> >> </html> >> >> >> How is this possible // >> Am I doing anything Wrong // >> Is there any specic way to find out which page is getting hit on sending >> a Request // >> >> With thanks >> Neeraj Chowdhury >> >> >> >> >> sebb-2 wrote: >>> >>> On 30/05/07, Neeraj C <[EMAIL PROTECTED]> wrote: >>>> >>>> [Hye Sebb] >>>> >>>> There is no problem in the application when we access it directly >>>> through >>>> navigation // >>> >>> IMO, the server should not return a 500, regardless of what the client >>> is. >>> But a lot of applications make assumptions that are not always valid. >>> >>>> Under View Results Tree it is showing the following >>>> >>>> [Sample Result] >>>> Thread Name: Thread Group 1-2 >>>> Sample Start: Wed May 30 17:15:19 IST 2007 >>>> Load time: 15 >>>> HTTP response code: 500 >>>> HTTP response message: Internal Server Error >>>> >>>> HTTP response headers: >>>> HTTP/1.1 500 Internal Server Error >>>> Server: Apache-Coyote/1.1 >>>> Content-Type: text/html;charset=utf-8 >>>> Content-Length: 1521 >>>> Date: Wed, 30 May 2007 11:41:48 GMT >>>> Connection: close >>>> >>>> >>>> What could be the Problem // >>> >>> What does the Response Data say? >>> >>>> With thanks >>>> Neeraj Chowdhury >>>> >>>> sebb-2 wrote: >>>> > >>>> > On 30/05/07, Neeraj C <[EMAIL PROTECTED]> wrote: >>>> >> >>>> >> [Hye Sebb] >>>> >> >>>> >> Thanks for the Reply // >>>> >> The Application works fine with IE and Mozilla Firefox, so as the >>>> login >>>> >> Page >>>> >> // >>>> >> There are no issues there // >>>> > >>>> > The fact that the server responds with a 500 error means that it is >>>> > faulty. This should not happen in well-written applications - except >>>> > perhaps under heavy load. >>>> > >>>> >> I didn't understand about Splitting the URL into different fields // >>>> > >>>> > The URL needs to be split into: >>>> > >>>> > Server Name >>>> > Port (if not default) >>>> > Protocol (if not http) >>>> > Path >>>> > Parameters >>>> > >>>> > The parameters can be left as part of the Path if you want. >>>> > >>>> > However, this is probably not the cause here - one would expect a >>>> > different error. >>>> > >>>> >> I mentioned the following Path to Test the Home Page for >>>> Performance: >>>> >> >>>> >> /WMS/homepage.do?displayMsg=home&selectedWCSMenuItem=home >>>> >> >>>> >> Is this the wrong way // >>>> > >>>> > It's a valid part of a URL, but whether it is valid for your >>>> > application is another matter. >>>> > >>>> >> Please advice // >>>> > >>>> > Do any URLs work in JMeter? >>>> > Or is it only the application that fails? >>>> > >>>> > What does the response say? (Add a Tree View Listener) >>>> > >>>> >> With thanks >>>> >> Neeraj Chowdhury >>>> >> >>>> >> >>>> >> sebb-2 wrote: >>>> >> > >>>> >> > Make sure that the URL has been correctly split into the different >>>> >> fields. >>>> >> > >>>> >> > Does the login page require a particular browser, or does it work >>>> with >>>> >> > all browsers? >>>> >> > >>>> >> > S. >>>> >> > On 29/05/07, Neeraj C <[EMAIL PROTECTED]> wrote: >>>> >> >> >>>> >> >> Hye Friends >>>> >> >> >>>> >> >> There is no problems when I test the Login page of our Web >>>> >> Application. >>>> >> >> But when I place the Path of an internal "Home Page" or any other >>>> >> >> internal >>>> >> >> page I get the following error in the Jmeter.log file // >>>> >> >> >>>> >> >> ERROR - jmeter.protocol.http.sampler.HTTPSampler: readResponse: >>>> >> >> java.io.IOException: Server returned HTTP response code: 500 for >>>> URL: >>>> >> >> http://IP:Port/Home Page Url // >>>> >> >> >>>> >> >> Can anybody providee me with the solution so that I can test the >>>> >> >> Application >>>> >> >> // >>>> >> >> >>>> >> >> >>>> >> >> With thanks >>>> >> >> Neeraj Chowdhry >>>> >> >> -- >>>> >> >> View this message in context: >>>> >> >> >>>> >> >>>> http://www.nabble.com/Server-returned-HTTP-response-code%3A-500-for-URL----tf3833153.html#a10851892 >>>> >> >> Sent from the JMeter - User mailing list archive at Nabble.com. >>>> >> >> >>>> >> >> >>>> >> >> >>>> --------------------------------------------------------------------- >>>> >> >> To unsubscribe, e-mail: >>>> [EMAIL PROTECTED] >>>> >> >> For additional commands, e-mail: >>>> [EMAIL PROTECTED] >>>> >> >> >>>> >> >> >>>> >> > >>>> >> > >>>> --------------------------------------------------------------------- >>>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> >> > For additional commands, e-mail: >>>> [EMAIL PROTECTED] >>>> >> > >>>> >> > >>>> >> > >>>> >> >>>> >> -- >>>> >> View this message in context: >>>> >> >>>> http://www.nabble.com/Server-returned-HTTP-response-code%3A-500-for-URL----tf3833153.html#a10867421 >>>> >> Sent from the JMeter - User mailing list archive at Nabble.com. >>>> >> >>>> >> >>>> >> >>>> --------------------------------------------------------------------- >>>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >> >>>> >> >>>> > >>>> > --------------------------------------------------------------------- >>>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> > For additional commands, e-mail: [EMAIL PROTECTED] >>>> > >>>> > >>>> > >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Server-returned-HTTP-response-code%3A-500-for-URL----tf3833153.html#a10873105 >>>> Sent from the JMeter - User mailing list archive at Nabble.com. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Server-returned-HTTP-response-code%3A-500-for-URL----tf3833153.html#a10907752 Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

