Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Im currently new to end to end testing and planning to do load testing for a website I am currently working on. Im currently looking into jmeter and studying how to use it. My question is, would it make sense to only use one credential for the test? So basically I will be using my credentials then would throwing same HTTP requests multiple times to the server to simulate several users logging in and using the website.
Also if there are other ways to do load testing without using more than one credentials would be helpful!
Thanks in advance for the help!
It depends on your use cases and your site implementation, possible problems could be:
The site may not allow multiple logins under the same credentials like subsequent login will "throw out" the previously logged in user(s)
Depending on how session is being established/maintained you may receive the same Cookies for the same login
Most probably you will be able to implement browsing, but CRUD operations can be a big question mark
From JMeter's perspective it is not a problem to use only one account, any constraints will be on the system under test side.
Ideally you should treat each JMeter thread (virtual user) as the real user and it worth creating that many users as you plan to simulate and use CSV Data Set Config to parameterize your JMeter test so each virtual user could have its own credentials
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 days ago.
This post was edited and submitted for review 3 days ago.
Improve this question
Let's assume if I am doing 1000 users load testing using jmeter and blazemeter on a form page (survey form) is there any way those 1000users can reflect on submission page
I was getting entry on only one user
if this is the from i am filling and recording it with the help of blazeMeter
And I am only getting reflection of one user on the backend after load testing 1000users
This is how it's looking in jmeter
[what should I do so there will 1000 reflection of different id in my backend]
If you recorded your request using JMeter's HTTP(S) Test Script Recorder - you will have:
1 selected option
1 login
If you want to properly simulate 1000 different users you should:
Ensure that your JMeter test is configured to behave like a real browser
Ensure that each JMeter virtual user has its own username and password (or whatever is the way of identifying the user), the most commonly used test element for parameterization is CSV Data Set Config
It would also be a good idea to use different survey options for each user, you can either use the aforementioned CSV Data Set Config for this for pre-defined test data or if you prefer random - check out HTML Link Parser and Poll Example
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
My spring OAuth2.0 authorization micrservice is extremely slow. It takes 450+ms to check a token.Generating tokens takes 1.6s and above. What could be the reason? How can I improve the performance of my microservice ?
Details:
Auth and Microservices are running on my laptop
The time I mentioned is for the auth server with requests from only one microservice
Thanks in advance
Download a tool such as VisualVM to perform profiling of your application.
I would also record the elapsed time of individual methods to determine exactly which methods are taking the longest amounts of time.
Once you can verify exactly what code is taking awhile, you can attempt JVM optimizations, or review the code (if you're using an external library) and verify the implementation.
There might be three reasons,
Your services might be in different regions and OAuth2 server might be central one and in different region. If this is the case create instance of OAuth servers in all regions which you use so that your latency can be improved.
Check the Encryption techniques you used. always it's preferred to use SHA-256 Hashing but this might not be complete reason in some cases this could help.
Check your OAuth server Capacity, i.e. it's RAM processor and Storage volume. It might also be reason that multiple services makes same /generatetoken call to server and Tomcat makes it as One Thread per request and if this the case configuring your connection pool will also help.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want show a message to the user when more than one login is performed. For example, a user called John is logged into Computer A. Now John logs into Computer B. In this case system should show a message to John on Computer A that another login has happened.
In my opinion, this could be done using a push notification service such as Pusher or Firebase Cloud Messaging. Is that correct? or is there another way of doing this.
I'm storing the user's sessions in the database as soon as the login is performed so I can fire an event when more than the desired logins are performed.
Yes, Laravel pretty much as the basics built in to allow for this. If you look into the default boostrap.js file Laravel ships with, you can see the code is already there: see https://github.com/laravel/laravel/blob/master/resources/js/bootstrap.js#L32-L41
If using Laravel's echo server you've broadcast events as described here. Within your application you'd listen for events as explained here
You could also make this even simpler (although I'd recommend websockets).
You could stgore "active" logins in your database and display a message based upon that.
Note that you can avoid multiple logins. When logging out you invalidate other sessions. This feature is built into Laravel, see here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm going up to the mountains with no internet connection to present something. I'd like to be able to use interactive examples since I'll be presenting on a certain website.
So is there a way I can set up a proxy caching server or something to cache every call made in order to have a fully cached website experience with no internet connection?
I've looked at http://squidman.net/ but I'm not sure how it works or how to use it.
You might want to try something like this. It might be a lot more work than the steps below, but this could be a good starting point.
Create a local proxy server along with memcache or redis
Update the browser proxy settings to use your proxy server details
Make the local server look for the url in the redis server.
If found, return the data in the redis server
Else, do a web request and store the data in the redis server
You'll have to do this manually for the pages that you want while you have the internet connection. Once you've got all the data you need, you can work without the internet connection too.
If the pages are essentially static then you could use something like HTTrack http://www.httrack.com/ to make an offline copy
If there's anything requiring server side interaction or dynamic generation of pages you're most likely going to need to run your own local instance of the server.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Is there a web page based version of vb6's Winsock?
I want a web page to send a message to a vb6 program on a different PC.
Any Examples would be great help, thank you
Short answer: No.
Longer answer: You could create a VB6 ActiveX control, but it would be impractical to use due to security lockdown in most IE instalaltions and lack of support in alternative contrarian browsers.
Real answer: You are probably going to look at using some sort of scriptable HTTP Request component (such as XmlHttpRequest) though you must consider cross-domain request security even then. The "VB program on a different PC" would need to be an HTTP server or run under one via classic ASP, as a CGI application, etc.
And of course there would need to be a path from the client web page to the server (i.e. you have firewall and NAT issues to address) in any case.