Jmeter - How to execute two scripts together - jmeter

I have two scenarios which need to be executed together:
Scenario 1: Launch ---> Login..........---> Logout. Basically it creates something. There is a unique id received.
Scenario 2: Launch ---> Login..........---> Logout. This updates the unique id received from the previous scenario.
Scenario 1 needs to be run with 70 users and 2 with another 70 users. Totally 140 users for one hour.
Scenario 2 has a dependency on 1. The unique id generated from 1 needs to be passed into 2.
How do I proceed with this execution? Thanks in Advance.
Regards,
Ajith

Normally you should be using different Thread Groups for simulating different groups of business users so you need to configure the Thread Groups like:
In order to run both Thread Groups at the same time make sure that Run Thread Groups consecutively is not checked at Test Plan level
For passing the unique ID from the 1st Thread Group to 2nd Thread Group there are 2 approaches:
Use __setProperty() function (maybe in combination with __threadNum() function if each user need to have its own ID) to store the unique ID into a JMeter Property in the 1st Thread Group. The property can be read via __P() function in the 2nd Thread Group
Use Inter-Thread Communication Plugin

Related

Jmeter script for switching user lists

I have two data sets which contains teacher list and a student list,
Lets say total 30 students and two teachers and 15 assigned to one teacher and other 15 assigned to second teacher,
And I want to write a Jmeter script to below scenario,
login with first 15 students
Then login as the first teacher
Then again login with the second 15 students
Then login with the second teacher,
What is the best approach for this
Normally you should put the threads representing different groups of business or logical users under separate Thread Groups
So you will need 1 Thread Group with 15 threads for students and another Thread Group with 1 thread for teacher. The credentials can be provided using CSV Data Set Config.
If you want first login with 15 users and only after that login with 1 teacher you can use Inter-Thread Communication Plugin for implementing such synchronization.

Running Thread Groups for Different Actions

I want to create test plan for 100 users with different action as:
Thread group 1 with 40 users as a. launch website b. search
Thread group 1 with 30 users as a. launch website b. login c. logout
Thread group 1 with 30 users as a. launch website b. Search c. add to cart
How can I create this test plan?
You can create this test plan in many ways by using different elements. The simplest way to do this:
Add three thread group elements in your test plan and then define them accordingly.
Under each thread group, you can add your user-specific requests/sampler (login, search, logout)
Your test plan should be like:
If you want to run those thread groups one at a time, check the "Run Thread Groups consecutively" settings in the Test Plan element.

Is possible to select different table cells for different threads in same sampler in JMeter record and play back

I want to load test following scenario.
1.Submit student details in basic data insert page.
Result : Added record just bind into table grid in same page.
2.Click on edit button of particular added record in table.
3.Change student name and click on save again.
My key load test scenario is record edit scenario. I used CSV data config for test parameters. I want to know is it possible to select different table cells with different thread requests in same sampler to test my scenario in same tread group.
Please refer the attachment for sample screen.enter image description here
CSV Data Set Config element has Sharing Mode setting, by default it is All Threads.
This means that CSV file is shared across all JMeter threads and each Thread (virtual user) takes the next line each iteration so default configuration should be fine for your use case, just add more threads and/or loops in Thread Group or Loop Controller and JMeter will pick up the next line for each thread/iteration.
See CSV Data Set Config in Sharing Mode - Made Easy article for more information.

How to use two csv files in one test, one csv for login multiple users and second csv is to each user should select each record separately

My scenario is multiple users should login and after login each user should select the each record separately in application.
Define two Thread groups in your test plan. Under these two thread groups use different (Two) CSV files.
For Further Details, see CSV Data Set Config

Display work items which are waiting until backend service finishes

In my workflow I have iterative loop which check the table value until it matches a workflow value using DB Execute.
This stage arise after completing initial and step After values matches it will proceed to next step.this has created by adding delay function.
However my client required to show the list work items which are pending withing content navigator. Is there a way to achieve this.
Try to add users (who want to track status) in F_Trackers system Workflow Group.

Resources