On 21/08/2009, Baudouin <[email protected]> wrote: > > I am coming back to my previous message. > I am running a test where the result of an http request is a 403. > I have put the response assertion to Ignore status. > As a consequence, the http request is considered as a success. Just what I > wanted. > But when I call the jmeter test from ant, the "failureproperty" is set to > true, which is not what I want.
That sounds like an issue with the JMeter Ant task, which is a 3rd party add-on. > Here is the result of my jmeter test but again it is from ant that I am > having a problem and only when I use the ignore status > > <?xml version="1.0" encoding="UTF-8"?> > <testResults version="1.2"> > <httpSample t="3120" lt="0" ts="1250857355452" s="true" lb="Get the Admin > zone" rc="200" rm="OK" tn="TC-ECASTEST-005 1-1" dt="text" by="27160"> > <assertionResult> > <name>Login page response</name> > <failure>false</failure> > <error>false</error> > </assertionResult> > <httpSample t="2946" lt="2944" ts="1250857355452" s="true" > lb="https://ecasd.cc.cec.eu.int:7002/ecas-test/protected/admin" rc="303" > rm="ECAS Authentication Required" tn="TC-ECASTEST-005 1-1" dt="text" > by="556"/> > <httpSample t="166" lt="129" ts="1250857358406" s="true" > > lb="https://ecasd.cc.cec.eu.int:7002/cas/login?loginRequestId=ECAS_LR-1-XXeQLYsI9rJvTQrx5ZaH2j8KsUJ4WZgCVRX6FGGisN8-GluZLzzfxbHXsUHvzYml9SW-yztNlkkjnN8gA5YPv3aLBO" > rc="200" rm="OK" tn="TC-ECASTEST-005 1-1" dt="text" by="26048"/> > </httpSample> > <httpSample t="489" lt="485" ts="1250857358612" s="true" lb="Get wayf page" > rc="200" rm="OK" tn="TC-ECASTEST-005 1-1" dt="text" by="15645"> > <assertionResult> > <name>Response Assertion</name> > <failure>false</failure> > <error>false</error> > </assertionResult> > </httpSample> > <httpSample t="363" lt="0" ts="1250857359104" s="true" lb="Post domain" > rc="200" rm="OK" tn="TC-ECASTEST-005 1-1" dt="text" by="24622"> > <assertionResult> > <name>Response Assertion</name> > <failure>false</failure> > <error>false</error> > </assertionResult> > <httpSample t="132" lt="132" ts="1250857359104" s="true" > lb="https://ecasd.cc.cec.eu.int:7002/cas/wayf.do" rc="302" rm="Moved > Temporarily" tn="TC-ECASTEST-005 1-1" dt="text" by="511"/> > <httpSample t="231" lt="197" ts="1250857359236" s="true" > > lb="https://ecasd.cc.cec.eu.int:7002/cas/login?loginRequestId=ECAS_LR-1-XXeQLYsI9rJvTQrx5ZaH2j8KsUJ4WZgCVRX6FGGisN8-GluZLzzfxbHXsUHvzYml9SW-yztNlkkjnN8gA5YPv3aLBO" > rc="200" rm="OK" tn="TC-ECASTEST-005 1-1" dt="text" by="23600"/> > </httpSample> > <httpSample t="9321" lt="0" ts="1250857359473" s="true" lb="Post user > credentials" rc="403" rm="Forbidden" tn="TC-ECASTEST-005 1-1" dt="text" > by="16996"> > <assertionResult> > <name>Login page response</name> > <failure>false</failure> > <error>false</error> > </assertionResult> > <assertionResult> > <name>Login page response</name> > <failure>false</failure> > <error>false</error> > </assertionResult> > <httpSample t="2582" lt="2582" ts="1250857359473" s="true" > lb="https://ecasd.cc.cec.eu.int:7002/cas/login" rc="303" rm="See Other" > tn="TC-ECASTEST-005 1-1" dt="text" by="432"/> > <httpSample t="6738" lt="6700" ts="1250857362056" s="false" > > lb="https://ecasd.cc.cec.eu.int:7002/ecas-test/protected/admin?ticket=ECAS_ST-0-nn8IXmNVB6yct06S2kcuiCwQ6sln47zUECq0MA3HiuU-GluZLzzfxbHXsUHvzYml9SW-g65QgpVMZLrUWTGzWRQp8y" > rc="403" rm="Forbidden" tn="TC-ECASTEST-005 1-1" dt="text" by="16132"/> > </httpSample> > > </testResults> > > > > > Baudouin wrote: > > > > In one of my jmeter tests, I have a request which returns a 403. > > Within the jMeter GUI interface I checked the "Ignore Status" check box. > > As a consequence, the result is shown in red in the "View results tree" > > object but the test is still ok because of the "Ignore Status" being > > checked. > > Now, I run the same test from ant by calling the jmeter task together with > > the "failureproperty". In this case, it seems that the "Ignore Status" is > > not being taken into account. The result is that my cruise control > > calling the jmeter tests receives the "failureporperty" set to true which > > > is not what I would like to receive. I would like the same result as the > > GUI part which says that the result of the test is ok. > > > > Any idea of what I could do? > > > > > -- > View this message in context: > http://www.nabble.com/Problem-using-jmeter-failureproperty-from-ant-tp22412774p25081699.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

