Skip to main content

Posts

Showing posts from March, 2016

Distributed Load Testing with JMeter

Distributed Testing with JMeter When one JMeter client is not able to offer amount of threads required for load testing then distributed testing is used. In distributed testing - One instance of JMeter client can control number of JMeter instances and collect data from them Test plan does not need to be copied to each server, the client sends it to all servers note - JMeter will run all the threads on all the servers, hence 100 threads on 5 JMeter server would pump 500 threads in total. If many server instances are used, the client JMeter can become overloaded and so the client network connection. This has been improved in latest versions of JMeter by switching to Stripped modes, but you should always check that your client is not overloaded When Client (master) and Server (slave) nodes are on same network (no SSH required) Configure Client Node Herein client is referred as the machine controlling test execution on other JMeter nodes. This is also referred as

Create and execute Runnable JAR file for Java Project from command Prompt/Batch file

we will discuss steps to create an executable JAR file from a java project. This can be useful for our selenium Project. We are using Eclipse IDE for illustrating the example. Prerequisite –  It is assumed a java project is created. Steps to create an executable jar file:   Define the Run Configuration for execution 1.         Navigate to Run>Run Configuration for the Project. 2.         Select Java Application  and click on New launch configuration 3.         Provide the name to configuration and provide the main lass name to run. 4.         You can also define default argument for the execution. 5.         Save the configuration Creating run configuration   Export the Project as executable Jar file 1.         Click on Project>Export 2.         Select export destination as Java>Runnable JAR files Exporting as runnable JAR file 3.         Select Run Configuration as one defined in step A. Providing export location and launch