I access login home page, then it call the following javascript function

I have the following javascript that submits login

<script>
        var screen_height = screen.height - 55; 
        var screen_width = (screen.width/screen.height >
2)?screen.width/2:screen.width - 5;     
        ivoswin =
window.open('../main/ivos.jsp?user_login=xx','ivos_16B3F4E69EC76ABF2B67','dependent=no,directories=no,location=no,menubar=no,resizable=yes,screenX=0,screenY=0,scrollbars=no,toolbar=no,titlebar=yes,height='
+ screen_height + ',width=' + (screen_width - 5));

Problem:  I am getting the following error

<script>var rtn=new Array();rtn['status']=-1;alert('An exception occurred
while performing the selected task. Please contact the system administrator
for more details.');</script>

Here is Jmeter Information
http://localhost/ivosperf/servlet/LoginServlet

POST data:
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="action"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

processlogin
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="framename"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit


-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="load_time"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

1207266522963
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="forward_page"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

null
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="guest"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit


-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="user_login"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

user1
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="user_password"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

testpassword
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="submit"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Login
-----------------------------7d159c1302d0y0--


[no cookies]

Request Headers:
Connection: keep-alive
Content-Length: 1518
Content-Type: multipart/form-data;
boundary=---------------------------7d159c1302d0y0


Response

<script>var rtn=new Array();rtn['status']=-1;alert('An exception occurred
while performing the selected task. Please contact the system administrator
for more details.');</script>


Sample Result

Thread Name: Thread Group 1-1
Sample Start: 2008-04-04 08:20:36 PDT
Load time: 1031
Latency: 1031
Size in bytes: 181
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

Response headers:
HTTP/1.1 200 OK
Date: Fri, 04 Apr 2008 15:20:36 GMT
Content-Type: text/html;charset=ISO-8859-1
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked


jsandhu2204 wrote:
> 
> I recorded Jmeter script to simply login and logout to our application
> which displays login page, if you login in then it pops another window
> with the main page.  
> 
> I recored script using Proxy localhost 8080.  It worked fine.  Then I
> turned off proxy and then try to run script, it is does not log me in.
> 
> It is give error that user or login is stale.
> 
> Any ideas.
> 
> Jaspal
> 

-- 
View this message in context: 
http://www.nabble.com/Jmeter-Recorded-Script-does-not-work-tp16476126p16492451.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to