jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: running jmeter testplan by ant renders NULLPOINTEXCEPTION
Date Wed, 03 Sep 2008 14:39:54 GMT
On 03/09/2008, Tracy Zhu <tracy.zhuyq@gmail.com> wrote:
> Hi Sebb,
>
> The problem is resolved, and the cause is there are two "Include
> Controllers" with duplicated name.

OK, glad that is sorted.

> But there is another problem with ant-jmeter. There is a Response Assertion
> in a test plan, and the assertion pattern is "<ns:message></ns:message>".
> The assertion pattern in the jmx is converted to
> "&lt;ns:message&gt;&lt;/ns:message&gt;".

Yes, because XML requires that.

>  It works well on GUI, but failed
> with ant-jmeter.

Does it work with JMeter non-GUI mode?

>  Changing the assertion patter in the jmx to
> "<ns:message></ns:message>" also doens't work.
> Is there limitation on assetion patterns with ant-jmeter?

Not that I know of.

> BTW, switching to JMeter2.3.2 seems not easy for us, since we have created a
> lot of test cases which use csv file based on 2.3. And the way of reading
> csv file is different between 2.3 and 2.3.2, and it would be a lot of work
> for us to modify all test cases and make them work in our automation
> testing.

I don't understand why there should be a problem when converting from
2.3 to 2.3.2.

Which CSV files are you talking about?

What is the difference?

>
> Thanks,
> Tracy
>
> 2008/9/2 sebb <sebbaz@gmail.com>
>
> > On 02/09/2008, Tracy Zhu <tracy.zhuyq@gmail.com> wrote:
> > > Hi all,
> > >
> > >  In order to do scheduler  and automation test, I use ant to run jmeter
> > test
> > >  plans in my work. The test plan use "Include Controller" to contain sub
> > test
> > >  plans, and the name for each "Include Controller" is unique in the test
> > >  plan, and the sub test plans are all saved from samplers under a simple
> > >  controller.
> > >  But when i call these test plans, some would render null point
> > exception.
> > >  While some can be executed correct.
> > >  I use JMeter2.3, *ant*-*jmeter*-1.0.9.jar and jdk1.5.
> >
> > Try using JMeter 2.3.2.
> >
> > What happens if you run the same test script using non-GUI mode?
> >
> > >  Could you please tell me why some test plans would render null point
> > >  exception?(These test plans could be executed correctly in JMeter GUI
> > mode.)
> > >
> > >  Thanks,
> > >
> > > Tracy
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>

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


Mime
View raw message