I have a setup like this,
Test Plan =>Execute Threads in Parallel
-THread Group 1
-THread Group 2
-THread Group 3
-THread Group 4
-THread Group 5
I want 1,2 and 5 to execute in parallel. 3 has to start after 1 finishes and 4 has to start after 2 has finished. How can I create such inter dependency in the execution order?
Use Transaction controller or simple controller to execute one after the other.
Implement the logic in the Thread Groups in Simple Controllers. Let's name them SimpleController 1 ... SimpleController 5.
In the TestPlan choose parallel execution of thread groups. Create three Thread Groups A, B and C.
Thread Group A has Simple Controller 1 and 3
Thread Group B has Simple Controller 2 and 4
Thread Group C has Simple Controller 5
The above arrangement would achieve your dependency requirements.
Related
Jmeter executed the following test using only one thread Thread group 1: Thread Group
In this test there are the following Thread group properties: Thread Group properties
Loop controller configuration: Loop Controller
Accoring to this scenario, Http request GET CustomerDataUpdate should be executed simultaneously using N (50) threads, for each call taking new customer ID from a CSV file (CSV Data Set Config Customers) and Http requests POST StockUpdate and GET PricesUpdate should be executed in parallel in a loop for each Customer N2 (50) times, taking new product ID from a CSV file (CSV Data Set Config Products).
Why my test is executing all the steps only using Thread Group 1 (as shown below) ? Thread Names
I am expecting this test to be executed using N (50) Threads simultaneously for N unique Customers and N2 (50) unique Products for each Customer, getting Customer ID and product ID from a CSV files.
What your test does is:
50 threads and 50 loops in the Thread Group mean that CustomerDataUpdate will be executed 2500 times
After executing the CustomerDataUpdate each thread will execute StockUpdate and PricesUpdate 50 times each due to the Loop Controller
In total you will have:
CustomerDataUpdate - 2500 times
POST StockUpdate - 125000 times
GET PricesUpdate - 125000 times
Neither CustomerDataUpdate nor StockUpdate will not be concurrent as Parallel Controller is executing its children in parallel, are you looking for the Synchronizing Timer?
Hi I am super new to SSMS.
I need to create a random audit that will look at one order and all the activities that is attached to that order to return. It will return top 40 order # randomly but with multiple activities.
Example table
Order# Activities
1 Jump
1 Jump
1 Run
3 Jump
3 Run
3 Duck
4 Kick
5 Run
6 Duck
6 Kick
So far this is what I have.
Select *
From Project
Order by NEWID()
I found something similar but I did not understand it.
I have a data grid , i have to update 1 column(MV14 refer image attached) from 6 rows (eg: if value is 0 --replace with -2 )if the count of the data in grid is above 6 and then go to next requests.If the count is less than 6 I want to pick random digit from 1 to 5 and update random no of columns from 1 to 5 .
In this case if i take 2 if controllers , there will be 2 copies of the next requests in both if controllers. What can be done to remove the duplication in Jmeter?
You can use Switch Controller instead of 2 If Controllers
You can use Test Fragment to keep your HTTP Request sampler in order to avoid copying and pasting the request itself- this way your test will be easier to maintain as in case of changes you will need to perform them in one place only.
So we have a hierarchy relationship for phases of a process:
Overall Phase
|----Phase 1
|----Intermediate Phase
| |----Phase 2
| |----Phase 3
|----Phase 4
Then we have many objects that go through these phases. These objects belong to one of several different types, let's call them A, B, and C.
So we can build a pivot report like this which tells us the total (or average) time spent in each phase for each different type:
Phase A B C
Overall Phase 11 11 12
|----Phase 1 3 2 4
|----Intermediate Phase 6 6 6
| |----Phase 2 2 1 1
| |----Phase 3 4 5 5
|----Phase 4 2 3 2
Now the thing is, each phase has a goal associated with it, which we want to be able to compare to the actuals easily. I think we could do it where there would be a goal column paired with each different type column, but what if we wanted instead to only display the goal at the end, like this:
Phase A B C Goal
Overall Phase 11 11 12 13
|----Phase 1 3 2 4 3
|----Intermediate Phase 6 6 6 6
| |----Phase 2 2 1 1 2
| |----Phase 3 4 5 5 4
|----Phase 4 2 3 2 4
Our first thought was to do a union report, but this is not supported with hierarchical columns. Having a seperate report won't work because expanding or collapsing the hierarchy will leave the two out of sync.
This is new ground for us, and we're drawing a conceptual blank about how to handle such a thing. Any ideas about what we need to do in order to accomplish this?
Current (simplified) table structure is something like this:
**Fact table**
OBJECT_FK
PHASE_FK
PHASE_START_DATE
PHASE_END_DATE
**Phase Dim**
PHASE_KEY
PHASE_NAME
PARENT_PHASE_KEY
GOAL
**Phase Hierarchy**
ID
PARENT_ID
LEVEL
IS_LEAF
**Object Dim**
OBJECT_KEY
TYPE
In OBIEE, you have to model a fact fragmentation.
Goal is a value that is dependent of a combination of dimension. You can have a goal by phase but you can also have a goal by phase and by department for instance.
Then create another fact table with two columns:
the phase id
your goal
And import it in your model.
You have an example here. They are talking about quota and the table is in an Excel file but the concept is the same.
http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/biee/r1013/bi_admin/biadmin.html#t8
Cheers
Nico
I fill the database with JMeter. There is 2 thread groups which fill 2 tables in parallel.
After these 2 tables filled I need to start the last thread group to fill the third table.
How can I do it?
Is it possible to synchronize JMeter Thread groups?
You could do a while controller for the third thread group, and do something like this:
ThreadGroup 1
- Code to fill Table 1
- Set a UserDefined Variable "Group1_done==true" as the last step
ThreadGroup 2
- Code to fill Table 2
- Set a UserDefined Variable "Group2_done==true" as the last step
ThreadGroup 3
- WHILE CONTROLLER "Group1_done==true"&&"Group2_done==true"
- Code to fill Table 3