Am 06.04.21 um 12:16 schrieb Krister Nilsson:
> Ok! Thanks!
>
>
>
> The mental fatigue was most likely at my end since I thought I knew what you 
> were saying without really listening. Changing the JSR223 Postprocessors to 
> JSR223 Listeners seems to have solved my problem. Sorry for not getting back 
> to you sooner and show my appreciation, but an Easter weekend came 
> in-between... ??
>
>
>
> However, the story did not end entirely happy. I ran in to a problem after 
> having fixed the above one, a problem I run into occasionally without really 
> understanding.
>
> 2021-04-06 11:31:04,610 ERROR o.a.j.p.j.s.JSR223Sampler: Problem in JSR223 
> script Print to file - esb-intjanandetiden, message: 
> javax.script.ScriptException: java.io.FileNotFoundException: 
> .\overvakning_props_sit_ica\props-esb-intjanandetiden-soapui.xml (The system 
> cannot find the path specified)
>
> javax.script.ScriptException: java.io.FileNotFoundException: 
> .\overvakning_props_sit_ica\props-esb-intjanandetiden-soapui.xml (The system 
> cannot find the path specified)

Have you tried to use slashes instead of backslashes? I.e.
./overakning_props_sit_ica/props-esb...

Java will gratefully convert paths separated with / to the correct
separator depending on the used platform. The backslash (\) might be
interpreted as an escape character, which could confuse some elements.

Felix

>
> Everything looks ok, the exact same path worked Thursday and no changes 
> except the above one has been made since then. I cannot guarantee that no 
> patches to the server has been made since then, but I do not believe so since 
> no restart has occurred.
>
>
>
> Grateful if you have a time to have a glance on it!
>
>
>
> /Krister
>
>
>
> -----Ursprungligt meddelande-----
> Från: [email protected] <[email protected]>
> Skickat: den 1 april 2021 17:40
> Till: [email protected]
> Ämne: Re: SV: Response assertion seems to not always set 
> JMeterThread.last_sample_ok correctly
>
>
>
> I might be suffering from a form of a mental fatigue but I pretty much sure I 
> posted the link to the JMeter test elements  execution order 
> <https://jmeter.apache.org/usermanual/test_plan.html#executionorder>
>
>
>
> Response assertion is executed *AFTER* the JSR223 PostProcessor so if the 
> assertion fails the request - you will get false positive result.
>
>
>
> You need to change it to the  JSR223 Assertion 
> <https://www.blazemeter.com/blog/scripting-jmeter-assertions-in-groovy-a-tutorial>
>
> (but make sure to place it *below* the Response Assertion as they're executed 
> upside down) or switch to the  JSR223 Listener 
> <https://jmeter.apache.org/usermanual/component_reference.html#JSR223_Listener>
>
> .
>
>
>
>
>
>
>
> --
>
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: 
> [email protected]<mailto:[email protected]>
>
> For additional commands, e-mail: 
> [email protected]<mailto:[email protected]>
>
>
>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to