The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> JMeter

Pages: 1
shinelog
Member


Reged: 07/17/08
Posts: 47
How to handle JSF viewstate with jmeter
      #572873 - 06/04/09 05:59 AM

Hi all,

i had recorded the script with jmeter, i had followed the step which is given below link to handle the

"javax\.faces\.ViewState"

http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter

even though i am facing the same issue.

can any one help me on this issue.

Regards,
Shinelog


Post Extras: Print Post   Remind Me!   Notify Moderator  
JosePablo
Member


Reged: 09/30/08
Posts: 346
Loc: Argentina
Re: How to handle JSF viewstate with jmeter [Re: shinelog]
      #572888 - 06/04/09 06:25 AM

Hi,

Could you give us more information about your test scenario?

--------------------
Best Regards,

Josť

----------

My blog: http://josepablosarco.wordpress.com/

LinkedIn: http://www.linkedin.com/in/josepablosarco


Post Extras: Print Post   Remind Me!   Notify Moderator  
shinelog
Member


Reged: 07/17/08
Posts: 47
Re: How to handle JSF viewstate with jmeter [Re: JosePablo]
      #572893 - 06/04/09 06:40 AM

Hi Jose,

Thanks for your quick reply.

My scenario is, Login to URL, update the email-id. this is my simple scenario.

Regards,
ShineLog

Edited by shinelog (06/04/09 06:44 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
JosePablo
Member


Reged: 09/30/08
Posts: 346
Loc: Argentina
Re: How to handle JSF viewstate with jmeter [Re: shinelog]
      #572904 - 06/04/09 07:12 AM

ok, I refer to information about technology, business rules, how configure your script....but, I will try with some questions:

- Do you use "Regular Expression Extractor" for extract the ViewState value generated in the login page to send it in the update page???

- Do you have JSESSIONID? Do you use the pre-processor "HTTP URL Re-writing Modifier"?

- Do you have cookies? Do oyu use the "HTTP Cookie Manager"?

--------------------
Best Regards,

Josť

----------

My blog: http://josepablosarco.wordpress.com/

LinkedIn: http://www.linkedin.com/in/josepablosarco


Post Extras: Print Post   Remind Me!   Notify Moderator  
shinelog
Member


Reged: 07/17/08
Posts: 47
Re: How to handle JSF viewstate with jmeter [Re: JosePablo]
      #572917 - 06/04/09 07:42 AM

hi jose,

yes, i am using "regular expression extractor" for extract the ViewState value generated in the login page to send it in the update page.

yes i have session id, but am not using the pre-preprocessor "HTTP URL Re-writing Modifier"

i am using "http cookie manager"

Regards,
Shinelog


Post Extras: Print Post   Remind Me!   Notify Moderator  
JosePablo
Member


Reged: 09/30/08
Posts: 346
Loc: Argentina
Re: How to handle JSF viewstate with jmeter [Re: shinelog]
      #572932 - 06/04/09 08:24 AM

Quote:

yes i have session id, but am not using the pre-preprocessor "HTTP URL Re-writing Modifier"




If you have session id and you are not using the pre-preprocessor "HTTP URL Re-writing Modifier" the problem could be the session ID and not the ViewState.

Try to add the pre-preprocessor "HTTP URL Re-writing Modifier" :

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_URL_Re-writing_Modifier

Let me know if it works

--------------------
Best Regards,

Josť

----------

My blog: http://josepablosarco.wordpress.com/

LinkedIn: http://www.linkedin.com/in/josepablosarco


Post Extras: Print Post   Remind Me!   Notify Moderator  
shinelog
Member


Reged: 07/17/08
Posts: 47
Re: How to handle JSF viewstate with jmeter [Re: JosePablo]
      #573059 - 06/04/09 11:52 PM

Hi Jose,

Still i have the problem.

i had created and exported the script from badboy.

i had a discussion with my devloper, they said that there
is no cookie is utilised, only jsessionid is used.

Due this i removed the cookie manager and i tested even though i am facing the error.

i saw that there are 3 unique id created for "javax.faces.ViewState", i tried by creating 3 regular expression with unique name and inserted with appropriate one. with "rewritting url modifier". even though i am facing the error.

Regards,
Shinelog.


Post Extras: Print Post   Remind Me!   Notify Moderator  
JosePablo
Member


Reged: 09/30/08
Posts: 346
Loc: Argentina
Re: How to handle JSF viewstate with jmeter [Re: shinelog]
      #573199 - 06/05/09 10:53 AM

I don't know; Could you give us the error message that JMeter shows?

Do you check the variables values with a debug sampler?

--------------------
Best Regards,

Josť

----------

My blog: http://josepablosarco.wordpress.com/

LinkedIn: http://www.linkedin.com/in/josepablosarco


Post Extras: Print Post   Remind Me!   Notify Moderator  
shinelog
Member


Reged: 07/17/08
Posts: 47
Re: How to handle JSF viewstate with jmeter [Re: JosePablo]
      #573596 - 06/09/09 12:59 AM Attachment (227 downloads)

hi jose,

sorry for late reply,

kindly find my attachment of error.


Regards,
Shinelog.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 9 anonymous users are browsing this forum.

Moderator:  icruiser, AJ 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 7183

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5