-1

I'm new at using Apache Jmeter , i want to use Apache Jmeter for doing load testing , I've created java code using selenium , i want to integrate my java code into apache jmeter for doing load testing for my application.

I've installed Jmeter , then i'm unable to proceed further even after searching on Google for steps.

public static void main(String arg[]) {
    String ChromDriver = GeneralUtils.readConfig("ChromeDiver");
    ChromeOptions options = new ChromeOptions();
    options.addArguments("start-maximized");
    options.addArguments("disable-infobars");
    WebDriver browser = new ChromeDriver(options);
    Login(browser);
    Perform(browser);
    Logut(browser);
}

Now when run on eclipse , its just for one user. I want to do for bulk users. So is either any to export this project via jar or java then do load testing using Apache Jmeter.

3 Answers 3

0

can you try this webdriver plugin/listener for jmeter webdriver jmeter

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks Ramprasad but it seems totally different scenario.Would you tell about Java and selenium related
then, sorry, not sure what you are looking for . you may use selenium grid as well if you are looking for multiple test runs
0

There are various ways to run selenium. If you want selenium jar to be executed by Jmeter then Junit Request sampler can be used.Though, it may require some modification. Check the below link it has many options including Junit.

Running Selenium scripts with JMeter

Hope this helps.

Comments

0

Found the solution of integrating the Java Code + Selenium Script + Apache Jmeter.

Wrote a small blog on it. Can refer here : https://th3javacode.wordpress.com/2019/05/11/performing-load-test-using-jsajava-selenium-apache-jmeter-and/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.