How Jmeter calculates response time of a sample under while controller - while-loop

I am using while controller in script which will iterate until the required string found in the response. Now , I want to understand how response time is calculated by JMeter for this request. Is it the the response time of last iteration or the summation of all iterations under while loop. Please help. I want to get the summarized response time of all iterations

Concept of a request / response for JMeter does not change wether you find your string or not. So given this depending on what listener you use, it will show you average, summation etc accordingly.
Summary or aggregation controller does show summation, so you might have to capture this using a custom listener. Or if you can multiply average with total transactions.
Hope this helps.

It will be as many requests as While Controller iterations, each request will have a separate entry in the .jtl results file.
If you need to have only one result with the cumulative duration of all the requests which were executed by the While Controller you need to put the While Controller under the Transaction Controller and tick Generate parent sample box:
This way you will get one "Transaction Controller" sampler which response time will be the sum of all child requests response times:

Related

Apigee Integration: How to use listEntitiesPageSize parameter in conjunction with the listEntitiesPageToken parameter o navigate through the pages

Good day everyone,
we are trying to have through the use of the integrations of the Apigee service of google all the rows in a bigquery table that have a certain value in a field.
this operation is quite easy to do, but when we have more than 200 lines as a result, problems arise.
The problem is that using the integration to connect to BigQuery I am not returning any listEntitiesPageToken value and not even any listEntitiesNextPageToken value
so i can't figure out how i can go about navigating the result pages
Has anyone had the same problem? What do you suggest?
In the tutorial: "https://cloud.google.com/apigee/docs/api-platform/integration/connectors-task#configure-the-connectors-task" is write : "For example, if you are expecting 1000 records in your result set, you can set the listEntitiesPageSize to 100. So when the Connectors task runs for the first time, it returns the first 100 records, the next 100 records in the second run and so on."
And there is a tip: "Use the listEntitiesPageSize parameter in conjunction with the listEntitiesPageToken parameter to navigate through the pages."
I used the tutorial to understand how to use the task for loop and I understood that I should create a "subintegration" which must be called by a "main integration" for each element present in a list / array.
But what what can i do since these tokens are empty?

how do you reverse the data given from a REST API response?

I'm trying to read measurement data, and I get a large amount of data back. I can narrow down the items per page and get the last page, but is there a way to reverse the data so I get the most recent measurement POST?
For example, I to a:
GET: {{url}}/measurement/measurements?dateTo={{dateTo}}&dateFrom={{dateFrom}}&source={{deviceId}}
And I get get 100's of pages back, the list beginning from the first measurement. I want the last measurement first.
I found the answer, add revert=True
i.e.:
{{url}}/measurement/measurements?dateTo={{dateTo}}&dateFrom={{dateFrom}}&source={{deviceId}}&currentPage=1&pageSize=200&revert=True

JMeter: New data to be created automatically in HTTP Request

I need to create a http request in JMeter to submit bulk API requests.
Inorder to do that, I have created a code in RunSwift tool to generate the bulk API requests and then aligned the requests in https://jsonlint.com website and then copied/pasted them in Jmeter.
What I am trying to Achieve:
Currently, if I have to submit 3-4 batches of API requests every 15 min, I am manually performing the above activities and replacing the content every time in HTTP request.
I was given a requirement that the batch job should submit 200 request every 15 min for continuous 8 hrs.
I feel that my current approach is not sustainable as I have to replace the content 32 times (every 15 min for 8 hrs).
Hence I would like to take your suggestion on how i can refresh the data in the API request every 15 min.
Replace hard-coded values like user name, address, phone, email, whatever with random entities which will be generated on the fly using the following JMeter Functions:
__Random() - generates a random integer within the given range
__RandomString() - generates a random string from given input characters
__UUID() - generates an unique GUID structure
__time() - returns current timestamp
You can inline JMeter Functions directly into your HTTP Request sampler body like:
See Apache JMeter Functions - An Introduction to get familiarized with JMeter Functions concept.

Can podio's api filter item response with only a mini detail level for each item?

My script needs to check from time to time that all items present in an app are recorded in its own db. Indeed even when using the podio hooks, it happens that my script and podio are getting desynchronised.
It uses the filter item api call by batch of 100 of items. In this case the script doesn't need to know all the fields values, but only the basic informations: item_id, app, title, link and current_revision.
I wonder if it's possible to set a query parameter in the filter function only only get the mini view of each item. This could improve greatly performances.
You can use fields parameter for that.
More details on how it works and how else it could be used are right here: https://developers.podio.com/index/api in "Bundling responses using fields parameter" section.
Using fields to bundle objects can be a way to drastically reduce the amount of API requests you have to make.
Most likely you are looking for fields=items.view(micro) parameter. Podio API will return then only 5 values for each item:
app_item_id
item_id
title
link
revision

Can't analyzeload test results in visual studio 2013

what does that count field(that is with Avg. page time filed) in the load test result in page results section represents and what is its relation with Avg Page time .. I can't understand that what does that count shows as every time i run the test it shows the different count figures so what exactly this count is representing here?? i am using visual studio 2013 ultimate
I am new to load testing so any help would be appreciated
Thanks..
The count is the number of times that page was requested - by any user - during the test.
Your test will have requested a particular page many times. The response time for each request for that page is saved in the test result set. How would you tell someone what the response time for that page is?
You could provide a list of each and every response time, but this would be hard to read. This is where statistics comes in handy - it's a language for summarising large sets of data.
You can condense the long list of values to a single value by stating an average. To give a better picture of your result set you could also say how big the list of response times is by stating the count.