https://issues.apache.org/bugzilla/show_bug.cgi?id=46831
Summary: if "Response data" consists text with "$" then using
${VAR} there will not work for "Contains/Matches"
rules
Product: JMeter
Version: 2.3.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
I have HTTP response data that contains a text:
-----------
...
Email Address:<br>
<input name="tbRegisterEmailAddress" value="qatest1" size="8"/>
@<select name="RegisterValidEmailGroup$ctl00$drpEmails"
id="RegisterValidEmailGroup_ctl00_drpEmails">
...
-----------
(...) means that something is above and below.
I'm using "Response Assertion" for verifying this text with "Contains" rule.
RA-1) using of "Pattern to test" as
----
(?s)Email Address:<br>(.*)
<input name="tbRegisterEmailAddress" value="${ID}" size="8"/>(.*)
----
works OK, where ${ID} is data from csv config file and ${ID}="qatest1" (without
quotes) and "Debug" sample has confirmed it;
RA-2) using of "Pattern to test" as
----
(?s)Email Address:<br>(.*)
<input name="tbRegisterEmailAddress" value="qatest1" size="8"/>(.*)
@<select name="RegisterValidEmailGroup\$ctl00\$drpEmails"
id="RegisterValidEmailGroup_ctl00_drpEmails">(.*)
----
works OK, where "qatest1" is defined as a literal;
RA-3) using of "Pattern to test" as
----
(?s)Email Address:<br>(.*)
<input name="tbRegisterEmailAddress" value="${ID}" size="8"/>(.*)
@<select name="RegisterValidEmailGroup\$ctl00\$drpEmails"
id="RegisterValidEmailGroup_ctl00_drpEmails">(.*)
----
FAILED, where ${ID}="qatest1" from csv config file and "Debug" sample has
confirmed it;
What is wrong?
You can simplify response - the idea is if response data has "$" character(s)
in the text - using ${VAR} as jmeter variable will not work (in my case ${VAR}
comes before a text with "$")
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]