Note that there are some explanatory texts on larger screens.

plurals
  1. POJmeter - why linux gives different answer than windows?
    primarykey
    data
    text
    <p>I wrote a test plan on Windows 7. I remotely started a test on two machines, both Windows Vista. A problem came up when I tried do same thing on Linux - I used the same test plan. </p> <p>I can login a group of users and simulate their behaviour, but when I try to log them out nothing happens.</p> <p>On windows, they are logout but linux gives me empty response data. Listeners show green status so I'm rather confused to what's going on. Should I change something in properties or is it problem with my script?</p> <p>EDIT:</p> <p>Script:</p> <ol> <li>Login user using authorization data. every user gets different JSESSIONID.</li> <li>Simulate user behaviour using Access Log Sampler.</li> <li>Logout user.</li> </ol> <p>On Windows, everything works fine login and logout. Listener shows: sample result, request data and response data for every sample.</p> <p>On linux response data is blank for every sample.</p> <p>Examples of Sample result for <a href="http://www.screencast.com/t/ibqFk9xRKuux" rel="nofollow">windows</a> and <a href="http://www.screencast.com/t/sA4Ogosg" rel="nofollow">linux</a></p> <p>Request Data is the same for both.</p> <p>Response data for linux is blank.</p> <p>EDIT2:</p> <ul> <li>Test Plan <ul> <li>setUP Thread Group <ul> <li>Clean cache server</li> <li>Clean file with JSESSIONID</li> </ul></li> <li>Thread Group <ul> <li>HTTP Request Defaults</li> <li>Login (once only controller)</li> <li>Acces Log Sampler</li> <li>using beanshell script i save JSESSIONID (cookie variable) to file</li> <li>Cookie Manager</li> </ul></li> <li>tearDown Thread Group <ul> <li>HTTP Request Defaults</li> <li>read JSESSIONID from file</li> <li>logout all users</li> <li>Cookie Manager </li> </ul></li> <li>result tree</li> <li>Summary report</li> </ul></li> </ul> <p>Logout must be performed after all samples from access log are done. That's why i save JSESSIONID to file to share same session between thread group.</p> <p>Ok somehow I eliminate error with response. Apparently there was a problem with java version on linux server.</p> <p>Current problem is that when i start remotely script on Linux it doesn't follow redirect. The same script on win XP or Vista follow redirects and user is logout. Exp.</p> <pre><code>GET connection.rpc?logout=D5D076123FD6CCBF137FE1673F531006 </code></pre> <p>On Windows I get two redirections and user is logout. </p> <pre><code>Thread Name: Logout 1-1 Sample Start: 2013-05-18 13:50:52 CEST Load time: 15 Latency: 13 Size in bytes: 777 Headers size in bytes: 573 Body size in bytes: 204 Sample Count: 1 Error Count: 0 Response code: 200 Response message: OK Response headers: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-wkpl-server-name: OnlineRC2 Content-Type: text/html;charset=UTF-8 Content-Language: en-US Content-Length: 204 Date: Sat, 18 May 2013 11:50:43 GMT HTTPSampleResult fields: ContentType: text/html;charset=UTF-8 DataEncoding: UTF-8 Thread Name: Sample Start: 2013-05-18 13:50:52 CEST Load time: 13 Latency: 13 Size in bytes: 374 Headers size in bytes: 374 Body size in bytes: 0 Sample Count: 1 Error Count: 0 Response code: 302 Response message: Moved Temporarily Response headers: HTTP/1.1 302 Moved Temporarily Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=6D3F7A3774ABB1411A5F8E1744004A71; Path=/WKPLOnline CacheControl: no-cache Pragma: no-cache, no-store Expires: -1 Location: connection.rpc?logout=BE8C04D8538641675A8BFD2490CDDD4D Content-Length: 0 Date: Sat, 18 May 2013 11:50:43 GMT Thread Name: Logout 1-1 HTTPSampleResult fields: ContentType: DataEncoding: null Sample Start: 2013-05-18 13:50:52 CEST Load time: 2 Latency: 2 Size in bytes: 403 Headers size in bytes: 199 Body size in bytes: 204 Sample Count: 1 Error Count: 0 Response code: 200 Response message: OK Response headers: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-wkpl-server-name: OnlineRC2 Content-Type: text/html;charset=UTF-8 Content-Language: en-US Content-Length: 204 Date: Sat, 18 May 2013 11:50:43 GMT HTTPSampleResult fields: ContentType: text/html;charset=UTF-8 DataEncoding: UTF-8 </code></pre> <p>On Linux I don't get redirects and user is not logout. </p> <pre><code>Thread Name: Logout 1-1 Sample Start: 2013-05-18 13:51:48 CEST Load time: 18 Latency: 18 Size in bytes: 264 Headers size in bytes: 243 Body size in bytes: 21 Sample Count: 1 Error Count: 0 Response code: 200 Response message: OK Response headers: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=D17A4ABCDE7FB90C1DF702BDCB3827D7; Path=/WKPLOnline CacheControl: no-cache Pragma: no-cache, no-store Expires: -1 Content-Length: 21 Date: Sat, 18 May 2013 11:51:53 GMT HTTPSampleResult fields: ContentType: DataEncoding: null </code></pre> <p>It is strange because during authorization there are a few redirects and linux performs them correctly.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload