Apache JMeter Scripting Challenge 2 #youtubevideo #jmeter #java #javascript #testing #viralvideo #youtuber #groovy #beanshell #javascript #javaprogramming #viral #testing #apache #youtubers #ScriptingChallenge #jmeter #interviewquestionsandanswers
****************************************************************************
Apache JMeter Scripting Challenge 2
***********************************
Scenario:
*********
I have one scanario 1st request pass only next request will be executed, other wise first
request is not passed 2nd request never executed stop the test This is the Scenario.
Solution:
*********
TestPlan
Threadgroup
httprequest-1
httprequest-2
Beanshell Pre-Processor
view results tree
Beanshell Pre-Processor
***********************
var rc=prev.getresponsecode();
var rm=prev.getresponsemessage();
log.info("****RC is****:"+rc);
log.info("****RM is****:"+rm);
if(!rc.equals("200"))
{
org.apache.jmeter.engine.standardjmeterengine.stopthread(thread.currentthread().getname());
}
output Example
http request1 : www.google.com
http request2 : www.bing.com
**************************************************
On this page of the site you can watch the video online Apache JMeter Scripting Challenge 2 with a duration of hours minute second in good quality, which was uploaded by the user Performance Test Engineer - English - 1 27 April 2023, share the link with friends and acquaintances, this video has already been watched 849 times on youtube and it was liked by 12 viewers. Enjoy your viewing!