Running Thread Groups for Different Actions - jmeter

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.

Related

Jmter performance of website parallel users

I have a scenario like to checks the performance of a website. The script should cover the scenario described below.
4 parallel users will open the web page (each user will start 5 seconds after the previous user) and each user will execute the following flow 3 times:
Search for a product on the main page
look-up the product within the search results
if found, open the product's page (if not found start over with another search)
add the product to the cart
check the confirmation message that the product has been added successfully to the cart
Each time the user executes the flow, it should search for a different product (it is ok if different users search for the same products).
I have recorded script in jmeter, but in http request showing as
pls provide suggestions
4 parallel users will open the web page (each user will start 5 seconds after the previous user) - Thread Group configured like
if found, open the product's page - put the HTTP Request samplers which are responsible for opening the product page and adding it to cart under the If Controller
check the confirmation message that the product has been added successfully to the cart - take a look at Response Assertion
Each time the user executes the flow, it should search for a different product - take a look at CSV Data Set Config

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.

Jmeter - How to execute two scripts together

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

How to create group and assign privileges to Group in Dynamics CRM?

I am implementing a Sales process where it includes 3 set of users. Set 1 consists of Sales Analyst, Set 2 consists of Sales managers, and Set 3 consists of Sales Directors.
In my sales Process, I am using 3 different Process flows against an opportunity. If users under Set 1 logs in they only need to see views and Process assigned to Set 1 users and same in the case for other Set users (Set 2, Set 3).
Is it possible to create a group/profile and assign users to it, so that in future if I create any view or process I only need to assign that process/Views to a particular Set (Set1, Set 2, Set 3)?
Is it possible to achieve through Dynamics?
2 different things.
Business process flow: To show only BPF1 to Set1 (sales analysts), create a security role (or use existing sales analyst role which might have assigned to only Set1 users), map this role to BPF1 using “Enable Security Role” option
Catch: so far created records with BPF1 will still show it for Set2 users.
Views: To show PublicView1 only to Set1, there’s no easy way to regulate it using Team or Security roles. But you can create Personal view & share with Set1 users or a Set1Team (add all Set1 users to this team)

InterstageBPM : assign task to subset of role

How in Interstage BPM are we able to assign an activity to a subset of the Role to which it has been assigned?
For example, I have an activity DOSOMETHING which is assigned to GROUP X.
GROUP X is composed of users A, B, C, D and E.
If we need to assign the task (based on the value of an UDA) to a subset composed of users D and E, how can I proceed without having to duplicate the activity and adding a conditional node in the process definition to route the flow to the duplicated activity used to target the subset group?
So this is what the Role Actions are for. You will want to use the
Go to the Activity Properties.
Click on Regular Actions and select the Role Action Set.
Add the action: Assign Task to User in the Workload Balancing Actions folder.
You can then do a few things. You can hard code a comma separated list of users. Or, get the list of users from a UDA. Or, if you want to get the subset of users from another Role you can use the Get Role Members action from the Directory Actions. Pass it the Role name and then put the return value in a UDA and pass that UDA to the Assign Task to User action.

Resources