1

Continuing from previous thread, JMeter- extract 'id' variables from JSON response and save it in CSV file and use it in tear down thread

Able to write all the id from the various steps in to a files result.csv. Now I want to iterate through each id in the tear down thread to check the status of the job id ?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233

2 Answers2

0

Just read the CSV file using CSV Data Set Config inside tearDown thread group,

Set Infinite loop count in tearDown thread group,

Mark in CSV Data Set Config Stop thread of EOF = true, Recycle on EOF = false

That way it will iterate against of ids saved and you can check for each the job id using the variable name you set in CSV Data Set Config

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
0

Using interim file for passing data between thread groups is not the best idea, disk IO is horribly slow comparing to in-memory operations.

You could convert use JMeter Properties (__setProperty() function in 1st Thread Group and __P() function in the tearDown Thread Group) or Inter-Thread Communication Plugin for this.

If you need to check the status against some anticipated value - go for Response Assertion, it has possibility to compare 2 JMeter Variables.

enter image description here

Dmitri T
  • 159,985
  • 5
  • 83
  • 133