Using JMeter to test a Flex/Spring web app - spring

i have a Flex/Spring web project where the client is a flexapp that runs in the browser and the server components(Spring/Hibernate) runs in tomcat.
The compile dcluient files also obviously reside in the tomcat server.
i want to use JMeter to do some performance testing on the application.
i am new to JMeter and don't know how to connect the JMeter with the application.
From what i understand i cant use the http request based test cases as i am using flex.
Any reference will help.
What kind of plugins do i need on the JMeter instance?
How to configure JMeter to be able to call the application via flex?

You will need a third-party JMeter plugin.
See
http://www.ubik-ingenierie.com/blog/load-testing-flex-with-jmeter-made-easy/
How to enable amf sampler type
Performance testing Flex applications

Related

Embedding headless browser inside Spring Boot application?

For my Spring Boot application I need to be able to, in response to a request (HTTP request to a REST API) launch a headless browser, render some website (HTML+CSS+JS), perform some analysis and get the response back.
Previously I had built a prototype using JavaFX and was using this library https://github.com/MachinePublishers/jBrowserDriver
Do you know any other headless browser that can be embedded inside a Spring Boot application?
EDIT: For Node.js I think I'd try to use puppeteer
Spring Boot doesn't have any built-in support for headless browsers. So generally speaking, mentioning spring boot is irrelevant here. Hence I think you can use any headless browser than can be used from the/in conjunction with any java application even as an external process.
In particular in order to run another application from Java you might want to read This article
I can't really recommend any headless browser since I've never used any of those.
I remember there is Phantom JS a browser that our automation team has used in one of my previous jobs, but probably there are others as well.
You can also try to embed the browser you've mentioned into spring boot application.

Can we use Jmeter with Rest Assurred framework?

I need to know if we can implement Jmeter script with the RestAssured framework?
Theoretically yes, given you copy RestAssured .jar file along with dependencies to JMeter Classpath you should be able to use its methods from JSR223 Test Elements or reuse your existing tests via JUnit Request Sampler
However it would be much better to use JMeter's HTTP Request samplers as in this case you will be able to access networking metrics such as Connect Time and Latency, automatic failures on HTTP Status Codes above 399, Cookies, Headers, and Authorization management, etc.
See REST API Testing - How to Do it Right article to learn how to build an API test plan using JMeter

How to start with web service testing using jmeter?

I am trying to learn web service testing using jmeter.Can anyone tell me how to proceed which samplers and request should i use.How should i practice as I am not having any web service to test.
Thank you
The recommended test element for web service testing is "usual" HTTP Request sampler.
You can get a minimal web service test plan (it includes a web service endpoint by the way) in a couple of clicks like:
JMeter Main Menu -> File -> Templates -> Building a SOAP WebService Test Plan -> Create
References:
Building a WebService Test Plan
Testing SOAP/REST Web Services Using JMeter

Does application server provides what spring can provide

Bit confused with Spring framework and what capabilities application server provides.
I was reading this answer on same site
There he says,
Additionally App Server have components and features to support
Application level services such as Connection Pooling, Object Pooling,
Transaction Support, Messaging services etc.
That means we can optionally use apis of application server to manage transaction in our web application (inject web application :()and I think spring also provides transaction apis. So whats the difference?
Please, help me to make it clear. Thanks you.
When you use app server resources (transactions, connection pools etc.) directly in your application code, you can only run it when it is deployed on an application server or even worse only on that syme type of application server.
Spring allows you to use those resources and configure your application for different environments. The application can be run on any application server or on a simple Tomcat, or on different servers in the cloud.
Spring also allows you to run your code in tests (unit tests) without the need to start up an application server. This is absolutely needed to write automated tests.
Everything that can be done with an application server, can be done with spring as well.
There is a whole world of spring libraries and framework that provide features that are not available directly on application servers.
I can really recomand to give spring a try.....

How to run load test case from Jmeter for signalR hub api

I have SignalR hubs api , I have to do load testing for those Api from Jmeter tool.
I found there are some socket sampler plugin which I already integrate with jmeter but don't know how to run my signalR service.

Resources