9

I'll assume you're just using JMeter as a type of Web Crawler with a fixed set of pages to consume, and you're only measuring response times and http status. Create a thread group of 100 users Place a CSV Data Set Config under the thread group The CSV contains one URL per line The CSV loads into a parameter named "URL" A HTTP Sampler is used where the ...


6

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 test plan i.e. don't use C:\Data\Files\abc.csv in your test plan, use only abc.csv (and place this file in Bin directory). Also, it will be good to keep the ...


3

Given that your foreach controller works and ${jspPage}.csv is being correctly populated it should be fine to read CSV data. Assuming that you have each link in a new line could you please make sure that following configuration is applied: For Loop Controller: should be > than 1 loop. Elsewise it'll read only the first line. For CSV Data Set Config: ...


3

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 most of the code is given on that page. It seems to aim to achieve exactly what you want to do. It probably will need tidying up and debugging first though :-( ...


3

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 have to have a way to generate real world scenarios for your application, hopefully your functional testing will already have this covered. Based on the known ...


3

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. Two files might have the same size but different content. Basically I can see two ways how you can compare files. byte-to-byte. you can either evaluate hash of ...


3

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 a service that protects the information and just exposes a SHA.


3

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) md5hashFile2 = Hash(file2) expect(md5hashFile1).to eq(md5hashFile2)


2

You can use Access Log Sampler, it allows to read URL's which are stored in text file. What you need to do, is: Grab URL's which you need from site. This can be made with different tools. For Windows I've used Xenu's Link Sleuth, but there are a number of alternatives both for Mac and Linux. Create new test plan in Jmeter and add Access Log Sampler to ...


2

Since I could not find any solution to this problem I'm facing I implemented a workaround for it by writing code into a BeanShell PreProcessor that would work like a CSV dataset config element. The code i've written is: import java.io.*; String uname = vars.get("username"); System.out.println("Username at the preprocessor: "+uname); String file_path="/...


2

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 thread sharing set wrong. It seems to be working now.


2

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 Group or Loop Controller. Regarding id bit. Any change that username and/or password contains comma? If so, you may have to check "Allow quoted data" to work it ...


2

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 of capabilities to help you in your tasks.


2

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 to make reading and parsing easy in many of the popular (and less popular) programming languages, but anyway csv and text files are the easiest even if you have ...


2

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 which can be downloaded from here. Download this 'CSVRead_Selenium-IDE.js' file from the specified location and add it to your IDE. After that you first need ...


2

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 correct delimiter must be provided.


2

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 for Counter test element, if you put it inside your loop you will be able to refer incremented value by reference name. See How to Use a Counter in a JMeter Test ...


2

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:/folder/anotherfolder/file.csv Do not use JMeter Variables in CSV file path See Using CSV DATA SET CONFIG guide for more details on using dynamic data in JMeter ...


2

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 Python. There should not be so much overhead. While there maybe shouldn't be that much overhead, there is indeed that much overhead. The overhead manifests itself ...


2

Normally .jtl results file should look like: timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect 1548814963190,68,Some Sampler,200,OK,127.0.0.1-Thread Group 1-2,text,true,,114,0,2,2,null,21,0,3 1548814963100,236,Some Other Sampler,200,OK,127.0.0.1-...


1

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/plain, application/vnd.ms-excel, text/csv, application/csv, text/comma-separated-values, application/download, application/octet-stream, binary/octet-stream, ...


1

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 encoding (UTF-8 should suffice mostly) and then use the same across all of your text editors, IDEs, Selenium IDE & spreadsheet programs. You can achieve this by ...


1

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 betweeen the lines and no extra lines) Save the file with .csv extension. For ex: requests.csv Add a csv config element in your thread group and load this requests.csv ...


1

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) sample_variables=planNum JMeter restart will be required to pick the property up. Alternatively you can define the property by passing it via -J command-line argument like: ...


1

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" folder) sample_variables=yourVar JMeter restart will be required to pick the property up. On next execution you will see ${yourVar} value added as a separate new ...


1

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 functionality of listener (this is how it has been designed), but you can change the 'Label' value shown in the results and most of the times this Label is used for ...


1

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 file on disk named "/tmp/testfile.txt", you would use it like this (in pipe separated format for clarity, but you can use any format): | | Choose file | id=...


1

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 new value from the CSV. Check if this helps.


1

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 code for file operations: read, write, etc.


1

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 command make use of data in your test. SelBlocks implements other functions as conditions if-else-endIf, for cycle and others. You can find SelBlocks here: ...


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