How to assert dynamic data using JMeter

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

How to assert dynamic data using JMeter

Lina Li
Hi There,

I have been pretty happy with JMeter so far, and i was able to do a lots of testing with static data. however, i recently trying to learn how to add assertion similar to response assertion to assert dynamic ones. does anyone have any tips what should i start looking into? or if it is possible to run assertion against dynamic data.

thanks
L.
Reply | Threaded
Open this post in threaded view
|

Re: How to assert dynamic data using JMeter

shettyd
>to assert dynamic ones.
You can.
Suppose you have a CSV file that has
username , password , firstName

When your script logs the user in , you could assert text for e.g. that
Says Response Context contains Welcome ${firstName} - so you can make your
assertions data driven , dynamic if you need
SOme of the assertions allow you to write your own code so you can code
whatever you need-
Perhaps you can elaborate on what is the dynamic things you want to assert?

regards
deepak

On Wed, Sep 4, 2019 at 10:54 AM Lina Li <[hidden email]> wrote:

> Hi There,
>
> I have been pretty happy with JMeter so far, and i was able to do a lots
> of testing with static data. however, i recently trying to learn how to add
> assertion similar to response assertion to assert dynamic ones. does anyone
> have any tips what should i start looking into? or if it is possible to run
> assertion against dynamic data.
>
> thanks
> L.
>