You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by ZK <st...@gmail.com> on 2012/06/25 15:15:18 UTC

Re: How to use Dynamic ID ?

Hi,
you need to use the '
http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor
Regular Expression Extractor ' to 'grab' the dynamic ID for use later on in
your test



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/How-to-use-Dynamic-ID-tp5713702p5713703.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: How to use Dynamic ID ?

Posted by venkatakurathi <ve...@hotmail.com>.
yes.use the correct regular expression provided by prabhu.it will definitely
work.
before to that use the regex tester to verify.

before rerunning add debug sampler in your testplan...
once you see the debug sampler response u will come to know a lot more about
the issue.



-----
Venkat Akurathi
91-9703186688
--
View this message in context: http://jmeter.512774.n5.nabble.com/How-to-use-Dynamic-ID-tp5713702p5713748.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: How to use Dynamic ID ?

Posted by venkatakurathi <ve...@hotmail.com>.
you have given wrong regular expression....

simple example i will give....

assume the that response i am getting is...

Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at


...here i need to capture version number...then regular expression go like
this



Reference Name : dynamicid 
Regular Expression:  Version (.+?) (the "License");
Template: $1$ 
Match No: 1 
Default Value: null 


this will give dynamicid=2.0

i will use it wherevr i need in the subsequent requests using ${dynamicid}

using debug sampler will give you how many instances that regular expression
works...what are all the values it is getting with that expression...


so give me the response where application is sending this dynamic id ...






-----
Venkat Akurathi
91-9703186688
--
View this message in context: http://jmeter.512774.n5.nabble.com/How-to-use-Dynamic-ID-tp5713702p5713741.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: How to use Dynamic ID ?

Posted by venkatakurathi <ve...@hotmail.com>.
hv u identified in which response the value of projectid is being generated?
if so what regular expression u hv used to extract the value.....use debug
sampler to verify whteher the value is properly extracted or not...
then replace the hardcoded value value of projectid in subsequent
requests....

usage of fiddler will give you a better picture on request..response
flow....

-----
Venkat Akurathi
91-9703186688
--
View this message in context: http://jmeter.512774.n5.nabble.com/How-to-use-Dynamic-ID-tp5713702p5713737.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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