jmeter/xdocs/demos/AuthManagerTestPlan.jmx

91 lines
2.8 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?>
<TestPlan>
<threadgroups>
<ThreadGroup name="Thread Group" numThreads="1" rampUp="0">
<controllers>
<LoopController type="org.apache.jmeter.control.LoopController" name="Loop Controller" iterations="1">
<configElements>
<AuthManager name="HTTP Authorization Manager">
<ConfigElement type="org.apache.jmeter.protocol.http.control.Authorization">
<property name="password">spot</property>
<property name="url">http://localhost/secret</property>
<property name="username">kevin</property>
</ConfigElement>
</AuthManager>
<ConfigElement type="org.apache.jmeter.protocol.http.config.UrlConfig">
<property name="name">HTTP Request Defaults</property>
<property name="PROTOCOL">http</property>
<property name="domain">localhost</property>
<property name="arguments"><Arguments>
</Arguments>
</property>
<property name="path">/</property>
<property name="method">GET</property>
</ConfigElement>
</configElements>
<controllers>
<HttpTestSample type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="SecretPage1" getImages="false">
<defaultUrl>
<ConfigElement type="org.apache.jmeter.protocol.http.config.MultipartUrlConfig">
<property name="PROTOCOL">http</property>
<property name="arguments"><Arguments>
</Arguments>
</property>
<property name="path">/secret/index.html</property>
<property name="method">GET</property>
</ConfigElement></defaultUrl>
<configElements>
</configElements>
<controllers>
</controllers>
</HttpTestSample>
<HttpTestSample type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="SecretPage2" getImages="false">
<defaultUrl>
<ConfigElement type="org.apache.jmeter.protocol.http.config.MultipartUrlConfig">
<property name="PROTOCOL">http</property>
<property name="arguments"><Arguments>
</Arguments>
</property>
<property name="path">/secret/index2.html</property>
<property name="method">GET</property>
</ConfigElement></defaultUrl>
<configElements>
</configElements>
<controllers>
</controllers>
</HttpTestSample>
<HttpTestSample type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="NoSecretPage" getImages="false">
<defaultUrl>
<ConfigElement type="org.apache.jmeter.protocol.http.config.MultipartUrlConfig">
<property name="PROTOCOL">http</property>
<property name="arguments"><Arguments>
</Arguments>
</property>
<property name="path">/index.html</property>
<property name="method">GET</property>
</ConfigElement></defaultUrl>
<configElements>
</configElements>
<controllers>
</controllers>
</HttpTestSample>
</controllers>
</LoopController>
</controllers>
<timers>
</timers>
<listeners>
<Filer type="org.apache.jmeter.reporters.Filer" name="File Reporter" verbose="true" append="false" autoFlush="false" viewSubmitData="true" file="auth-manager.dat"/>
</listeners>
</ThreadGroup>
</threadgroups>
<configElements>
</configElements>
</TestPlan>