https://issues.apache.org/bugzilla/show_bug.cgi?id=47857
Summary: if statement used in Beanshell Scripts
Product: JMeter
Version: 2.3.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
AssignedTo: [email protected]
ReportedBy: [email protected]
The if statement always evaluates to false, irrespective of the value in the
condition under test. This has been tried for Beanshell scripts in
pre-processor, post-processor & assertions. The scripting was done in beanshell
with the correct syntax in mentioned elements, but the result was the same.
Although the same conditions were executed using the switch-case control
statements, and it worked.
Explaination with example.
if(Val=="1"), if(Val=='1'), if(Val==`1`), if(Val="1"), if(Val='1') &
if(Val=`1`).
All of them were tried, but to no avail. But when for the same, the print
statement was executed, the Value of "Val" was displayed as "1". This has been
tested for all the possible values, numeric as well as characters, but none
work.
The desired procedure was achieved using Switch value of "Val" and Case value
of "1", using the switch case control statements.
--
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]