Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
388 views
by The go-to Tester (190 points)
edited by
I learn 2 method's

1) By recording script and apply load on it  -> view result .

2) Selenium java code -> convert  into jar -> include that  jar in jmeter  -> add junit sampler script -> apply load  -> view result.

which method will give exact performance result.

and what is the difference b/w these 2 method's

1 Answer

0 like 0 dislike
by
selected by
 
Best answer
If you talk about the results vs performances, both are used for entirely different purpose.

With JMeter, you can speedup the communication with the server and so you can make sure that specific function works fine or not based on the response. But, it does not really gaurrentee you that your UI works as expected.

Selenium simply helps you imitates user actions on the browser of your choice. So, you can write your code once and execute it on different set of browsers to make sure that all functionality works fine on all browser.

I will give you an example here.

Say, you have an application which has many Ajax calls. Now, you have a change password functionality that changes password through AJAX call. It is very important for you to verify that this AJAX works across all different browsers. So, if you would have used Selenium, you can easily say that your JavaScript code works fine.

But, using JMeter, it might complete the AJAX call. But, it does not say that your JavaScript function works across all browsers.

Hope I am clear.
by The go-to Tester (190 points)
using selenium we can do functionality testing but we can't do performance testing .
by Master (1.2k points)
No, that's why we do have JMeter. Using JMeter you can trigger 1000s of users at the same time. You can do the same with Selenium as well. But, the amount of resources it requires will not make any sense to the business.
by Expert (748 points)
@ Chris, can you tell me how to test selenium code using jmeter


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...