Have you tried the simplest test plan you can imagine? Can you post it here?
Felix Am 30. Dezember 2020 21:45:51 MEZ schrieb Tong Sun <[email protected]>: >Hmm, > >I've put > >SampleResult.with { >successful = false >responseCode = "500" >responseMessage = "some error...." >} > >into my catch section, but they are still green and correct (even >error is caught) viewed in Result Tree. > >I also tried to use > >SampleResult.setSuccessful(false) > >but that didn't work either -- itself generated another exception. > >So do I have to `new` a SampleResult before making use of the class? >If so, how can JMeter know to use my own newed SampleResult as the >result? > >On Wed, Dec 30, 2020 at 12:02 PM Tong Sun <[email protected]> wrote: >> >> Thanks a lot Mariusz, I could never come up with answers like that >myself! >> >> On Wed, Dec 30, 2020 at 11:50 AM Mariusz W <[email protected]> wrote: >> > >> > To see it in reports and listeners: >> > SampleResult.with { >> > successful = false >> > responseCode = "500" >> > responseMessage = "some error...." >> > } >> > >> > Regards, >> > Mariusz >> > >> > On Wed, 30 Dec 2020 at 16:40, Tong Sun <[email protected]> >wrote: >> > >> > > Hi, >> > > >> > > My JSR223 steps have problems, some even have exceptions, but >viewing >> > > from View Result Tree, they are all green and correct. >> > > >> > > How to mark those JSR223 steps that have problems red and failed? >> > > >> > > I tried to throw an exception, but that killed the whole thread. >> > > >> > > thx >> > > >> > > >--------------------------------------------------------------------- >> > > 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]
