You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2013/03/11 18:10:31 UTC

[Bug 54667] New: If controller behaving in an unreliable way when testing condition

https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

            Bug ID: 54667
           Summary: If controller behaving in an unreliable way when
                    testing condition
           Product: JMeter
           Version: 2.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: marco.ullasci@gmail.com
    Classification: Unclassified

Created attachment 30033
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30033&action=edit
jmx example: double quote doesn't match for 031, 032 and 033

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

Marco Ullasci <ma...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #6 from Marco Ullasci <ma...@gmail.com> ---
Test 2 runs with the debug sampler.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

--- Comment #5 from Marco Ullasci <ma...@gmail.com> ---
Created attachment 30038
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30038&action=edit
Test case without any external dependence. Uses the same parameter file

This test case doesn't require an external connection or library and shows the
same behaviour.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Sebb <se...@apache.org> ---
There's insufficient detail here to show that there is a problem, and the test
case is not usable as it stands.

Also remember that the condition is evaluated by Javascript AFTER any variable
references are resolved, for example:

${Report_id}=='001'

might be seen as

028=='001'

==

If you can provide a minimal stand-alone test case - e.g. using Java sampler
rather than JDBC - feel free to re-open

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

--- Comment #2 from Marco Ullasci <ma...@gmail.com> ---
Created attachment 30035
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30035&action=edit
parameter file used for the jmx files

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

Marco Ullasci <ma...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marco.ullasci@gmail.com
                 OS|                            |All

--- Comment #3 from Marco Ullasci <ma...@gmail.com> ---
The attached JMX are skeletons to show the behavior.
The actual sampler are only used to check the structure: JDBC samplers can
point to any database.

With 32 lines in the parameter file, each with a different value, the
expectation was to have 64 sampler executions.
When quotes are not used several If Controllers are (appear to be) triggered
twice: 029 and 035 are an example. In total 88 samplers get executed.
If single quotes are used 031, 032 and 033 are not (don't appear to be)
triggered at all.

In order to get all the controller to be triggered exactly once I had to place
single quotes as a condition in all the controllers with the exception of 031,
032 and 033


Additional tests with the JMX without quotes:
Tested also on 2.7 on the same W7 64bit machine
C:\Users\MU186000>java -version
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)

Tested with 2.9 also on Win2003
C:\Documents and Settings\Administrator>java -version
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

Tested with 2.9 also on SLES 10
s10-1310:~ # java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

Result was the same as with 2.9 on W7 64bit.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

--- Comment #1 from Marco Ullasci <ma...@gmail.com> ---
Created attachment 30034
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30034&action=edit
jmx example: no quotes makes double matches for 029, 035 and others

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54667] If controller behaving in an unreliable way when testing condition

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54667

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Sebb <se...@apache.org> ---
The problem is with the condition.

Javascript is interpreting 011 as an octal number, so it matches 009 as well.

If you want to match strings, ensure you quote *both* sides of the comparison.

-- 
You are receiving this mail because:
You are the assignee for the bug.