Re: Strange Assertion failure message:Response was null
Tong Sun <[email protected]> Thu, 11 Apr 2024 17:27:21 -0400
| Newsgroups | gmane.comp.jakarta.jmeter.user |
|---|---|
| Message-ID | <CAMmz1OfwrREvU8kY-ojM4Uh64DV=fpw-V-TSG=iNE-3UvYk34Q@mail.gmail.com> |
On Thu, Apr 11, 2024 at 1:30 PM Tong Sun <[email protected]> wrote: > > > On Thu, Apr 11, 2024 at 12:54 PM Tong Sun <[email protected]> wrote: > >> The response in Response Body is just plain jason, as the header >> indicated, whose format is almost the same as the previous "post" one. >> >> On Thu, Apr 11, 2024 at 12:53 PM Aditya Singh <[email protected]> >> wrote: >> >>> Hi >>> What’s the response in Response Body? >>> >>> Regards >>> Aditya >>> >>> On Thu, 11 Apr 2024 at 8:57 PM, Tong Sun <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I've got a very strange Assertion failure message, which I cannot >>>> replicate on any of public available urls, which basically says >>>> >>>> *Response was null* >>>> >>>> [image: image.png] >>>> while actually the response has content: >>>> >>>> [image: image.png] >>>> >>>> what's more strange is that it only happens to one specific API >>>> returns, I.e., the above "post" request, which goes through the *very >>>> same assertion*, passes flawlessly: >>>> >>> My bad -- the common assertion check was at the Test Plan level. The above failure was failing at the transaction actually, not my request. > >>>> [image: image.png] >>>> >>>> Here is the common assertion: >>>> >>>> [image: image.png] >>>> >>>> > > What's more interesting is, there is another assertion before it, and it > just passes without an issue: > > [image: image.png] > > Comparing this and above, the *only* change is using the "Not", and the > "Response was null" *will not be there*. > So I'm more inclined to think it is something related to Jmeter. > > [image: image.png] > > I'm wondering what the fix from the JMeter side can be, as I worry that if >>>> I report the problem to our devs, they'd say it's the JMeter's problem, as >>>> everyone has been using it fine for years. >>>> >>>> Thanks >>>> >>>>
image.png
(image/png, 77.7 KB) - not displayed
image.png
(image/png, 101.5 KB) - not displayed
image.png
(image/png, 75.6 KB) - not displayed
image.png
(image/png, 46.4 KB) - not displayed
image.png
(image/png, 100.2 KB) - not displayed
image.png
(image/png, 277.2 KB) - not displayed