I am using JMeter for load testing.Because I want to simulate 200 users on a specific link: catalogus. I have the site now local. So the URL of the local site is: http://verploegenbalie.nl/product-catalog. But for testing I just use now 2 users. what also in the image is displaying. But the strange thing is, that if I dont check the:
-Follow Redirects option and
- Use Keep Alive option. then the link is not working. In the tree it becomes red and appears as: GET http://verploegenbalie.nl/product-catalog/product-catalog what is wrong, because it has to be:http://verploegenbalie.nl/product-catalog
But if I uncheck the two options. I get strange results.I get as output more then two responses. And If I look at the tab: Response Data I see: Object moved to here.
I make it clear with a couple of screenshots.
Thank you
If I do like this:
Then I will get by request this results:
GET http://product-catalog/
[no cookies]
Request Headers:
Connection: keep-alive
What ofcourse is not the correct URL.
Yes. If I do it like this:
Then the correct urls will be returned. But a other strange thing is that I have two users. You can see it on this image:
But the output gives by response data" 20 results. Where the number 20 comes from? See image:
what you've put in server name or ip field is wrong.
You've put the full URL while it should only contain the host part of the URL.
So "server name of ip field" mist contain:
verploegenbalie.nl
"Path" field must contain:
/product-catalog
Related
I am performing load testing with Jmeter with below parameter.
UDV:
Name: base_url
Value: clinical-web2.com
Server Name or IP: ${base_url}
Path: /
Now Sample is getting failed and after observing 'View Result Tree' listener url in Reuest tab is: 'https://clinical-web2.com/%20/'
Don't know why '%20/' is getting added in url.
%20 is typically what the browser substitutes spaces with, so maybe check if there's any random space in your generated URL.
When I wish to login as "pieraś", the page detects login "pieraĹ"
I tried selecting "URL ENCODE", changing jmeter.property csvdataset.file.encoding_list to "ISO 8859-2" only as well ass UTF-8 only.
JMETER request picture
How to make it work right?
In the HTTP request field "Content Encoding:" manually enter value "ISO-8859-2".
It works against jmeter.property "sampleresult.default.encoding"
I tried to use "pieraś" in jmeter, looks like JMeter is passing and processing this value properly. Some sample snap given below:
I have a URL that in the browser shows like this https://localhost:3000/location#valueIwant=1234.
I am trying to get access to the valueIwant value but all of the items I try ctx.request.path, ctx.request.href, etc but all seem to not have the values after #. How do I parse this part of the url.
Also this is coming from a redirect.
Everything after the # is not sent to the server. The purpose of the fragment is to create a link to a specific subsection of a page.
If you want to send specific parameters to the server, the right way to do it is to use the query part (everything after ?), not the fragment part. This is by design.
Here is my scenario:
5 users log in to the website which purpose is to shorten url links
(like bilty.com or tiny.cc).
Each user inputs a unique link and gets shortened result.
What I need to do is - to get some kind of analysis of this "shorten" request.
Also, I need to:
see the output (the shortened link) in this analysis.
check if the link was created or not.
check if the shortened links are correct.
make sure that the shortened link actually leads to the same website
just like the corresponding link in the input.
EDIT: I deduced that it should be made via Response Assertion, but I can't figure out how exactly.
Approach1(Grey Out-1st Thread group):- Put two request in parallel. First is full and second is redirect. Check option redirect automatically in second http request which is redirecting. Now, put compare assertion and check. This takes lot of resource.
Approach2:-Put 2 HTTPs request in parallel. First is full HTTP request without any redirect and second HTTP request is for short url and having follow redirect option checked.
Then, use regex in both (two regex used) to fetch the URLs. Check option "apply on"-> sub-samples as show for short url sampler, if it is redirecting. Not required for sampler if there is no redirect. First sampler regex uses "apply on" as "Main Sample Only" as there is no redirect.
Last compare them in the JSR223 sampler to make last sample fail.
I have used JSR223 sampler. You can also choose to have other approach also for comparison.
Hope this helps.
Update:-
Assuming you have data in two columns in csv as shown below image. Go to bin>user.properties file and put sample_variables as two column names used in the csv. Please restart jmeter if already open after editing user.properties file.
Put the first parameter in the http sampler.
Put the assertion as dynamic using second variable from the csv.
Note:- Do check the options in assertion to get what is required in your scenario. Follow redirection and Redirect Automatically have difference which required different assertion "apply to":- Main Sample or Sub-Sample. Do check them, if required.
Please check if this helps.
I am instructed to use write UNIX shell scripts that scrape certain websites. We use fiddler to trace the HTTP requests, then we write the cURLs accordingly. For the most part, scraping most websites seem to be fairly simple, however I've ran into a situation where I'm having difficulties capturing certain information.
I need to be somewhat generic in saying that I cannot provide the website address that I am actually looking at, however I can post some of the requests and responses to provide context.
Here's the situation:
The website starts with a search screen. You enter your search query and the website returns a list of results.
I need to choose the first result from the result page.
I need to capture EVERYTHING on the page from the first result.
Everything up until this point is working fine
Here's the problem:
The page returned has hyperlinks that are wickets. When these links are pressed, a window pops up within the page - it is not actually a window like a pop up created by javascript, it is more comparable to what you see when you 'compose a message' or 'poke' someone on Facebook ( am I the only one who still does that? ).
I need to capture the contents of that pop up window. There are usually multiple wicket links on a given page. Handling that should be easy enough with a loop, but I need to figure out the proper way to cURL those wickets first.
Here is the cURL i'm currently using to attempt to scrape the wickets.
(I'm explicitly defining the referrer URL, Accept, and Wicket-Ajax boolean as these were the items that were sent in the header when I traced the site). Link is the URL which looks like this:
http://www.someDomainName.com/searches/?x=as56f1sa65df1&random=0.121345151
( the random I believe is populated with some javascript, not sure if that's needed or even possible to recreate. I'm currently sending one of the randoms that I received on one particular occasion. ).
/bin/curl -v3 -b COOKIE -c COOKIE -H "Accept: text/xml" -H "Referer: $URL$x" -H "Wicket-Ajax: true" -sLf "$link"
Here is the response I get:
<ajax-response><redirect><![CDATA[home.page;jsessionid=6F45DF769D527B98DD1C7FFF3A0DF089]]></redirect>
</ajax-response>
I am expecting an XML document with actual content to be returned. Any insight into this issue would be greatly appreciated. Please let me know if you need more information.
Thanks,
Paul