Implementing document upload in jmeter - jmeter

I have to test the upload document feature functionality of my application.
The request type is a http request.
Jmeter is not recording the upload feature functionality.
How can i record document upload sampler on jmeter & then simultaneously parameterize it for uploading documents from different logins?

Why not to search first through jmeter-tagged questions?
Asked many times before.
This should work for you: JMeter - File upload and file download scenario.

Related

How Record WEB Application and test load/Performance in JMeter

I tried to test one WEB application. I log in to the application and then go to diff. menu. In JMeter, I used "HTTP(S) Test Script Recorder" to record the application after stopping the recording many requests are created and I tried to run those requests then some requests failed it shows error 403, "Invalid username and password ". Here I also used a recording controller.
So I need help to test the load /performance of my web application for multiple users so how is it achieved?
I don't think that "many" requests should be created, I can think of 3:
Open login page
Perform login
Go to "diff" menu
If you're seeing "many" requests most probably you're recording a lot of stuff that you should not be recording like embedded resources
There is Recording Template which is kind of handy, it has pre-defined patterns for excluding of common file types which you should not be recording
Also be aware that in the majority of cases you won't be able to successfully replay a set of recorded requests without correlating the dynamic parameters.

Is it possible to measure Sharepoint Online page load times with Splunk?

Is it possible to measure Sharepoint Online page load times with Splunk? I know it can be done with Application Insights. But I need to know if it's possible with Splunk
Yes it can be done. You could configure a splunk rest url and call it in the header of the sharepoint. So when any page is called you can pass arguments as name of the page loaded to the url. And push an event to splunk as scripted data input.

Web API load testing

When I record script, my login page recorded as html. but other pages not recorded as html pages rather it shows as js and web APIs. I cannot able to record or create script using html url. Kindly anyone help what exactly the solution. I can able to load test only web API or any way to create script using html urls.
It depends on your application nature. The whole idea of web applications load testing is simulating real users which are using real browsers as close as possible so ideally your load test should exactly mimic the HTTP Requests originating from browser when user is doing actions according to application use case(s).
You should not be recording .js files as well as .css files, all images and other media (audio, video, flash, whatever), instead of this you need to configure JMeter to download embedded resources instead of recording and replaying the relevant requests.
If you need to load test the API itself you can omit simulating browser and send requests directly to API endpoints, check out Building a WebService Test Plan JMeter User Manual chapter for more details.

re-use jmeter recorded file but gives error

I recorded google search step using jmeter. After finish recording I have save my recorded file but recorded steps are not readable:
Also I when I re-open that file and try to run this it gives error:
Anyone please help me on how can I run the recorded file
'ocsp request' usually comes while recording with google chrome or when there is some google id running in back ground. you will not be able to see the values in plain text as google authentication is always encrypted
e.g: In the screenshot provided its client1.google.com is a google server.
Please be informed that you would need to perform such tests only on authorized websites , In a scenario of this request which has come up during recording, please feel free to delete it

Performance tool for Web Single Page Application

Please, assist me on this one.
Project is for Web Single Page Application that does not provide different urls for different view. Everything loads by clicking within one screen. I was asked to find performance tool to test such application.
I will not be able to get HP Loadrunner or any such tool that is in the same price range. Maybe there is an open source or how to use JIRA for my project?
Thanks
When you click somewhere, even if screen doesn't change, browser sends relevant HTTP Request (usually GET or POST). JMeter acts on protocol level, it doesn't actually "render" the page or execute JavaScript but it can send any HTTP Request.
So you should be able to record all the requests using JMeter's HTTP(S) Test Script Recorder and replay them with larger number of threads according to your load test scenario.
You can use View Results Tree listener to visualize request and response details and JMeter Assertions to ensure that test actually does what it should do.

Resources