Timeline for Handling JSF ViewState errors using JMeter
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2012 at 16:05 | vote | accept | Abhijeet Vaikar | ||
Jun 7, 2012 at 9:52 | comment | added | Abhijeet Vaikar | Yes, i was still working on the issue so wasn't reverting back. I later found that it's possible to use Selenium JUnit test cases with JMeter. I tried that and it's working. So, as of now, i've kept JSessionID and ViewState aside. Thankyou for the great help! :) | |
Jun 7, 2012 at 9:47 | comment | added | Aliaksandr Belik | How do I ask? | |
Jun 5, 2012 at 13:15 | comment | added | Aliaksandr Belik | Yes. But what you have to do in the first hand - add something like /login GET request, without params, before your /login POST - and extract 1st ViewState value and send it along with further /login POST. | |
Jun 5, 2012 at 12:26 | comment | added | Abhijeet Vaikar | So do you mean I should add a new XPath Extractor + a user defined variable for every request in the request tree in JMeter? | |
Jun 5, 2012 at 11:58 | comment | added | Aliaksandr Belik | Okay. Once more. See point #1 in answer above - I've added schema to use. To send jsfViewState value along with login POST request you need somehow extract it (ViewState) before - e.g. send login GET first. You will extracted jsfViewState value on each request to use it in the NEXT one - but not in the same. | |
Jun 5, 2012 at 11:56 | history | edited | Aliaksandr Belik | CC BY-SA 3.0 |
added 285 characters in body
|
Jun 5, 2012 at 11:42 | comment | added | Abhijeet Vaikar | jmeter.log: pastebin.com/yAij3w5H Yes, i've added HTTP Cookie Manager at the top level (Test Plan). And i've set the encoded checkbox for jsfViewState to checked. I have referenced jsfViewState as ${jsfViewState} in the parameters (after the login request) of any requests that contain ViewState in their headers. I'm very much confused as to what's exactly not working. I'm completely a JMeter newbie, so please bear with me. | |
Jun 5, 2012 at 11:05 | comment | added | Aliaksandr Belik | @ Abhijeet, HOW it's not working? Is jsfViewState extracted? What's in jmeter.log? Simply add HTTP Cookie Manager at the top level (Test Plan), that's should be enough. Have you encoded jsfViewState value upon sending along with request ("Encoded" checkbox, wiki.apache.org/myfaces/PerformanceTestingWithJMeter -> Some Notes)? | |
Jun 5, 2012 at 10:58 | comment | added | Abhijeet Vaikar | I enabled the Use Tidy (tolerant parser) checkbox. And also used the HTTP Cookie Manager. But I have just added a HTTP Cookie Manager to the Thread Group. Do i have to make any changes / add any cookies in the Cookie Manager? It's still not working. | |
Jun 5, 2012 at 9:34 | comment | added | Abhijeet Vaikar | Sorry about refering to the Var_ViewState variable as ${ViewState}. I did realize that after posting my query here. But correcting the reference still didn't help me. I haven't tried the steps 1,3,4 you mentioned. Will check that and revert back. Thanks a lot for your help. | |
Jun 5, 2012 at 9:24 | history | answered | Aliaksandr Belik | CC BY-SA 3.0 |