New answers tagged

0

Firstly, you have to use the CSS/JQuery Extractor as a post-processor on the login thread group. It allows you to query the HTML response using CSS Selector, and save it in a variable. More info here. Afterwards, you can access this variable using the ${variable_name} notation. More info here.


0

Please share the sample script if you have anything because I tried the above process but unable to generate the HAR file and below is the error message 2019-07-18 11:56:59,920 ERROR o.a.j.t.JMeterThread: Error calling threadStarted org.openqa.selenium.WebDriverException: invalid argument: cannot parse capability: proxy from invalid argument: ...


0

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. JMeter is a load testing tool not a CSV manupilation tool. Use other tools to prepare your data. There are a lot of commandline tools you can use to do this, which ...


0

I hope you know the Parameterization and Correlation concept in JMeter, so in this if we want to pass one value throughout the script then pass the variable name within dollar($) and curly braces'{..}' like this ${variable_name} In your case here https://joxi.net/KAxv8ONUZL7lgm, the variable name is written in the field 'Name of created variable' i.e '...


0

Try Katalon automation tool. It is open source free and reliable. Installation is simple. To configure and how to PERFORM API Testing using KATALON you can refer these article from mundrisoft or KATALON


0

You have to use the variable you've created on the JSON Extractor: ${study_id} Below you are using simply Id More info on JMeter variables here. You regex is also wrong, try "id":(\d+). This will capture on the first group any integer that follows the the id string. But I would suggest to replace the Regular Expression Extractor for a JSON Extractor. ...


0

It will depend on how your target system deals with this process. I would imagine you would need: Header Manager or the Authorization Manager to perform web authorization; JSONExtractor to extract some data from the response; Assertions to fail requests that do not fulfill some requirement (upload and download time, e.g.) Investigating the download ...


0

After your Log_in thread group, the token is already stored in the BEARER variable. You can access it on the Header Manager: (Change key for BEARER and it should work) Also be careful with typos, the name of the Header key is Authotization.


0

The Beanshell Preprocessor allows you to run generic Java code and interact with JMeter environment, including updating variables. See the following answer for details: https://stackoverflow.com/a/24513915 Note: I am on mobile - later I will update this answer to add more details.


0

You might need to set system-wide proxy like: You might need to install loopback adapter as certain applications cannot route traffic to the local proxy server: If nothing helps you can always go for a low-level sniffer tool like Wireshark which is capable of capturing literally every packet sent over the wire, Wi-Fi or USB. More information: How to ...


0

As per The JMeter Access Log Sampler - A Guide To get an access log from a web-server suitable for the standard parsers of the Access Log sampler, your web server should be configured to write logs in the NCSA Common Log format. If your web server does not support this format, you can always try some of the numerous converter-applications, for example: ...


0

It might be the case the location of the Regular Expression Extractor is not correct, according to JMeter Scoping Rules it's being applied to all samplers, make sure that this is something you want. In general using regular expressions for parsing HTML is not the best idea, consider using i.e. CSS Selector Extractor instead it allows using CSS Selectors ...


0

I've never heard about the all-in-one product, but should highly recommend Wallarm FAST as a framework for application security testing. You can easily run the Selenium test through docker-based fast proxy and it will automatically generate and run security tests based on it, including sophisticated things like base64, under JSON, under another layer of ...


0

I did it by adding the below code in JSR223 Sampler. import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Iterator; import java.util.Date; import java.sql.Timestamp; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf....


1

Your code is not doing anything because it's not being called at all. JMeter's JSR223 Test Elements don't automatically execute Java main method, you will need to explicitly call it by adding the next line to the end of your script: ExcelExample.main() Full code just in case: import org.apache.poi.ss.usermodel.Row import org.apache.poi.xssf.usermodel....


0

If you're using Groovy as the language you can simplify your code to this one-liner: vars.put('currentDate', new Date().format('yyyy/MM/dd')) You can refer the generated value as ${currentDate} later on. See Date documentation of Groovy GDK for more information on available functions. Also be aware that you can achieve the same without having to write ...


0

You either need to amend your request and change ${newsId} to ${newsId_g0} or ${newsId_g1} as your setup generates the following JMeter Variables: You can visualize defined JMeter Variables or Properties using Debug Sampler and View Results Tree listener combination, check out How to Debug your Apache JMeter Script article for more details. Alternatively ...


0

I did it by putting the file path in File Upload section with POST request.


1

As the attached image shows that user needs to browse the excel sheet.I was also faced the same situation. So, Assuming that request for the same has been recorded. Follow below instructions: Use beanshell post processor and write code to read the excel file. {It is similar to Java IO file read code} like this import org.apache.jmeter.threads....


0

Am not sure about how you are passing the Regex values to the second end point. But try this below method. It may work. After the Regex, add a Bean shell assertion and pass the variable newsId as ${__setProperty(newsId,${newsId})} Explanation : ${newsId} -> Pass the regex variable here in the setProperty. Now try passing the variable in the second ...


0

Looking into JMeter Test Elements Execution Order it looks like: 0 Configuration elements 1 Pre-Processors 2 Timers 3 Sampler 4 Post-Processors (unless SampleResult is null) 5 Assertions (unless SampleResult is null) 6 Listeners (unless SampleResult is null) So if you save the file using i.e. Save responses to a file which ...


Top 50 recent answers are included