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 ...
- 4,580
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-...
- 10.9k
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)
...
- 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 ...
- 24.8k
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. ...
- 11.5k
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 ...
- 200
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 ...
- 8,519
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 ...
- 7,031
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 ...
- 4,580
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 ...
- 23.1k
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 ...
- 12.9k
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:/...
- 12.9k
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'...
- 12.9k
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 ...
- 12.9k
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 ...
- 934
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,...
- 12.9k
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 ...
- 7,082
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.
...
- 32.4k
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
- 10.2k
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/...
- 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 ...
- 36
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 ...
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)
...
- 12.9k
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" ...
- 12.9k
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 ...
- 4,580
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 ...
- 934
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 ...
- 885
1
vote
JMeter looping through CSV
You can do it using Loop Controller and CSV Data Set Config. Firstly, you need to define paramaters in CSV Data Set Config to extract information from your CSV file. You can reuse those paramaters in ...
- 191
1
vote
Can I copy data from a CSV file and use it in a website using only Selenium IDE
It is not good idea to use Selenium IDE to modify cvs files. Actually IDE is very simple and was not intended to execute extra functionality. It is better to export code to Java and then implement ...
1
vote
Can I copy data from a CSV file and use it in a website using only Selenium IDE
It is not exactly what you are asking, but it can suit your needs.
You can use SelBlocks Plugin to enable data-driven testing for Selenium IDE.
Convert your CSV to XML file as is required by ForXML ...
- 1,354
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
csv-file × 37jmeter × 21
automated-testing × 8
load-testing × 7
performance × 6
selenium-webdriver × 4
jmeter-plugins × 3
data-driven × 3
http × 3
java × 2
manual-testing × 2
api-testing × 2
selenium-ide × 2
robotframework × 2
functional × 2
selenium2 × 1
python × 1
testng × 1
tools × 1
performance-testing × 1
chromedriver × 1
jenkins × 1
quality-center × 1
eclipse × 1
maven × 1