voyent
JMeter with ice.sessions parameter problem!!  XML
Forum Index -> General Help
Author Message
loplayers

Joined: 03/Sep/2008 00:00:00
Messages: 8
Offline


I'm plan to use JMeter to test my web site.
I have add a HTTP Cookie Manager to create a cookie to save the sessionid, but the problem is i have receive the JSESSIONID that i don't know how to encode or convert this JSESSIONID to ice.session. As the result, testing show session-expried every time. Anyone can help or any idea ??Thanks a lot!!!
ullinker2008

Joined: 04/Feb/2008 00:00:00
Messages: 46
Offline


Hi
do you found a solution ???
mhcesped

Joined: 21/Apr/2008 00:00:00
Messages: 6
Offline


I did some load testing with another tool, not with Jmeter... with Web Performance Suite and i have the same problem...

Acording to what i understand JSESSIONID is the session of the container... ice.session is the session of the framework... they are not the same and it's imposible to decode/undecode one from the other...

JSESSIONID is handled automaticaly for most of the load testing application that i used, but ice.session is not handled automaticaly

what i did was to setup and extractor (in WPS... I don't know if jmeter have this feature) to look up in the html code and find the correct value for ice.session ... this mus be do it only for the first page in the application (normaly a login page or something like that)... for the rest of the page, i replace the value of the ice.session field with the value given for the extractor...

hope this help
loplayers

Joined: 03/Sep/2008 00:00:00
Messages: 8
Offline


mhcesped wrote:
I did some load testing with another tool, not with Jmeter... with Web Performance Suite and i have the same problem...

Acording to what i understand JSESSIONID is the session of the container... ice.session is the session of the framework... they are not the same and it's imposible to decode/undecode one from the other...

JSESSIONID is handled automaticaly for most of the load testing application that i used, but ice.session is not handled automaticaly

what i did was to setup and extractor (in WPS... I don't know if jmeter have this feature) to look up in the html code and find the correct value for ice.session ... this mus be do it only for the first page in the application (normaly a login page or something like that)... for the rest of the page, i replace the value of the ice.session field with the value given for the extractor...

hope this help
 

i solve the problem with the same paramter ice.session before. Thx for your help
ullinker2008

Joined: 04/Feb/2008 00:00:00
Messages: 46
Offline


Thks for your responses

Can you show me how did you do to create the extractor with JMeter to fill up ice.session.
ullinker2008

Joined: 04/Feb/2008 00:00:00
Messages: 46
Offline


I'm always looking for solution to get ice.session !
Here's what i did :
In the login request I added theses parameters
loginForm%3A_SUBMIT : 1
loginForm%3A_link_hidden_
loginForm%3A_idcl
loginForm:login : ${LOGIN}
loginForm:password :${PASSWORD}, Encoded
ice.session : ${iceSession} , Encoded
ice.view : 3
rand : 0.9569122183602303

And I add a regular expression extractor for this request to extract the session from html response
Response Field to check : Body selected
Refrence name : iceSession
Regular Expression : window\.sessions\.push\(\'(.+?)\'\)
Template : $1$
Match : 0
Default Value : ERREUR REGEXP

I'm trying to get the session from code like
<script id="JvPrFzVtTSW-urELHFfLMA:2:configuration-script" type="text/
javascript">if (!window.sessions) window.sessions = [];
window.sessions.push('JvPrFzVtTSW-urELHFfLMA');
window.disposeViewsURI = '/ulextranet/block/dispose-views';
var container = 'JvPrFzVtTSW-urELHFfLMA:2:configuration-
script'.asElement().parentNode;
container.bridge = new Ice.Community.Application({session:
'JvPrFzVtTSW-urELHFfLMA',view: 2,synchronous:
false,connectionLostRedirectURI: null,sessionExpiredRedirectURI:
null,connection: {context: {current: '/ulextranet/',async: '/
ulextranet/'},timeout: 60000,heartbeat: {interval: 50000,timeout:
30000,retries: 3}},messages: {sessionExpired: 'User Session
Expired',connectionLost: 'Network Connection Interrupted',serverError:
'Server Internal Error',description: 'To reconnect click the Reload
button on the browser or click the button below',buttonText:
'Reload'}}, container);</script>

But unfortunately the extractor doesn't work, I tried also to use an XPath with beanShell but I still have the same problem
I'm sure that the expression doesn't work because of Icefaces

any help will be welcome, thanks
jimr

Joined: 30/Apr/2010 00:00:00
Messages: 3
Offline


ullinker2008 - Did you have any luck getting this to work for JMeter? We are running into the same problem and were curious if you found a solution. Thanks.
ullinker2008

Joined: 04/Feb/2008 00:00:00
Messages: 46
Offline


Unfortunately I did not found solution for this problem.

it is very long since I worked on it, I did not keep any code sources

sorry i can't help you ):
jimr

Joined: 30/Apr/2010 00:00:00
Messages: 3
Offline


No problem - Thanks for the quick reply.
giocas

Joined: 02/Feb/2010 00:00:00
Messages: 12
Offline


Hi,
I did some progresses including a Regular Expression Extractor to extract the Ice Face session id from the first response (the regular expression is session:\s*'(.*?)' ) and providing the xtracted session id in the following requests.
I also added a Jmeter Cookie Manager..
jimr

Joined: 30/Apr/2010 00:00:00
Messages: 3
Offline


giocas -

We did something similar to get the ICE Faces session id. That solved our issue where we were always getting <sessiontimout> responses ... so now our requests go through but they still error out and never make it to any of our backing beans. Was there anything else you did to get the JMeter scripts working? Do you by any chance have a working JMeter script you would be willing to share with us?

Jim

giocas

Joined: 02/Feb/2010 00:00:00
Messages: 12
Offline


I am sorry but I can not share my test file since it contains some company private data.
Beside to manage the Ice Session Id I also added a JMeter HTTP cookie manager. Nothing else.
tyler.johnson


Joined: 18/Apr/2007 00:00:00
Messages: 93
Offline


Hi,

The ICEfaces EE Standard, Professional and Premium support packages include access to ICEpack which contains a how-to guide on configuring JMeter load tests. Correctly configuring your load testing scripts is extremely important when wanting to assess the scalability of your application so we strongly recommend reviewing the benefits of EE and our support packages.

Thanks,

Tyler
Product Support
ICEsoft Technologies


kishoriade

Joined: 14/May/2011 05:11:40
Messages: 1
Offline


Hi,
I am performing load testing with apache jmeter tool. But it is displaying session expiration error very frequently inspite of being careful.My efforts are resulting in void. Will anybody suggest me any solution please? i require solution urgently.
tmoreira2020


Joined: 25/Sep/2009 00:00:00
Messages: 16
Offline



You can found almost all your answers in the great post Load and/or Stress Test of ICEfaces Web Application using jMeter
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team