You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/03/15 03:41:11 UTC

DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38681>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38681


sebb@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From sebb@apache.org  2006-03-15 02:41 -------
Checked a potential fix into the 2.1 branch. 

This is in the nightly build: 2-1.20060315 - please see if it works for you.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by sebb <se...@gmail.com>.
On 17/03/06, Oleg Gutsol <og...@nationalfibre.net> wrote:
> hm, apparently attachements do not work,
> here are the files:
>
> filename: simple_request.jmx

Thanks.

I've discovered the problem - it is actually present in GUI mode as
well as non-GUI.

There is a Null Pointer Exception (NPE) generated when trying to write
the sample to the output file. This occurs in GUI mode as well
(assuming you write the output to a file).

The HTTP Sampler in your test case actually generates a subordinate
sample (because of a redirect), and the thread name is not being
initialised properly for subordinate samples.

I've checked in a fix to prevent the NPE, and updated the nightly
build, but a bit more work is needed to set the subsample ThreadName
properly.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by Oleg Gutsol <og...@nationalfibre.net>.
hm, apparently attachements do not work,
here are the files:

filename: simple_request.jmx

<jmeterTestPlan version="1.2" properties="1.8">
   <hashTree>
     <GenericController guiclass="LogicControllerGui"  
testclass="GenericController" testname="simple request" enabled="true"/>
     <hashTree>
       <HTTPSampler guiclass="HttpTestSampleGui"  
testclass="HTTPSampler" testname="simple request" enabled="true">
         <stringProp name="HTTPSampler.path"></stringProp>
         <stringProp name="HTTPSampler.method">GET</stringProp>
         <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
         <stringProp name="HTTPSampler.protocol"></stringProp>
         <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
         <stringProp name="HTTPSampler.port"></stringProp>
         <elementProp name="HTTPsampler.Arguments"  
elementType="Arguments" guiclass="HTTPArgumentsPanel"  
testclass="Arguments" testname="User Defined Variables" enabled="true">
           <collectionProp name="Arguments.arguments"/>
         </elementProp>
         <stringProp name="HTTPSampler.mimetype"></stringProp>
         <stringProp name="HTTPSampler.FILE_FIELD"></stringProp>
         <stringProp name="HTTPSampler.monitor">false</stringProp>
         <stringProp name="HTTPSampler.domain">www.google.com</ 
stringProp>
         <stringProp name="HTTPSampler.FILE_NAME"></stringProp>
         <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
       </HTTPSampler>
       <hashTree/>
     </hashTree>
   </hashTree>
</jmeterTestPlan>


filename: TestPlan.jmx

<jmeterTestPlan version="1.2" properties="1.8">
   <hashTree>
     <TestPlan guiclass="TestPlanGui" testclass="TestPlan"  
testname="Test Plan" enabled="true">
       <elementProp name="TestPlan.user_defined_variables"  
elementType="Arguments" guiclass="ArgumentsPanel"  
testclass="Arguments" testname="User Defined Variables" enabled="true">
         <collectionProp name="Arguments.arguments"/>
       </elementProp>
       <stringProp name="TestPlan.user_define_classpath"></stringProp>
       <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
       <boolProp name="TestPlan.functional_mode">false</boolProp>
       <stringProp name="TestPlan.comments"></stringProp>
     </TestPlan>
     <hashTree>
       <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup"  
testname="Thread Group" enabled="true">
         <longProp name="ThreadGroup.start_time">1142609477000</ 
longProp>
         <stringProp name="ThreadGroup.delay"></stringProp>
         <stringProp name="ThreadGroup.duration"></stringProp>
         <stringProp name="ThreadGroup.num_threads">1</stringProp>
         <boolProp name="ThreadGroup.scheduler">false</boolProp>
         <elementProp name="ThreadGroup.main_controller"  
elementType="LoopController" guiclass="LoopControlPanel"  
testclass="LoopController" testname="Loop Controller" enabled="true">
           <stringProp name="LoopController.loops">1</stringProp>
           <boolProp name="LoopController.continue_forever">false</ 
boolProp>
         </elementProp>
         <longProp name="ThreadGroup.end_time">1142609477000</longProp>
         <stringProp name="ThreadGroup.on_sample_error">continue</ 
stringProp>
         <stringProp name="ThreadGroup.ramp_time">1</stringProp>
       </ThreadGroup>
       <hashTree>
         <org.apache.jmeter.control.IncludeController  
guiclass="org.apache.jmeter.control.gui.IncludeControllerGui"  
testclass="org.apache.jmeter.control.IncludeController"  
testname="Include Controller" enabled="true">
           <stringProp name="IncludeController.includepath">/Users/ 
oleg/Desktop/simple_request.jmx</stringProp>
         </org.apache.jmeter.control.IncludeController>
         <hashTree/>
         <ResultCollector guiclass="ViewResultsFullVisualizer"  
testclass="ResultCollector" testname="View Results Tree" enabled="true">
           <objProp>
             <value class="SampleSaveConfiguration">
               <time>true</time>
               <latency>true</latency>
               <timestamp>true</timestamp>
               <success>true</success>
               <label>true</label>
               <code>true</code>
               <message>true</message>
               <threadName>true</threadName>
               <dataType>true</dataType>
               <encoding>false</encoding>
               <assertions>true</assertions>
               <subresults>true</subresults>
               <responseData>false</responseData>
               <samplerData>false</samplerData>
               <xml>true</xml>
               <fieldNames>false</fieldNames>
               <responseHeaders>false</responseHeaders>
               <requestHeaders>false</requestHeaders>
               <responseDataOnError>false</responseDataOnError>
               <saveAssertionResultsFailureMessage>false</ 
saveAssertionResultsFailureMessage>
               <assertionsResultsToSave>0</assertionsResultsToSave>
               <delimiter>,</delimiter>
               <printMilliseconds>true</printMilliseconds>
             </value>
             <name>saveConfig</name>
           </objProp>
           <stringProp name="filename"></stringProp>
           <boolProp name="ResultCollector.error_logging">false</ 
boolProp>
         </ResultCollector>
         <hashTree/>
       </hashTree>
     </hashTree>
   </hashTree>
</jmeterTestPlan>





- Oleg.



On 16-Mar-06, at 12:48 PM, sebb wrote:

> They did for me when I tested - that's how I know it worked.
>
> Can you provide a test case?
>
> S.
> On 16/03/06, Oleg Gutsol <og...@nationalfibre.net> wrote:
>> Yes, it seems to work in non-gui mode now, but listeners do not
>> output any test results.
>>
>> - Oleg.
>>
>>
>>
>> On 15-Mar-06, at 9:55 AM, sebb wrote:
>>
>>> Actually, it was some comments in the code that gave me the fix...
>>>
>>> This said that clone() is always called before getReplacement, so I
>>> took just did that for the non-GUI case as well.
>>>
>>> I'm not 100% convinced it is the correct fix, but it only affects
>>> Replaceable Controllers in non-GUI mode, and they weren't working
>>> anyway.
>>>
>>> S.
>>> On 15/03/06, Peter Lin <wo...@gmail.com> wrote:
>>>> I wouldn't have thought of that trick myself, but glad to see you
>>>> were able
>>>> to find a way to get it to work in console mode.
>>>>
>>>> peter
>>>>
>>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by Oleg Gutsol <og...@nationalfibre.net>.
Sure, here they are:


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by sebb <se...@gmail.com>.
They did for me when I tested - that's how I know it worked.

Can you provide a test case?

S.
On 16/03/06, Oleg Gutsol <og...@nationalfibre.net> wrote:
> Yes, it seems to work in non-gui mode now, but listeners do not
> output any test results.
>
> - Oleg.
>
>
>
> On 15-Mar-06, at 9:55 AM, sebb wrote:
>
> > Actually, it was some comments in the code that gave me the fix...
> >
> > This said that clone() is always called before getReplacement, so I
> > took just did that for the non-GUI case as well.
> >
> > I'm not 100% convinced it is the correct fix, but it only affects
> > Replaceable Controllers in non-GUI mode, and they weren't working
> > anyway.
> >
> > S.
> > On 15/03/06, Peter Lin <wo...@gmail.com> wrote:
> >> I wouldn't have thought of that trick myself, but glad to see you
> >> were able
> >> to find a way to get it to work in console mode.
> >>
> >> peter
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by Oleg Gutsol <og...@nationalfibre.net>.
Yes, it seems to work in non-gui mode now, but listeners do not  
output any test results.

- Oleg.



On 15-Mar-06, at 9:55 AM, sebb wrote:

> Actually, it was some comments in the code that gave me the fix...
>
> This said that clone() is always called before getReplacement, so I
> took just did that for the non-GUI case as well.
>
> I'm not 100% convinced it is the correct fix, but it only affects
> Replaceable Controllers in non-GUI mode, and they weren't working
> anyway.
>
> S.
> On 15/03/06, Peter Lin <wo...@gmail.com> wrote:
>> I wouldn't have thought of that trick myself, but glad to see you  
>> were able
>> to find a way to get it to work in console mode.
>>
>> peter
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by sebb <se...@gmail.com>.
Actually, it was some comments in the code that gave me the fix...

This said that clone() is always called before getReplacement, so I
took just did that for the non-GUI case as well.

I'm not 100% convinced it is the correct fix, but it only affects
Replaceable Controllers in non-GUI mode, and they weren't working
anyway.

S.
On 15/03/06, Peter Lin <wo...@gmail.com> wrote:
> I wouldn't have thought of that trick myself, but glad to see you were able
> to find a way to get it to work in console mode.
>
> peter
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 38681] - Include controllers do not seem to function in non-GUI mode

Posted by Peter Lin <wo...@gmail.com>.
I wouldn't have thought of that trick myself, but glad to see you were able
to find a way to get it to work in console mode.

peter


On 3/14/06, bugzilla@apache.org <bu...@apache.org> wrote:
>
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=38681>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
> INSERTED IN THE BUG DATABASE.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38681
>
>
> sebb@apache.org changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|NEW                         |NEEDINFO
>
>
>
>
> ------- Additional Comments From sebb@apache.org  2006-03-15 02:41 -------
> Checked a potential fix into the 2.1 branch.
>
> This is in the nightly build: 2-1.20060315 - please see if it works for
> you.
>
> --
> Configure bugmail:
> http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>