How to validate if a process under test is running when running load test using JMeter

scx

I am establishing websocket connection using Websocket sampler to the service and sending messages,I have to check whether the service running or crashed during load testing using JMeter

I have gone through OS sampler,but didn't get the proper articles on how to check the process running

Dmitri T

My expectation is that if the service has crashed it will not be able to respond properly therefore JMeter will automatically mark your WebSocket Samplers as failed. You can also set a reasonable timeouts for the WebSocket Samplers so JMeter would not wait for the connection/response forever.

enter image description here

You can also add a Response Assertion to check whether your server returns expected data, absence of errors, etc.

With regards to checking the process it can be done either using OS Process Sampler in combination with Powershell Remoting if your server runs on Windows and SSH Command Sampler if it runs Linux or Unix-like system.

The commands you need to invoke are tasklist for Windows and ps for Unix and derivatives. Check out How to Run External Commands and Programs Locally and Remotely from JMeter article for above Samplers configuration examples for different operating systems.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

JMeter test not running

Failed to load dartium when running test

What jmeter configuration I should use when running load test of 25 threads

When running load test for Kafka messaging with Jmeter from Jenkins server getting an error

How to test if the Couchbase process is running in Ubuntu?

jmeter webdriver sampler is not running when the test is run thru jenkins

JMeter is not showing any results when running a test plan

SailsJS test if process is already running

How can I save a result set after running the Jmeter Test using a program (JAVA CODE)?

How to set CSV file in java code by running the Jmeter test using a program (Java Code)?

How to validate a selectors without running the entire test from beginning

How to resolve test.ts when running ng test?

How to fix "Test suite failed to run" when running a test with jest

Failed to load ApplicationContext when running Spring boot integration test

Running test script recorder error in JMeter

UrlGenerationError when running RSpec Test

UnicodeDecodeError when running a test in PyCharm

NoMethodError when running RSpec test

ShallowWrapper is empty when running test

Get aggregate summary values after running JMeter load test from java code

Saving transaction ids of failed responses while running the JMeter load test in Jenkins

Unit test not running using maven

Running py.test under pypy

Running behat test under different browsers

Running a CNTK model under a VS unit test

SSH bash script to test if java process is running?

Condition sometimes failing to test if a specific process is running or not

Test if process is running on remote units and output to log

Running PACT test is throwing a Ruby Load Error