How to approach dynamically retrieving data based on different account numbers?

44 Views Asked by At

The situation I have is that I'll have multiple account numbers as my test data and when searching for their account number, it'll call multiple APIs concurrently.

Each account number will have different sets of information to populate. For example, let's say there a section for "loan account numbers", "debit card account numbers", "balance summary", and so forth.

Some accounts may have this information and may not. I was curious if I should use the if controller or create a groovy script to call it concurrently if it is present.

I don't think that makes sense when I think about it, because I assume using the If Controller would call it sequentially unless I'm wrong (new to JMeter please correct me if I'm wrong),but another approach I'm thinking is to just call all the APIs and whatever is returned will come and populate it since it may just be doing that anyways.

Let me know if I'm thinking of the correct approach or what I should be doing

1

There are 1 best solutions below

1
Dmitri T On

If the data cannot be correlated (extracted from the previous response) then you need to parameterize it

Normally people put their test data into CSV files and read it using CSV Data Set Config and if certain "account" doesn't have load or debit card - just leave that field blank in CSV.

Test data can be generated once before you run the test or it could be populated dynamically on the fly, for example from the database somewhere in setUp Thread Group using JDBC Request sampler