jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker Graf <v.g...@levigo.de>
Subject Problems with Session etc.
Date Tue, 02 Oct 2001 17:19:01 GMT
Hello
-----

I am having a Problem concerning sessions and JMeter etc. and I hope 
you can help me.

Scenario: 

* Application that has a Login, Choice, Search and Result Page.
* If Login is successful, some Data (Called DMSSESSION)
	will be allocated in a 	HTTP-Session.
* If you try to access Choice, Search or Result without being
	logged in (no DMSSESSION-Object in the HTTP-Session)
	you are thrown back to the Login itself.

All this stuff works fine. Now I want to create Test-Plans/Thread
Groups which do exactly that, therefore I used the Proxy-Module.
The Stuff recorded looks pretty well, but the Problem is, that
the Session-Information seems to go to wherever .. 

Recorded Thing:
	Login -> Choice -> Search ->Result


Now checking the Console I get the following Messages:
Sampling url: http://localhost:8088/cocoon/dms/levibank/login
Sampling url: http://localhost:8088/cocoon/dms/levibank/login
Sampling url:
http://localhost:8088/cocoon/dms/levibank/choice;jsessionid=F8C2C323D0214485E829F0A3A5843491
Sampling url:
http://localhost:8088/cocoon/dms/levibank/choice;jsessionid=C9C5B1E4D2F5C51523F4C5B4E5534918
Sampling url:
http://localhost:8088/cocoon/dms/levibank/login;jsessionid=C9C5B1E4D2F5C51523F4C5B4E5534918
Sampling url: http://localhost:8088/cocoon/dms/levibank/choice
Sampling url:
http://localhost:8088/cocoon/dms/levibank/login;jsessionid=50673107652827053123E04499B1E4C2
Sampling url: http://localhost:8088/cocoon/dms/levibank/search
Sampling url:
http://localhost:8088/cocoon/dms/levibank/login;jsessionid=13295235D68224B001A2929543555273
Sampling url: http://localhost:8088/cocoon/dms/levibank/search
Sampling url:
http://localhost:8088/cocoon/dms/levibank/login;jsessionid=00E031F074D372A0017512E180556231
Sampling url: http://localhost:8088/cocoon/dms/levibank/result
Sampling url:
http://localhost:8088/cocoon/dms/levibank/login;jsessionid=9170467045A6A8D424F1F3F2D3177447

It seems that the Session-Information is lost ... 

Any Ideas about that ?? 


Thanx in Advance


Here comes the JMX-File:

8<----------------------------------------------------8<---------------------------------------------------------------
<?xml version="1.0"?>
<ThreadGroup name="ThreadGroup" numThreads="1" rampUp="0">
	<controllers>
		<LoopController type="org.apache.jmeter.control.LoopController"
name="Loop Controller" iterations="1">
			<configElements>
				<ProxyControl
type="org.apache.jmeter.protocol.http.proxy.ProxyControl">
					<property name="port">8081</property>
					<property name="name">Proxy server</property>
					<property name="includes">
						<Arguments/>
					</property>
					<property name="excludes">
						<Arguments/>
					</property>
				</ProxyControl>
			</configElements>
			<controllers>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property name="name">/cocoon/dms/levibank/login</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments/>
							</property>
							<property name="path">/cocoon/dms/levibank/login</property>
							<property name="method">GET</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property name="name">/cocoon/dms/levibank/login</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments>
									<argument name="username">volker</argument>
									<argument name="password">volker</argument>
									<argument name="libserver">LIBSRVRX</argument>
									<argument name="login">-</argument>
									<argument name="login-button.x">0</argument>
									<argument name="login-button.y">0</argument>
								</Arguments>
							</property>
							<property name="path">/cocoon/dms/levibank/login</property>
							<property name="method">POST</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property
name="name">/cocoon/dms/levibank/choice;jsessionid=C9C5B1E4D2F5C51523F4C5B4E5534918</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments/>
							</property>
							<property
name="path">/cocoon/dms/levibank/choice;jsessionid=C9C5B1E4D2F5C51523F4C5B4E5534918</property>
							<property name="method">GET</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property name="name">/cocoon/dms/levibank/choice</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments>
									<argument name="views">89</argument>
									<argument name="choice.x">33</argument>
									<argument name="choice.y">15</argument>
								</Arguments>
							</property>
							<property name="path">/cocoon/dms/levibank/choice</property>
							<property name="method">POST</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property name="name">/cocoon/dms/levibank/search</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments/>
							</property>
							<property name="path">/cocoon/dms/levibank/search</property>
							<property name="method">GET</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property name="name">/cocoon/dms/levibank/search</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments>
									<argument name="183_min"/>
									<argument name="183_max"/>
									<argument name="176"/>
									<argument name="177"/>
									<argument name="178_min"/>
									<argument name="178_max"/>
									<argument name="179_min"/>
									<argument name="179_max"/>
									<argument name="180"/>
									<argument name="181"/>
									<argument name="182"/>
									<argument name="restrict-results">100</argument>
									<argument name="results_on_page">20</argument>
									<argument name="search.x">43</argument>
									<argument name="search.y">2</argument>
								</Arguments>
							</property>
							<property name="path">/cocoon/dms/levibank/search</property>
							<property name="method">POST</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
				<HttpTestSample
type="org.apache.jmeter.protocol.http.control.HttpTestSample" name="Web
Testing" getImages="false">
					<defaultUrl>
						<ConfigElement
type="org.apache.jmeter.protocol.http.config.UrlConfig">
							<property name="port">8088</property>
							<property name="name">/cocoon/dms/levibank/result</property>
							<property name="PROTOCOL">http</property>
							<property name="domain">localhost</property>
							<property name="arguments">
								<Arguments/>
							</property>
							<property name="path">/cocoon/dms/levibank/result</property>
							<property name="method">GET</property>
						</ConfigElement>
					</defaultUrl>
					<configElements/>
					<controllers/>
				</HttpTestSample>
			</controllers>
		</LoopController>
	</controllers>
	<timers/>
	<listeners/>
</ThreadGroup>






-- 
Mit freundlichen Grüßen,

	Volker Graf

----------------------------------------------------------------------
* aus BMS und cogito wird levigo - infos unter http://www.levigo.de/ *
----------------------------------------------------------------------
levigo software gmbh   -----------   ein unternehmen der levigo gruppe
Max-Eyth-Strasse 35                              Tel: +49 7031 41613-0
71088 Holzgerlingen                              Fax: +49 7031 41613-1
mailto:v.graf@levigo.de                          http://www.levigo.de/
----------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message