Jmeter version 5.5 not storing debug logs in jtl file - testing

When I set the log level in UI to debug/trace, the jtl file is still storing the data with only info logs but showing the debug logs in UI. I even modified the log4j2 configuration file and tried the below
jmeter -Lorg.apache.jmeter.protocol.http.control=DEBUG
jmeter -Lorg.apache.http=DEBUG
jmeter -LDEBUG
This also is not storing the debug logs, I'm simply trying to get the request/response parameters completely stored for every single request that we are making in our test plan. What am I missing? Anyone can help me with this?

Your configuration increases JMeter logging verbosity so jmeter.log file has more details comparing to default configuration
If you want to save request and response details there are 2 options:
Amend JMeter's Results File Configuration to look like:
jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true
jmeter.save.saveservice.samplerData=true
jmeter.save.saveservice.requestHeaders=true
jmeter.save.saveservice.responseHeaders=true
jmeter.save.saveservice.url=true
Or add a listener like Simple Data Writer and choose what and where to store
More information: How to Save Response Data in JMeter

Related

How to run Postman tests in Jmeter? ; How to run single sampler inside a Test Plan/ Thread group when you have multiple sampler inside it?

I have a collection in Postman under which I have multiple Requests(see screenshot 1).
I can click on each request, press "send" and run one at a time. I exported the .json to .jmx from loadium
When I open the the .jmx file in Jmeter , I got this kind of structure(see screenshot2).
Test plan --> Thread group --> [Sampler 1, Sampler 2, ..]
These samplers are my each request and I want to run only one at a time, but when I press "run" button all the sampler/requests start to run.
Double check your Thread Group settings, if you want to run requests sequentially and only one at a time make sure to set:
1 thread (virtual user)
1 loop (iteration)
Also be aware that you don't need any external tools in order to convert Postman scripts to JMeter:
Set Postman to use JMeter as the proxy
Start JMeter's HTTP(S) Test Script Recorder
Run your collection in Postman
JMeter will capture the requests and generate appropriate HTTP Request samplers
More information: How to Convert Your Postman API Tests to JMeter for Scaling
The answer to your issue is straightforward: just right-click on the script you do not want to run and select "Disable".
When you want to run it, simply right click and choose "Enable".

Redis DB with Jmeter Integration - Can not Connect

I have a question about connecting Redis DB to Jmeter, using jp#gc - Redis Data Set.
I created a test and want to see a value from Redis, the problem is that When I add the Redis DB component nothing happened, I press the Play button and nothing happened.
I think I am not configured the Redis as expected in jmeter.
I didnt create any variable just name a new variable called dsos.
I just want to pass the value from redis of dsos_13_173 to the parameter dsos
1. How can I see why the configuration not succeed?
2. What I am missing?
I am using jmeter 3.2, with plugin v0.2 and installed it from plug in manager, and the DB is remote I am using IP not localhost as in all examples
Regards
Redis Data Set config acts alike CSV Data Set Config, so given you want to use the data from Redis in i.e. HTTP Request sampler you just need to refer to it as ${dsos} where required.
You can also double check the associated JMeter Variable value using Debug Sampler
See JMeter’s Redis Data Set - An Introduction for comprehensive explanation, step-by-step instruction and example test plan.

re-configuring a worklight application with analytics

After redeploying a worklight application, some configuration for analytics got lost and I'm trying to configure worklight with analytics again.
The dashboard shows "No data available" for time after the deployment although there are old records displayed for the time before the deployment of the application. So the db was not affected.
I set the wl.analytics.logs.forward property to "true" in worklight.properties;
also I set the wl.analytics.url of the db to be something like:
https://myserver:port/analytics/data
The dashboard is on
https://myserver:port/analytics/console
That is the URL for the analytics server.
Although if I put the db URL in a browser I get something like:
Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /data
Checked SystemOut.log and SystemErr.log (WAS logs) and I did not see errors there.
Does anybody know which is the XML I need to check in order to validate the configuration is OK for analytics? How could I troubleshoot this problem? Are there other logs I could check?
In the list of environment variables you gave I do not see any for username and password. Try to set:
wl.analytics.password=admin
wl.analytics.username=admin
It would be useful to see a wireshark trace, maybe you are not getting 403s. The Analytics data uploader generally has a small bit of protections and you have the option to keep or remove it.
#patbarron is correct about the multiple WAR files though. You need to send your analytics data to the /analytics-service context. The WAR analytics-service is the WAR that handles all the data processing, querying, etc. The other WAR analytics just handles the console UI.
When testing it might be beneficial to lower the
wl.analytics.queue and wl.analytics.queue.size, those values are for collecting data on the MobileFirst runtime server. Data is collected at the runtime server then sent to the analytics server. The larger these values are generally, the longer it will take to send. There are good to set for production

Jmeter View Results Tree doesn't return anything in Response Data

I sent a HTTP request. There is an error in View Results Tree. But In the Response Data doesn't seem anything.
How can I see the error logs?
Don't use JMeter GUI to run performance tests. Run test in command-line non-GUI mode instead.
Don't use View Results Tree listener for anything but tests development or single-threaded debugging, it's too memory intensive and basically stores all requests/responses details in the memory. It might be the cause of errors you're getting. As per documentation
View Results Tree MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or during Test Plan debugging and Validation.
If you need to store response data on error in .jtl results file add the following line to user.properties file (it usually lives under /bin folder of your JMeter installation)
jmeter.save.saveservice.response_data.on_error=true
Alternatively you can use a sniffer tool like Wireshark to capture full requests/responses details for later inspection.

Jmeter test run dont save at database table

I'm load testing an spring web flow aplication in jmeter and after run the tests, the informations dont get persisted on database. I am doing this path:
Recording my test;
Extracting the viewstate (its a spring web flow application);
Running the same test (Theres any error in the result tree listener);
Obs: Its a user sign up funcionality.
So, anyone can help me with this?