Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+2
person also asked this
people also asked this
Replies
11 replies
Subscribers
12 subscribers
Views
11690 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi all, We are trying to do performance testing using JMeter. We are
neelimaj
over 10 years ago
Hi all,
We are trying to do performance testing using JMeter. We are facing below issues.
1. When we record and run the script, on the first login page jemeter marks it error and the HTML view shows a message "You need to enable javascript"
2. When logged in as valid user, click on ? Actions tab and then Logout. As the token value is dynamic, tried to parameterize it. The Regular expressions that were used in Regex extractor was: __appianCsrfToken:=(.*?);. Please find attachment. Used Regular expn as Set-Cookie: __appianCsrfToken:=(.+?); also. Even then, Couldn’t find the token value in the Response Header (under sampler result). Login request is failing and throwing 401 Auth Error. Is this a parameterizing issue? If not, please suggest correct way of doing it which can resolve this issue.
3. As mentioned in the Appian Forum document, (
forum.appian.com/.../Using_JMeter_with_Appian.html)
, replaced X-APPIAN-CSRF-TOKEN with the vari...
JMeterIssues.docx
OriginalPostID-145752
OriginalPostID-145752
Discussion posts and replies are publicly visible
0
neelimaj
over 10 years ago
...able ${COOKIE___appianCsrfToken in HTTP Headers or request parameters. All the request expect (/suite/tempo/tempoSvC) fails. I do not see anything in request header in results tree to proceed further. Please find attachment.
4. Response data is blank for many requests.
5. Even though, I disable the above request and proceed further. Response data is empty/blank for the successful log in request in HTML view of results tree. couldn't confirm that login was successful.
6. I observe that, while navigating to the pages CSRF token is generated at each pages. How co relate that Multi Csrf token ?
Could someone please help me in resolving the above mentioned issues.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
neelimaj
over 10 years ago
Can some one please help me how to resolve this issue as soon as possible. Thanks in advance.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jim Schweitzer
Certified Lead Developer
over 10 years ago
You don't need to extract the csrf token with a regex. Just using ${COOKIE___appianCsrfToken} is enough -- jmeter finds this automatically based on the COOKIE___ prefix
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
neelimaj
over 10 years ago
I tried that approach also as mentioned above in point 3 by me. In this case, one of the request (/suite/tempo/tempoSvC) fails. Hence, disabled the request and proceeded further but still the Response data is empty/blank for the successful log in request in HTML view of results tree. couldn't confirm that login was successful.
Please let me know what may be the exact issue and how can we resolve it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
neelimaj
over 10 years ago
Also, On first login request page, the HTML page says "Please enable javascript before you logging in". Can this be the issue? Please suggest.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 9 years ago
Facing the same issue wondering are you able to fix it by now?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 9 years ago
If yes then please do share the solution as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
siddharthm
over 9 years ago
Add a Regex before your login request and extract the Appian CSRF token replace it with a variable & In all HTTP Headers or request parameters contain a value for X-APPIAN-CSRF-TOKEN (most samplers will), replace it with the variable ${COOKIE___appianCsrfToken} through out your script
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 9 years ago
Have tried that as well it works for Appian 7.7 but not for 7.8 and 7.9
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ravi Bohra
over 9 years ago
Check if the cookies turned on in jmeter.properties?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>