6 votes
Accepted

Issue with Reading CSV file when doing Distributed testing in Jmeter

The easiest way to resolve this issue is to place the CSV file on all servers (Master and Slaves) inside the Bin directory of JMeter and don't specify any path for the CSV file inside the your JMeter ...
user avatar
  • 4,520
3 votes
Accepted

How to compare two files without looking at the contents

You can generate the hash of the contents, and then compare the hashes. If the hashes are identical, the files are the same. In ruby it would look something like this. md5hashFile1 = Hash(file1) ...
user avatar
  • 181
3 votes

How to compare two files without looking at the contents

How about hashing the contents and comparing the results? As other folks say this requires opening the files in some fashion. So if you aren't allowed to see content you might need to create this as ...
user avatar
3 votes

How to compare two files without looking at the contents

That depends on what you mean when you say "open" and what result you anticipate when you compare. You have to read both files in some way to compare them. File size won't give you reliable result. ...
user avatar
  • 11.4k
3 votes

Are there any tools to test whether the response code is not equal to 404 or etc by reading the URLs from a CSV file

A nice automation question. This question has already been asked on Stack Overflow, in Check the server response code, then export to csv. I don't know how good your python coding skills are, but ...
user avatar
3 votes

How can I validate CSV exports from my application?

Data Validation is a very important part of any testing strategy for an application that is dependent on data. There are two things you should do: Validate data in your test environment You will ...
user avatar
  • 8,419
3 votes
Accepted

How to send double quotes in postman csv data file

This is interesting, Newman and the collection runner are behaving differently. I have raised a bug on postman for this : https://github.com/postmanlabs/postman-app-support/issues/8024#issue-...
user avatar
  • 10.8k
2 votes

CSVs and JMeter: using variables from a line in multiple samplers

Alright, I feel dumb. Apparently I was wrong about the user and pass working. That was also sending EOF, but that part wasn't failing. I found the answer here to be very helpful. I believe I had the ...
user avatar
  • 141
2 votes

CSVs and JMeter: using variables from a line in multiple samplers

In regards to placement, you need to provide enough iterations to CSV Data Set Config so it could go for 2nd and further lines. So it makes sense to put CSV Data Set Config as a child of a Thread ...
user avatar
  • 12.5k
2 votes
Accepted

Data Testing for Massive CSV/XML files

using your favorite script language would probably be the best solution, Peter suggested Perl and I'll add Python to the list, both have excellent modules to parse and analyze CSVs and XMLs and a lot ...
user avatar
  • 6,936
2 votes

Issue with Reading CSV file when doing Distributed testing in Jmeter

Copy CSV files to the same location on all the slave machines Use forward slashes - / as file separators no matter of operating system: Linux/Unix/MacOSX /folder/anotherfolder/file.csv Windows: C:/...
user avatar
  • 12.5k
2 votes

Automating file comparison (different formats like csv, text etc)

Since comparing different file formats doesn't seems like a straightforward task, and possibly requires some logic, I believe the best answer would be to code it yourself. There plenty of libraries ...
user avatar
  • 6,936
2 votes

Can I copy data from a CSV file and use it in a website using only Selenium IDE

Yes, you can do it using Selenium IDE. You can read data from CSV files and use it to fill forms/fields in your application using Selenium IDE. For this you will need to add extension to Selenium IDE ...
user avatar
  • 4,520
2 votes

How to assign CSV file without using ${__threadNum} in JMeter

You can use __counter() function just the same way you're using __threadNum() function. The __counter() function generates an incremented number each time it's being called. Another option is going ...
user avatar
  • 12.5k
2 votes

Performance issue - Robot Framework vs Python

So my question is simple... why? Why so much difference between the keyword written in Robot Framework and the one written in Python? Because to my knowledge, Robot Framework is fully written in ...
user avatar
2 votes
Accepted

Jmeter CSV Data Set Config to skip first row

From the JMeter documentation: Versions of JMeter after 2.3.4 support CSV files which have a header line defining the column names. To enable this, leave the "Variable Names" field empty. The ...
user avatar
  • 22.8k
2 votes

JMETER: Getting timestamp error in log file when giving CSV filename in Summary Report

Normally .jtl results file should look like: timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,...
user avatar
  • 12.5k
2 votes
Accepted

JMeter - can multiple thread groups use different rows within the same input csv file?

If you want to go for the CSV file you can use the following __groovy() function: ${__groovy(new File('/path/to/your/file.csv').readLines().get(ctx.getThreadNum()),)} for 1st thread it will return ...
user avatar
  • 12.5k
2 votes
Accepted

How to perform HTTP PUT Request by reading values from CSV in JMeter?

JMeter's built-in CSV Data Set Config is reading lines from the CSV file sequentially so each user will get the next line on each iteration. If you need to read a random line (however I don't think it'...
user avatar
  • 12.5k
2 votes

Custom Framework for Writing a Test that Reads a CSV File into a HashMap

I think your biggest issue here, while not strictly test related, is your understanding of what the code you've written does (versus what it is supposed to do). What your code currently does If your ...
user avatar
  • 7,034
1 vote

Add extra columns in the existing csv using jmeter

You can use bean shell scripts to execute code that can manipulate CSV files. This question has an example how to change data in a CSV-file. You should be able to adapt it to adding data aswell. ...
user avatar
1 vote

Selenium/Java reading CSV file using open csv

You can use Apache's Common CSV library: The method getHeaderMap retrieves the header names. Maven link: https://mvnrepository.com/artifact/org.apache.commons/commons-csv/1.5
user avatar
  • 9,813
1 vote
Accepted

How to upload a csv file from local machine using robot framework script?

The solution is to use Choose File. You claim it only works on Firefox, but I use it on chrome regularly. Assuming that your web page has an input element with an id of "file_input", and you have a ...
user avatar
1 vote

JMeter looping through CSV

You may use a Counter. Set the upper limit to 10 and use the variable i inside the ${} in each request for entering those values from the CSV. For each request, the counter will increment and take ...
user avatar
  • 885
1 vote

Selenium downloads tmp file instead of CSV file

You will need to consider setting the Firefox profile with expected mime type for the content to be download. BrowserOption with Name = "browser.helperApps.neverAsk.saveToDisk" Value = "text/...
user avatar
  • 74
1 vote

Selenium IDE data-driven storing special characters from csv file

The � that you see in your CSV file is due to you saving the file in one encoding and reading it in another. Always read/write the files in the correct encoding. You can decide on a particular ...
user avatar
1 vote

JMeter: Write data in CSV file as rows and columns

Follow this method to write data in rows and columns: Create a notepad file out of the dat you want to pass in csv format, in this way - Name, Requests, Errors, trnxs AB,CD,EF,GH (No space ...
user avatar
  • 76
1 vote
Accepted

Jmeter - Variables from input file to output file

You need to add some extra configuration so Flexible File Writer could save your planNum variable. Add the next line to user.properties file (it is located in JMeter's "bin" folder) ...
user avatar
  • 12.5k
1 vote
Accepted

JMeter Report Dashboard

Here are the answers: In order to add a JMeter Variable to .jtl log file define sample_variables property like: Permanent way: add the next line to user.properties file (lives in JMeter's "bin" ...
user avatar
  • 12.5k
1 vote
Accepted

JMeter Change thread name or label in result file

Considering that you are using "CSV Data Set Config" Configuration element for providing input value to your script. You can't change the 'Thread Name' using the CSV file, as this is the ...
user avatar
  • 4,520

Only top scored, non community-wiki answers of a minimum length are eligible