Sometimes it is necessary for the load test to send a linux command to verify the content/file exists in the remote linux server. Every time it is not a fair idea to connect remote server by file server browsers like winscp ,putty etc… as it is a load test. In such situations JMETER offers a sampler called ‘SSH sampler’ . This sampler is introduced to communicate with the linux server over ssh shell . It will be definitely useful for both Functional and Performance Testers.
Apache Jmeter’s SSH Sampler:
Sampler which will connect to linux server and execute linux commands
Steps in detail:
1) Download SSH Sampler plugin from google’s website https://code.google.com/p/jmeter-ssh-sampler/
2) Copy the jar to your local Apache Jmeter’s “lib/ext” folder.
3) Download “jsch-0.1.51.jar” and place it in your local Apache Jmeter’s “lib/” folder.
4) Open Jmeter-> ThreadGroup->Samplers-> SSH Command
5) Give hostname,username, password and the linux command to be executed
If you are using the old IBM installation manager, during install you may face errors like this.
bash: ./install: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Installation Manager is a 32-bit application and requires 32-bit versions of OS system libraries. These libraries are not installed on RHEL 6.0/6.1 x86_64 (64-bit) by default. You must install these 32-bit libraries on your system before you run Installation Manager.
Configure yum on your server, install the required 32bit binaries.
Web Service Definition Language in short WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure oriented information.
WSDL is a
XML document written to describe a web service.
It specifies the location of the web service and the operations or methods the web service exposes.
A WSDL document uses the following elements in the definition of network services (Web services)
Types – a container for data type definitions. This describes the data. The XML schema Language(Known as XSD also) is used for this purpose.
Message – an abstract, typed definition of the data being communicated. The contains the information needed to perform the operation.
Operation – an abstract description of an action supported by a service. This defines the actions and the way the message is encoded.
Port Type – an abstract set of operations supported by one or more endpoints.
Binding – a concrete protocol and data format specification for a particular port type. Defines the interface and the binding style.
Port – a Single endpoint defined as a combination of a binding and a network address. It defines the address or the connection point to a web service.
Service – a collection of related endpoints
WSDL 1.2 has been renamed to WSDL 2.0, because of the major differences, like
Removed message constructs.
Operator overloading not supported.
PortTypes renamed to interfaces.
Ports renamed to interfaces.
Added further semantics to the description language.
“IBM WebSphere MQ can transport any type of data as messages, enabling businesses to build flexible, reusable architectures such as service-oriented architecture (SOA) environments. It works with a broad range of computing platforms, applications, web services and communications protocols for security-rich message delivery. WebSphere MQ provides a communications layer for visibility and control of the flow of messages and data inside and outside your organization.”
WebSphere MQ provides:
Versatile messaging integration from mainframe to mobile that provides a single, robust messaging backbone for dynamic heterogeneous environments.
Message delivery with security-rich features that produce auditable results.
High-performance message transport to deliver data with improved speed and reliability.
Administrative features that simplify messaging management and reduce time spent using complex tools.
Open standards development tools that support extensibility and business growth
Symmetric encryption is the oldest and best-known technique.
A secret key, which can be a number, a word, or just a string of random letters, is applied to the text of a message to change the content in a particular way.This might be as simple as shifting each letter by a number of places in the alphabet.
Symmetric encryption uses the identical key to both encrypt and decrypt the data.
As long as both sender and recipient know the secret key, they can encrypt and decrypt all messages that use this key.
For Loadtesting Apache Active MQ , JMS-Point-to-Point sampler in Jmeter will help us. Think that you do not have JNDI settings and no apache activemq for JMS messaging, instead IBM Websphere MQ is in place. One day your manager is coming and asking you to test IBM MQ using open source testing tool as they do not ready to pay for small scale performance testing.
In that case , here is the steps to use Jmeter to load test IBM Websphere MQ.
The content here is pretty much precious and definitely it will save your valuable time 🙂
There seem to be more cost saving for MQ ,SOAP,FTP protocols when considering other proprietary tools in the market.
Customized/Specialized reports are given in proprietary tools to attract the end users. Jmeter has simple reports and it will be helpful to analyse the server logs and get into the root cause of the performance issue. So if you do not want Grand UI reports , Jmeter will save more money from you pocket.
User friendly UI.
All the components are pre-built and readily available for use. Even the person who is not much comfortable with coding can understand and script in jmeter.
Test can be executed in NON-GUI mode to save the machine resources.
You can extend or write the new samplers in java and it can be included in jmeter.
You can send the files with the request using simple configuration.
It is easy to run multiple users (1000 User logins in ~2GB system) without worrying license cost.
Simple and effective session correlation for a web application.
You can run multiple scripts consecutively(One at a time) , also all at a time (concurrently)
Response time results can be exported to CSV.
Assertions will help to validate the response from the server easily.
You can send JSON string and test JSON response for HTTP request.
Various timers are there to introduce the delay concept