Read csv with jmeter (starting with x)

I am writing a jmeter script, and I have a huge csv file with a bunch of data that I use in my queries, can I start not from the first record, but from the 5th or nth record?

+3
source share
2 answers

Looking at CSVDataSet, it does not seem to support direct support for going to this line. However, you can emulate the same effect by first executing N loops where you just read from a dataset and do nothing with the data. This is followed by a cycle containing your actual tests. Some time has passed since I used JMeter - for this approach to work, you must use the same CVSDataSet between two loops.

If this is not possible, then there is an alternative. In your main test loop, use a counter and a controller. The counter is counted from 1. If controller contains your tests with the condition ${Counter}>N, where N is the number to skip. (“Counter.” The expression indicates that you have set the “link name” property to the counter.)

+4

mdma 2- - , , :

  • : CSV , , , . CSV CSV , , .

  • : CSV, "". , , "". IF, . If: "${ignore}"!="True" ( , "" ). , "ignore" "true".

CSV , (, ) , Open Office, Excel ..

+3

Source: https://habr.com/ru/post/1752291/


All Articles