How to measure the individual transaction response times for multiple file types with different file sizes upload operation - filesize

I have a requirement: where I need to upload multiple file types (PDF, CSV, EXCEL, Word) with different file size(5MB, 25MB, 50MB, 500MB, 1GB) and measure the transaction response time for each of the file type and size upload operation (i.e. Combinations of file type and file size).
We have 10 active user for the Load Test Execution
E.g.:
PDF - 5MB - What is the file upload time?
EXCEL - 5MB - What is the file upload time?
CSV - 5MB - What is the file upload time?
Word - 5MB - What is the file upload time?
PDF - 25MB - What is the file upload time?
EXCEL - 25MB - What is the file upload time?
CSV - 25MB - What is the file upload time?
Word - 25MB - What is the file upload time?
PDF - 50MB - What is the file upload time?
EXCEL - 50MB - What is the file upload time?
CSV - 50MB - What is the file upload time?
Word - 50MB - What is the file upload time?
Please let me know how can we prepare a LR scenario for this requirement

Turn on time-taken in your web logs. Run your test. Pull the times from the web logs.
OR
Leverage the timing model covered in your LoadRunner training class to measure it at the front end.
Note: You can also pull the times from the logs during your unit, component assembly, manual, automated, & User acceptance testing

Related

In JMeter how to map input files with output

In Jmeter , want to provide 100 different files for 100 users I used jp#gc - Directory Listing Data Source for providing different input files. Here we create two requests first request for accessing files and performing operations and the second request for download these output files making 100 output folder.So here 100 users use 100 random files so how to calculate which user uses which input file and where is the output file. how to map these two input and output
You can use __threadNum() function in order to get the number of current virtual use
Input file name you have already as the JMeter Variables coming from the Directory Listing Config
Output file name can be configured using Save Responses to a file using the values from point 1 and 2
More information: Performance Testing: Upload and Download Scenarios with Apache JMeter

How to calculate processing time of a file in jmeter for ssh protocol

I am using ssh protocol in jmeter to transfer the sftp file using put command.Now I want to get the processed result using get command.
Finally ,I want to calculate the total processing time each file has taken. The time taken to put the file in a directory and the time taken by the file to procceesed to the destination folder.
Put both requests under Transaction Controller, it calculates the cumulative time of its children and reports it as a separate "virtual" Sample Result:
More information: Using JMeter's Transaction Controller

How to generate understandable graph from Jtl File in Jmeter?

I have done the below set up in user.properties. I have Jtl files which is of format the csv.
jmeter.save.saveservice.output_format=csv
I am loading the JTL files and getting graph report. which has Average, Median, 95% and 90% Line, Min and Max.
X- Axis --> calls that is made and
Y-Axis --> milliseconds..
I want more info that how many users active and how many error %.
No. of Active Users, Response time, Error %, Transaction per second can we get the details in the graph
Thanks
You can use HTML dashboard generator in your scenario. Have a look at the link and check if it suffice your requirement. Then, follow the procedure to generate it.
You can use it in 2 ways:-
Generation from an existing sample CSV log file
Generation after load test
Both are mention in the jmeter dashboard link provided.

Jmeter Find Data Ussage Per Request

I have build a jMeter test for a mobile web application. The test works perfect and i would see how much data a request cost for the mobile data bundle of the user. Is it possible ?
For downloaded data there are 2 ways to achieve this:
Approximation of downloaded data: Summary Report has
Avg. Bytes - average size of the sample response in bytes.
You could use its value to approximate how much data is downloaded by summing up # Samples x Avg. Bytes over all requests.
If you want more precision, and estimation of both uploaded and downloaded data, you can use one of the programmable listeners (BeanShell listener, BSF Listener or JSR223 Listener) and collect this stats by yourself: they all have access to SampleResult, which allows you to collect the size of the uploaded data (sampleResult.getSamplerData().length()) and the size of the downloaded data (sampleResult.getHeadersSize() + sampleResult.getBodySize()). You can then write this data into file (this is an example for BeanShell)
Add next 2 lines to user.properties file (it is located under /bin folder of your JMeter installation)
jmeter.save.saveservice.print_field_names=false
jmeter.save.saveservice.bytes=true
It will "tell" JMeter to store response size and also adds a header to generated .jtl file when you run your test in command-line non-GUI mode so you could figure out which columns stands for which metric.
You'll need to restart JMeter to pick the properties up.
You'll get something like:
So you will be able to use Excel or equivalent to sum all the "bytes" lines up and calculate the associated cost.
See Apache JMeter Properties Customization Guide for more information on what else can be controller with JMeter properties and what needs to be done to apply the changes.

Spring Batch : multi file processing using multi threads

I have requirement where I have to deal with multiple files (say 300 csv files).
I need to read --> process --> write, each individual file as I need to apply some transformation logic on the data.
For each input file there would be a corresponding transformed file. so for 300 input files we would have 300 output files.
At the end, all the 300 output files are needed to be merged into a single file which would be compressed and then transferred to a remote location over FTP/SFTP.
Say, every hour we would have to deal with a new set of 300 file on which we would be required to apply the above processing, so we would be scheduling the above job per hour.
How to handle multi file processing in the above scenario using Spring Batch ?
How to make the above processing to happen in multiple threads ?
Please suggest.
Thanks in advance.
You can use spring task execution and scheduling and then use java ThreadPoolExecutor
Check this answer here at SO for a very simple example.

Resources