jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serguei Belikov <sbeli...@tucows.com>
Subject Re: How to pass the value extracted to different request?
Date Wed, 05 Oct 2005 21:40:14 GMT
So, extract it twice in different variables. Use one to extract value 
after each sampler and keep a second one for further use.

DharaniLakshmi Govindan wrote:

>But I need the extracted value from the login remain
>constant and be used by other request. 
>
>--- Serguei Belikov <sbelikov@tucows.com> wrote:
>
>  
>
>>You have to put it at the same level in the tree to
>>be executed after 
>>each sampler. Otherwise it is executed only after
>>Login sampler is called.
>>If Calendar Details returns a new value you have to
>>extract it as well, 
>>so make extractor a child of Simple Controller.
>>
>>DharaniLakshmi Govindan wrote:
>>
>>    
>>
>>>Yes..the variable changes whenever I send a new
>>>      
>>>
>>HTTP
>>    
>>
>>>request. But I needed the value of the first
>>>      
>>>
>>request
>>    
>>
>>>and pass it to all other requests. Here is what I'm
>>>seeing:
>>>
>>>Simple Controller
>>>- Login
>>> - Regular Expression Extractor (secid=(.*))
>>>- Calendar Details
>>>- Create an event
>>>HTTP Cookie Manager
>>>
>>>I could pass the secid from login to Calendar
>>>      
>>>
>>Details
>>    
>>
>>>but not for the Create an Event. However, the secid
>>>changes for every resquest.
>>>
>>>P.S: My whole application works on Java Script.
>>>      
>>>
>>Will
>>    
>>
>>>it be an issue?
>>>
>>>--- sebb <sebbaz@gmail.com> wrote:
>>>
>>> 
>>>
>>>      
>>>
>>>>Maybe because the variable has been reused between
>>>>the 3rd and 4th samplers?
>>>>
>>>>On 05/10/05, DharaniLakshmi Govindan
>>>><haidharani@yahoo.com> wrote:
>>>>   
>>>>
>>>>        
>>>>
>>>>>Pavel,
>>>>>
>>>>>Thanks for ur help! I could pass the value to
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>second
>>>>   
>>>>
>>>>        
>>>>
>>>>>and third HTTP request but I couldn't for the
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>fourth
>>>>   
>>>>
>>>>        
>>>>
>>>>>one. Do you know why?
>>>>>
>>>>>--- Pavel Gouchtchine <guserlist@gmail.com>
>>>>>          
>>>>>
>>wrote:
>>    
>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>>>In my case, the session and signature of it
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>comes in
>>>>   
>>>>
>>>>        
>>>>
>>>>>>hidden fields of a
>>>>>>response.
>>>>>>Each HTTP request has a child RegExpression
>>>>>>PostProcessor to extract the
>>>>>>values and set them into variables.
>>>>>>The variables are used in next request and so
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>on...
>>>>   
>>>>
>>>>        
>>>>
>>>>>>On 10/4/05, DharaniLakshmi Govindan
>>>>>><haidharani@yahoo.com> wrote:
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>I'm keeping posting this question and I
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>couldn't
>>>>   
>>>>
>>>>        
>>>>
>>>>>>any
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>help from anyone. So please help me to sort
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>this
>>>>   
>>>>
>>>>        
>>>>
>>>>>>out.
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>I have a regular expression extractor which
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>extracts
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>the session id from the cookie. I could pass
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>that
>>>>   
>>>>
>>>>        
>>>>
>>>>>>>value for the first HTTP request and when I
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>try to
>>>>   
>>>>
>>>>        
>>>>
>>>>>>do
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>the same the for the next HTTP request, it
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>returns
>>>>   
>>>>
>>>>        
>>>>
>>>>>>>null. Is there any way I could save that value
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>in
>>>>   
>>>>
>>>>        
>>>>
>>>>>>a
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>variable and use it for all the request?
>>>>>>>
>>>>>>>Thanks
>>>>>>>Dharani
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>__________________________________
>>>>>>>Yahoo! Mail - PC Magazine Editors' Choice 2005
>>>>>>>http://mail.yahoo.com
>>>>>>>
>>>>>>>
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>---------------------------------------------------------------------
>>    
>>
>>> 
>>>
>>>      
>>>
>>>>>>>To unsubscribe, e-mail:
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>jmeter-user-unsubscribe@jakarta.apache.org
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>For additional commands, e-mail:
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>jmeter-user-help@jakarta.apache.org
>>>>>>       
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>         
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>__________________________________
>>>>>Yahoo! Mail - PC Magazine Editors' Choice 2005
>>>>>http://mail.yahoo.com
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>---------------------------------------------------------------------
>>    
>>
>>> 
>>>
>>>      
>>>
>>>>>To unsubscribe, e-mail:
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>jmeter-user-unsubscribe@jakarta.apache.org
>>>>   
>>>>
>>>>        
>>>>
>>>>>For additional commands, e-mail:
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>jmeter-user-help@jakarta.apache.org
>>>>   
>>>>
>>>>        
>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>   
>>>>        
>>>>
>=== message truncated ===
>
>
>
>		
>__________________________________ 
>Yahoo! Mail - PC Magazine Editors' Choice 2005 
>http://mail.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>  
>

-- 
Regards,
Serguei Belikov
Sr. Developer
Tucows Inc.
sbelikov@tucows.com
(416) 535-0123 Ext. 1297


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message