JMeter Beginner Tutorial 20 - How to run Scheduled + Sequential execution

  Рет қаралды 57,225

Automation Step by Step

Automation Step by Step

8 жыл бұрын

Today we will learn:
HOW TO RUN A TEST FOR SPECIFIC DURATION
Thread Group - Forever - Scheduler - Duration
HOW TO RUN PERFORMANCE TEST SEQUENTIALLY
Test Plan - Run Thread Group Consecutively
HOW TO ADD WEBSITES SEQUENTIALLY TO A PERFORMANCE TEST
Thread Group - Forever - Scheduler - Duration + Startup Delay
_______________________________________________
HOW TO RUN A TEST FOR SPECIFIC DURATION
Thread Group - Forever - Scheduler - Duration
Step 1 : Thread Group - make loop count = forever
Step 2: Select Scheduler checkbox
Step 3 : Add duration (sec)
---------------------------
HOW TO RUN PERFORMANCE TEST SEQUENTIALLY
Test Plan - Run Thread Group Consecutively
Step 1 : Test Plan - select Run Thread Groups consecutively
---------------------------
HOW TO ADD WEBSITES SEQUENTIALLY TO A PERFORMANCE TEST
Thread Group - Forever - Scheduler - Duration + Startup Delay
Step 1 : Add duration (max) to first thread group - 30 sec
Step 2 : To consecutive thread groups add delay
example (for a 30 sec test plan):
1st Thread Group : delay = 0 sec | duration = max duration of the test = 30 sec
2nd Thread Group : delay = 10 sec | duration = max - delay = 30 - 10 = 20 sec
3rd Thread Group : delay = 20 sec | duration = max - delay = 30 - 20 = 10 sec
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
_______ ONLINE COURSES TO LEARN _______
FREE Courses - automationstepbystep.com/onli...
Udemy Discounts - automationstepbystep.com/udem...
GitHub - github.com/Raghav-Pal/
Udemy - www.udemy.com/user/raghav-pal-3/
Training schedule - automationstepbystep.com/trai...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
TestProject - bit.ly/2DRNJYE
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Kubernetes - bit.ly/2MJIlMK
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
GitLab - bit.ly/2kQPGyQ
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
PYTHON - bit.ly/2Z4iRye
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
Keep Learning,
Raghav
---------- Connect with Raghav -----------
Website - automationstepbystep.com/
LifeCharger - lifecharger.org/
Udemy Courses - www.udemy.com/user/raghav-pal-3/
Facebook - / automationstepbystep
Twitter - / automationsbs
KZbin - / automationstepbystep
Call for training at your location - raghav.qna@gmail.com
You can support my mission for education by sharing this knowledge and helping as many people as you can.

Пікірлер: 95
@RaghavPal
@RaghavPal 5 жыл бұрын
Check online courses & training - automationstepbystep.com/
@haajiraaliyar78
@haajiraaliyar78 5 жыл бұрын
Excellent.Keep up the good job.
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Haajira
@savitamaurya9009
@savitamaurya9009 4 жыл бұрын
Thanks for this video series.. learning a lot :)
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Savita
@hstestingworld
@hstestingworld 7 жыл бұрын
I have little problem to understand that when we use timer when we use jpgc and when we use sequential. use of all is look like similar
@shrilavanya5373
@shrilavanya5373 4 жыл бұрын
Awesome video Raghav!! Keep posting!! I have a scenario as follows, I have recorded a script with blazemeter. It is for opening the application, navigating to certain pages and clicking some links. It has to run for 10 users( threads). I want to execute the requests sequentially. That is, 1st request should run for 10users followed by 2nd request and so on. When I give threads as 10 in thread group and run, it is randomly running the requests. Can you pls suggest a way to achieve this...
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, Lavanya, you can put your requests in multiple thread groups in a test plan and then run the thread groups sequentially. You can also use Controller in your case.Check this - stackoverflow.com/questions/14321662/running-multiple-thread-groups-sequentially-in-jmeter stackoverflow.com/questions/43774318/how-to-run-multiple-request-sequentially-in-apache-jmeter
@sreenivasulugali7514
@sreenivasulugali7514 6 жыл бұрын
Thanks for the video. I have one quire, what is the use of start time and end time in scheduler ?
@RaghavPal
@RaghavPal 6 жыл бұрын
It is used to schedule the run at some particular later time.
@sreenivasulugali7514
@sreenivasulugali7514 6 жыл бұрын
Rajiv, I tried but I'm unable to schedule the test. I have given start and end data and time..but the test isn't starting for the schedule time
@RaghavPal
@RaghavPal 6 жыл бұрын
check this - stackoverflow.com/questions/8485222/start-time-and-end-time-in-jmeter-scheduler?
@ashokverma4814
@ashokverma4814 7 жыл бұрын
I have query regarding to perfmon (server agent whose set in jmeter lib & other put in ext) it give server application performance report oy its just system performance it just like control panel.
@RaghavPal
@RaghavPal 7 жыл бұрын
perfmon can give you information of your server performance.
@kavyarajanna3204
@kavyarajanna3204 4 жыл бұрын
Hi Raghav, How do i import multiple jmx files to jmeter and run those parallely?Each jmx files has different scenarios
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kavya, JMeter GUI will not have this feature, you can use command line to do this. Here are some references - stackoverflow.com/questions/26953030/how-to-run-multiple-jmx-scripts-together-in-jmeter
@sivasakthi5220
@sivasakthi5220 6 жыл бұрын
Hi Raghav, Thanks for the video, I have multiple users login authentication in JMX file, how to test multiple threads like this, kindly reply.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Siva, did you try using CSV file
@saitejaithagoni1168
@saitejaithagoni1168 3 жыл бұрын
Hi Raghav, The latest version of Jmeter no longer contains the scheduler option. Instead we specify thread life time. I would like to schedule Jmeter scripts to run at a specified time. Could you please tell me how can i do that?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Saiteja, let me check the latest ver and I will plan for updated tutorial
@abhijeetsingh089
@abhijeetsingh089 4 жыл бұрын
Sir can you please let me know a real time implementation of Jmeter so that during interview we can justify our hands on experience
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Abhijeet, JMeter is to check the performance of applciations. You can get some more inputs here - kzbin.info/aero/PLhW3qG5bs-L_L9lnUs8_hFz0wSw2WHvK2
@ashokverma4814
@ashokverma4814 7 жыл бұрын
One another query regarding to http url rewritter, its just use a regular expression whose fetch session & where need it put on , but url rewritter use in top and where we want that session id it will provide. If that point is correct then why come reg exp...
@RaghavPal
@RaghavPal 7 жыл бұрын
Ashok, is your query related to this video or generic. Please elaborate your question.
@ashokverma4814
@ashokverma4814 7 жыл бұрын
Its not a related to video but I would like to know why use http URL rewritter (session I'd ) but same work for regular expression .
@zalakbarot141
@zalakbarot141 4 жыл бұрын
Hello... Thanks for these videos. There is one doubt I have. When we create a test plan for sequential execution, after added 2thread groups. Both having duration 10-10secs. Then total run time should be 20 or each thread should be run for 10-10 secs. Because suppose 1st thread had duration 36-44 and 2nd had 48-58. And the total duration of my test plan is 25sec. But 1st thread had taken 8sec. And the delay between 1st and 2nd is 4sec. (Note: I had not added any delay between 2 threads in my test plan)
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Zalak, It also depends on the response time from the server. The request will be sent as per your settings of thread and time but will have to wait for server response too
@zalakbarot141
@zalakbarot141 4 жыл бұрын
@@RaghavPal Ohk, thanks for the quick response.
@rakhirahman4069
@rakhirahman4069 6 жыл бұрын
Under what scenario you would apply Sequential approach?
@RaghavPal
@RaghavPal 6 жыл бұрын
Rakhi, it generally depends on the requirements like if we don't want some samplers to run in parallel. Or maybe a case someone needs the setup samplers to run first and then other requests
@neelimapatnaik4327
@neelimapatnaik4327 2 жыл бұрын
Hi @Raghav, for the sequential run I have a query Let suppose My jmx scripts looks like: ThreadGroup Controller1 Http1 Http2 Controller2 Http3 Http4 Now for this jmx i want to run it for 20 Threads, But this should be run sequently always all set of 20 users. First should run for 1 user all the HTTP1,HTTP2,HTTP3,HTTP4 and then for second user and so on. While keeping threadgroup as 20. For now my script run for 2nd user, 3rd user and so on without completing for 1st user all the 4 http request. Can you suggest!!!
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Neelima, can check for Ultimate thread group
@1978debasis
@1978debasis 6 жыл бұрын
Hi Rajiv, I have 4 APIs+1 login API in a test plan.I have added constant throughout timer to control the tips during test.but my requirements is that for running 1000 threads,1000 threads will use login API and then 50% throughout will be achieved by API 1 and rest 3 pi's will achieve rest 50%.How can I achieve this.Could you please help
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi, do you want to achieve something like this - www.blazemeter.com/blog/using-http-cookie-manager-jmeter-not-cookie-jar
@RaviKumar-eh2rt
@RaviKumar-eh2rt 7 жыл бұрын
Hi Rajiv,How can I set the sequence of multiple samplers in the same thread group. ?Ex: I have 10 request under one thread group and want to set the order of each request to get executed.
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Ravi, this should help - stackoverflow.com/questions/41484269/jmeter-execution-order qatechnicals.wordpress.com/jmeter-learning-in-30-days/elements-in-jmeter-test-plan/scope-and-execution-order-of-elements-in-jmeter/
@patrickhagendijkepam8046
@patrickhagendijkepam8046 5 жыл бұрын
At 3.10 you tell that between start time and end time there are 10 seconds. However to me, from 05:29:59:648 to 05:30:06:502 there are a mere 6 sec en 854ms. The longest period in your example is between 05:29:59:648 and 05.30.08.652, which is 09.004 seconds difference. Where did I or you go wrong?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Patrick, will check this again on JMeter in some time
@aditiawasthi7766
@aditiawasthi7766 5 жыл бұрын
@@RaghavPal Yes same question from me as well and please clear that there are 5 threads and you have set the duration 10 sec with one sampler, now 5 users will hit the url at least once, so how will it work? Is it working like that it will stop the test in 10 secs no matter how many threads executed? And also i noticed in the timer on upper right it is showing 15 secs duration why so? please help
@ankushgupta4730
@ankushgupta4730 3 жыл бұрын
Same question for me as well.
@devenjain3619
@devenjain3619 4 жыл бұрын
Hello Raghav, how is it running to 10 seconds ? Am I missing something ? The job started at 33.54 and ends at 34.02 for the first Thread Group. Is there any other parameter which I am missing ? Thanks, Deven J
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Deven, I will need to recheck, You can try at your end and analyze
@munna45
@munna45 5 жыл бұрын
Hi Raghav do you have any documentation how to setup performance script for SAP HANA application?? I am facing lot of issue after login screen it it opening a new window and I am not sure how to capture new window through jmeter and how to identify urls through network tab ?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, sorry I don't have on this topic
@bendhimanish
@bendhimanish 7 жыл бұрын
can we divide the tests based on percentage i mean the no of requests to each thread
@bendhimanish
@bendhimanish 7 жыл бұрын
thanks rajiv will go through it
@deepakMCA2009knit
@deepakMCA2009knit 6 жыл бұрын
In JMeter 4.0 there is no option for Start Time/End time. Please suggest how I can schedule my script for some particular date and time?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Deepak, in the thread group you can set the duration
@deepakMCA2009knit
@deepakMCA2009knit 6 жыл бұрын
Automation Step by Step - Raghav Pal yeah but date time was not there. that's why I asked. If it would be there, I can better schedule my job.
@RaghavPal
@RaghavPal 6 жыл бұрын
Yes Deepak, but you can still use it. Delay overrides Start Time, and Duration overrides End Time.
@reddys3939
@reddys3939 3 жыл бұрын
Raghav bro how to add multiple thread group under test plan and how to run that...
@RaghavPal
@RaghavPal 3 жыл бұрын
You can add multiple thread groups. Can check this stackoverflow.com/questions/14321662/running-multiple-thread-groups-sequentially-in-jmeter
@Imran-M-
@Imran-M- 2 жыл бұрын
Hi Raghav, I need to load test 2000 user's count where each user uses the application for 7 hrs per day, should I set "Scheduler Configuration" to 7 * 60 secs = 420 secs and run the test?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Imran, can try that
@ARPITCHOUDHARY1
@ARPITCHOUDHARY1 4 жыл бұрын
Hi Raghav, can we do sequential execution for multiple requests in single thread group. For Ex:- No. of threads 20 , so first http1 should complete for all 20, then http 2 and so on.. But it should be in single thread group .
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Arpit, you can check for controllers in JMeter
@ARPITCHOUDHARY1
@ARPITCHOUDHARY1 4 жыл бұрын
Hi, Raghav I have checked the articles and all of them were confusing, could you please let me know the proper way it will be very beneficial. thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Arpit, you can start from here - kzbin.info/www/bejne/oHzMi2Sbm9V4a9k I will check if I get time to add more
@haiderali3789
@haiderali3789 3 жыл бұрын
Hi, you are running thread group sequentially, is there a way we can run sampler in 1 thread group to run sequentially like I have get, post and delete requests, when i run test for thread =10 then in 3rd or 4th thread delete api gets failed because I'm getting id from get request, so in 3rd or 4th step delete request execute before get request due to which it tries to delete same id which it was passed in last thread and which is already deleted in last step
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Haider, will need to do a practical to check
@sumiesuman8434
@sumiesuman8434 2 жыл бұрын
Hi Rajiv, i have a job in jenkins which should run for 7days long run. Have set up the duration to 7days in jmx file and running that job in jenkins but its running only for 2days even i scheduled for 7days any idea where i did mistake or how can i correct it to run for 7days. Please help
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Sumie, will need to check the setup and logs
@cloudsets9011
@cloudsets9011 2 жыл бұрын
question: if thread is 5 and rampup is 1, how come it only have 16 samples. Shouldn't it have 50 samples? 5 per second?
@RaghavPal
@RaghavPal 2 жыл бұрын
the ramp up time is for users and not samples
@stefanjevtovic2880
@stefanjevtovic2880 3 жыл бұрын
Hello, I have JMeter 5.2 and in Thread Group I don't see Scheduler.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Stefan, in case there may be some change due to new version, A new tutorial is coming this monday. Stay tuned...
@manasagurumurthy5360
@manasagurumurthy5360 Жыл бұрын
Awesome videos Raghav sir :) Actually i am executing load tests in Non GUI Mode with huge load like 20000 users/sec or so and i have set my java heap size to max size. Its working perfectly fine and i am able to see the results in the csv files. However i am encountering this ERROR ---Unable to write to stream jmeter.log for appender jmeter-log org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing to stream jmeter.log and the tests come to a halt for a long period of time and then starts processing again. Can you please suggest how to overcome this error. Thank you.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Manasa, not too sure on this, Pls check if this can help - stackoverflow.com/questions/63053128/getting-an-error-unable-to-locate-appender-jmeter-log-for-logger-config-root
@hardiksachania4253
@hardiksachania4253 3 жыл бұрын
how to automate JMX file (i.e) every 1 hour it will run automatically without using jmeter UI .can we do through JMETER cli ?If yes then how can we run that jmx file at every 1 hour ? Can you please help me.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Hardik, You need to generate a command and then can use a cron scheduler or any CI tool like Jenkins
@ncsics6994
@ncsics6994 5 жыл бұрын
I need to iterate an API request one after one after it returns the response. Because it returns the same response several times during the iteration. Can you help me out to fix this issue?
@RaghavPal
@RaghavPal 5 жыл бұрын
You can use loops controller.
@jkapish2011
@jkapish2011 5 жыл бұрын
I wanted to try the following scenario in jmeter. I was wondering if someone could help me with this. Lets say i want to run a test with 40 users for an hour but i want it to run for the below use case: I want 10 user to ramp up in 0 seconds (start together) and run for 15 mins and keep on running. After 15 mins i want another 10 users (total user count is 20 now) to do the same (start all tog-other ) and keep on running. So in the end of this test there will be 40 users running but i want the add 10 users every 15 mins and have them run till the end of my duration. How can i achieve this in jmeter? Thanks!!
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Kapish, pls try Ultimate Thread Group
@jkapish2011
@jkapish2011 5 жыл бұрын
@@RaghavPal Thanks raghav that worked for me
@thangnguyenxuan1549
@thangnguyenxuan1549 3 жыл бұрын
hello, why i dont see Start time and end time in jmeter, My jmeter version 5.4.1
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Thắng, not sure if it's due to ver, Can you point what time in video are you referring to
@huynhlong1066
@huynhlong1066 4 жыл бұрын
To clear, You need to make example with login
@RaghavPal
@RaghavPal 4 жыл бұрын
Will check on this Huỳnh
@yazh403
@yazh403 2 жыл бұрын
premature end of content length in jmeter ... How to solve this issue
@RaghavPal
@RaghavPal 2 жыл бұрын
mostly it is because you did not receive a complete response, may be because server is overloaded, This can be a performance issue, Try to add some think time
@N19wayne
@N19wayne 3 жыл бұрын
Hi sir, I have question, in 2 threads, if i login some page in first thread, i don't want to login in the second thread but possible to work in this page (logged in). i have a HTTP Cookie Manager. Is it possible?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, in case you get some token after login, can pass the token to the next requests. Can check correlation video
@N19wayne
@N19wayne 3 жыл бұрын
@@RaghavPal Thank you, i did use Pre and Post Beanshell, and it's worked!! :D
@lalitafunde92
@lalitafunde92 3 жыл бұрын
Suppose i want to achieve 20 TPS in jmeter. How to achieve
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Lalita, you can use Constant Throughput Timer or Throughput Shaping Timer. can check this - stackoverflow.com/questions/43508652/how-do-i-achieve-the-expected-throughput-in-jmeter-for-a-given-scenario
@ANJALISHARMA-of5dh
@ANJALISHARMA-of5dh 2 жыл бұрын
Why the loop count is clicked as forever
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Anjali, may have done to show the reports with considerable data
@vineshkumar1596
@vineshkumar1596 2 жыл бұрын
How to run sequentially in Non -GUI mode
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Vinesh, If you have done the setup from GUI, it will run the same way when running from command line, OR you can create multiple commands and run sequentially
@vineshkumar1596
@vineshkumar1596 2 жыл бұрын
@@RaghavPal tq
@kavyarajanna3204
@kavyarajanna3204 4 жыл бұрын
Hi Raghav, How do i import multiple jmx files to jmeter and create thread groups,each jmx files has different scenarios
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kavya, on the GUI, you can work with one jmx at a time. Although you can use test fragments, but not suited for this purpose. The option will be to goto command line
JMeter Beginner Tutorial 21 - Correlation (with Regular Expression Extractor)
12:31
Automation Step by Step
Рет қаралды 148 М.
C# Stress Testing your .NET applications
10:05
tutorialsEU - C#
Рет қаралды 6 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 19 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 51 МЛН
S1E5 Learn JMeter Series - Deep dive into HTTP Request
30:37
QAInsights
Рет қаралды 7 М.
JMeter Top most asked Interview Questions | JMeter refresher by Raghav Pal |
41:28
Automation Step by Step
Рет қаралды 56 М.
Learn JMeter Series #66 - Running JMeter Tests using Maven
8:14
Distributed Load testing - JMeter Tutorial 21
18:05
HelpingTesters
Рет қаралды 27 М.