BeanShell Sampler and BeanShell Assertion in Testplan, but Assertion doesn't appear in Results?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

BeanShell Sampler and BeanShell Assertion in Testplan, but Assertion doesn't appear in Results?

o haya
Hi,

I have a testplan where I have a BeanShell Sampler and a BeanShell Assertion.  

At one point when I was working on the testplan, when I ran the testplan, I would see BOTH the BeanShell Sampler and the BeanShell Assertion in the View Results Tree.

However, now, it appears that when I run the testplan, only the BeanShell Sampler is appearing in the View Results Tree.  NOTE that I KNOW that both the Sampler and the Assertion are being executed, because both do some logging in the jmeter.log, and I can tell from that logging that both are running.

Can anyone tell me why the Assertion might no longer be appearing in the View Results?

Thanks,
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: BeanShell Sampler and BeanShell Assertion in Testplan, but Assertion doesn't appear in Results?

Felix Schumacher

Am 02.07.19 um 19:28 schrieb [hidden email]:
> Hi,
>
> I have a testplan where I have a BeanShell Sampler and a BeanShell Assertion.  
>
> At one point when I was working on the testplan, when I ran the testplan, I would see BOTH the BeanShell Sampler and the BeanShell Assertion in the View Results Tree.
>
> However, now, it appears that when I run the testplan, only the BeanShell Sampler is appearing in the View Results Tree.  NOTE that I KNOW that both the Sampler and the Assertion are being executed, because both do some logging in the jmeter.log, and I can tell from that logging that both are running.
>
> Can anyone tell me why the Assertion might no longer be appearing in the View Results?

The assertion is probably passing and not failing? Only failed
assertions will be shown.

For example you could take a very simple JSR223 Sampler with a simple
content:

"Hello, World!"

and a JSR223 Assertion with a simple assertion

assert prev.responseDataAsString =~ /Hello/

When run, this will show only the string "Hello, World". If you change
the string or the assertion, you should get the AssertionResult in the View.

(The Sampler and Assertion use groovy as language, which should be the
default)

Felix

>
> Thanks,
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: BeanShell Sampler and BeanShell Assertion in Testplan, but Assertion doesn't appear in Results?

o haya
 AHHHH! Ok, thanks! I was really worried that I couldn't tell if the assertion was passing.

Thanks,
Jim


     On Tuesday, July 2, 2019, 2:01:03 PM EDT, Felix Schumacher <[hidden email]> wrote:  
 
 
Am 02.07.19 um 19:28 schrieb [hidden email]:
> Hi,
>
> I have a testplan where I have a BeanShell Sampler and a BeanShell Assertion. 
>
> At one point when I was working on the testplan, when I ran the testplan, I would see BOTH the BeanShell Sampler and the BeanShell Assertion in the View Results Tree.
>
> However, now, it appears that when I run the testplan, only the BeanShell Sampler is appearing in the View Results Tree.  NOTE that I KNOW that both the Sampler and the Assertion are being executed, because both do some logging in the jmeter.log, and I can tell from that logging that both are running.
>
> Can anyone tell me why the Assertion might no longer be appearing in the View Results?

The assertion is probably passing and not failing? Only failed
assertions will be shown.

For example you could take a very simple JSR223 Sampler with a simple
content:

"Hello, World!"

and a JSR223 Assertion with a simple assertion

assert prev.responseDataAsString =~ /Hello/

When run, this will show only the string "Hello, World". If you change
the string or the assertion, you should get the AssertionResult in the View.

(The Sampler and Assertion use groovy as language, which should be the
default)

Felix

>
> Thanks,
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]