JMeter Test Modulation?

We plan to migrate our test framework to JMeter. We have 50+ test cases, each of which repeats actions, for example, logging in and logging out. How can I modulate my approach?

What I am looking for specifically is “Add a test item from a file” so that I can, for example, add an entry code.

We also have things like connectionID that need to be passed on every request. In any case, can jMeter automatically replace all occurrences of its Jmeter variable? The atm proxy-recorder records the actual connection string, and we must manually replace it with $ {connectionID}. Is there a better way?

+5
source share
6 answers

This works great for me.

Create a new thread group at the bottom of the test plan and place a simple controller in it. Inside the simple controller, enter the code you want to repeat. I use two simple controllers, but one of them is actually a set of test tests for the database. Keeping all the threads included in the group, make sure that the thread group itself is disabled, otherwise it will run again by itself.

. , . ${variables}, , , . , .

Simple Controller Simple Controller, db.

> p > p > JDBC. .

. , .

Jmeter 2.3. , , .

+6

, , , . , - XML , sed awk script, .

" ", 2.6 ( , ) "Include Controller", . " " .jmx .

, , → test fragment → test fragment, , Include.

, , .

+2

2 :

+1

, , " ", , , .

, Samplers Config Elements. JMeter .

, JMeter, RPC.

0

On the one hand, you can run jmeter scripts in the "noGUI" model. You can specify jmeter test scripts to run and put them in a .bat file. How:

@echo

JMeter -n -t MyTestPlan1.jmx

JMeter -n -t MyTestPlan2.jmx

In another way that I agree with @matt, you can write a plugin to get what you need.

0
source

All Articles