jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radhika_Singireddy <Radhika_Singire...@mahindrasatyam.net>
Subject RE: Paramterization for inserting
Date Fri, 25 Sep 2009 11:48:46 GMT
no..check for the server response and data posted to the server, and extract or capture its
value using regular expression extractor and replace the original value in the script with
this regex.

Please Refer: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor


Regards
Radhika Singireddy


-----Original Message-----
From: nanduri [mailto:nandurivk0730@gmail.com]
Sent: Friday, September 25, 2009 5:01 PM
To: jmeter-user@jakarta.apache.org
Subject: RE: Paramterization for inserting


hI,
So i should correlate tthe username and user email ho do i do that
Thanks,
kirann

Radhika_Singireddy wrote:
>
> Ok..then did you correlate the data which is dynamic? Username and
> useremail are read correctly, so there is no problem in reading data and
> replacing. If you didn't correlate..Capture the content sent from the
> server which is dynamic using regex.
>
> Regards
> Radhika Singireddy
>
>
> -----Original Message-----
> From: nanduri [mailto:nandurivk0730@gmail.com]
> Sent: Friday, September 25, 2009 4:43 PM
> To: jmeter-user@jakarta.apache.org
> Subject: RE: Paramterization for inserting
>
>
> Hi,
>
> POST data:
> track_id=8951853&JS_SWITCH=JS_ON&seccode=31133&username=k4&useremail=k4@gmail.com&mobile=9886706643&gender=1&birthday_year=1963&birthday_month=1&birthday_day=30&user_state=8&user_city=115&interest%5B%5D=81&scode=uieu&hidcid=4772647&set_homepage=on&promocode=&search_word=&category_id=0&city_id=0&partner=BIT&campaign_code=&campaign_date=&phone=&x=80&y=29
>
> [no cookies]
> This is common for all user only username email changes
>
> these parameters are changing dynamically
> scode=uieu&hidcid=4772647 hicid is changing dynamicalli everyitm
> scode is same as uieu what cptured during recording
>
>
>
> Radhika_Singireddy wrote:
>>
>> It's a simple registration by entering the username and email id from csv
>> file.
>> 1. There should be no problem atleast in reading the data from the file.
>> Also you are unable to run by adding debug sampler to know the values of
>> the parameters.
>> 2. If the values are being read properly, there might be some dynamic
>> content posted along with these details to the server. What are the
>> parameters or post data sent with this sampler? Is that data dynamic?
>>
>> Regards
>> Radhika Singireddy
>>
>>
>> -----Original Message-----
>> From: nanduri [mailto:nandurivk0730@gmail.com]
>> Sent: Friday, September 25, 2009 4:14 PM
>> To: jmeter-user@jakarta.apache.org
>> Subject: RE: Paramterization for inserting
>>
>>
>> No,
>> None of the users go inserted or registered and  for all users data from
>> csv
>> got read but not inserted because captcha code it was showing that
>> problem
>> because it dynamically changes right.bECAUSE JMEER WILL NOT INVOKE
>> BROWSER
>> DATA INSERTION WILL HAPPEN .mY DOUBT.
>>
>> tHANKS,
>> KIRANN
>> i
>>
>> Radhika_Singireddy wrote:
>>>
>>> Looks absolutely fine. There is no error response.
>>> In the image which you sent k2 is populated. Is the user k1 registered,
>>> first entry in the file. Want to know whether it is run atleast for a
>>> single user or not??
>>> If not so..What is the http response of the next sampler? Is it showing
>>> something like please enter the details or something else?
>>>
>>> Regards
>>> Radhika Singireddy
>>>
>>>
>>> -----Original Message-----
>>> From: nanduri [mailto:nandurivk0730@gmail.com]
>>> Sent: Friday, September 25, 2009 2:57 PM
>>> To: jmeter-user@jakarta.apache.org
>>> Subject: RE: Paramterization for inserting
>>>
>>>
>>> hello,
>>> THE DATA IS GIVEN PROPERLY PLEASE SEE THE CSV FIL/iM ATTACHING
>>>
>>> Thanks,
>>> kirann http://www.nabble.com/file/p25609085/Register.csv Register.csv
>>>
>>> Radhika_Singireddy wrote:
>>>>
>>>> If the data is given properly in the file it should get populated. Did
>>>> you
>>>> give data in the csv file in columns? Because from the response page we
>>>> can see that one value is getting populated while the other is not.
>>>> Check
>>>> the file once.
>>>>
>>>> Regards
>>>> Radhika Singireddy
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: nanduri [mailto:nandurivk0730@gmail.com]
>>>> Sent: Friday, September 25, 2009 2:42 PM
>>>> To: jmeter-user@jakarta.apache.org
>>>> Subject: RE: Paramterization for inserting
>>>>
>>>>
>>>> Hi,
>>>> This is what the response
>>>>
>>>> Sampler result
>>>>
>>>> Thread Name: view-buzz2 registration 3-2
>>>> Sample Start: 2009-09-25 14:43:11 GMT+05:30
>>>> Load time: 929
>>>> Latency: 929
>>>> Size in bytes: 30319
>>>> Sample Count: 1
>>>> Error Count: 0
>>>> Response code: 200
>>>> Response message: OK
>>>>
>>>> Response headers:
>>>> HTTP/1.1 200 OK
>>>> Date: Fri, 25 Sep 2009 09:03:51 GMT
>>>> Server: Apache
>>>> X-Powered-By: PHP/5.1.6
>>>> Set-Cookie: track_id=8985020;
>>>> Set-Cookie: uccid=1; expires=Sat, 25-Sep-2010 09:03:51 GMT;
>>>> Vary: Accept-Encoding
>>>> Content-Encoding: gzip
>>>> X-UA-Compatible: IE=EmulateIE7
>>>> Content-Length: 6758
>>>> Keep-Alive: timeout=2, max=495
>>>> Connection: Keep-Alive
>>>> Content-Type: text/html; charset=UTF-8
>>>>
>>>>
>>>> HTTPSampleResult fields:
>>>> ContentType: text/html; charset=UTF-8
>>>> DataEncoding: UTF-8
>>>>
>>>>
>>>> Resposnse data in Html ill attach a screenshot please see it
>>>> http://www.nabble.com/file/p25608895/param.GIF param.GIF
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>   Male     Female
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>   Music & Concert
>>>>   FoodFestivals
>>>>   Theatre & Art
>>>>   Business Events
>>>>   Nightlife
>>>>   Sports
>>>>   Movies
>>>>   Kids
>>>> Can't read this?
>>>>
>>>> if(document.all) { document.write('
>>>>  Make Buzzintown my home page.
>>>> '); }
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> About Buzzintown
>>>>
>>>>
>>>> Radhika_Singireddy wrote:
>>>>>
>>>>> Ok. What is the response for this registration sampler when you run
>>>>> it?
>>>>>
>>>>> Regards
>>>>> Radhika Singireddy
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: nanduri [mailto:nandurivk0730@gmail.com]
>>>>> Sent: Friday, September 25, 2009 2:30 PM
>>>>> To: jmeter-user@jakarta.apache.org
>>>>> Subject: RE: Paramterization for inserting
>>>>>
>>>>>
>>>>> Hi,
>>>>> Sorry i have given as 1 only for B not zero small mistake
>>>>>
>>>>> Thanks,
>>>>> kirann
>>>>>
>>>>> Radhika_Singireddy wrote:
>>>>>>
>>>>>> You are giving same value to both A and B. Give B's value as
>>>>>> ${__CSVRead(Register.csv,1)} if email is given in the second column
>>>>>> of
>>>>>> the
>>>>>> csv file. Now try to run the script.
>>>>>>
>>>>>> Regards
>>>>>> Radhika Singireddy
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: nanduri [mailto:nandurivk0730@gmail.com]
>>>>>> Sent: Friday, September 25, 2009 2:21 PM
>>>>>> To: jmeter-user@jakarta.apache.org
>>>>>> Subject: RE: Paramterization for inserting
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>> There are two place where i replaced the parameters of a and B one
>>>>>> at user parameters -
>>>>>>   Variable          user_1
>>>>>>   A                 ${__CSVRead(Register.csv,0)}
>>>>>>   B                 ${__CSVRead(Register.csv,0)}
>>>>>>   next             ${__CSVRead(Register.csv,next)}
>>>>>>
>>>>>>
>>>>>> Next in the sampler
>>>>>> In send parameters with Request
>>>>>> username -${A}
>>>>>> useremail- ${B}
>>>>>> Thats all
>>>>>>
>>>>>>
>>>>>> Radhika_Singireddy wrote:
>>>>>>>
>>>>>>> What is the value of A and B which you gave in the user parameters??
>>>>>>>
>>>>>>> Regards
>>>>>>> Radhika Singireddy
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: nanduri [mailto:nandurivk0730@gmail.com]
>>>>>>> Sent: Friday, September 25, 2009 12:23 PM
>>>>>>> To: jmeter-user@jakarta.apache.org
>>>>>>> Subject: Re: Paramterization for inserting
>>>>>>>
>>>>>>>
>>>>>>> hi when i attached ddebug sampler im getting error illegal argument
>>>>>>> exception
>>>>>>> because of this script is not running
>>>>>>>
>>>>>>> nanduri wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>   I have a scenario for paramterizing the regsitration.I
have
>>>>>>>> recorede
>>>>>>>> a
>>>>>>>> script for regsitration.I  have a csv file whgich contains
two
>>>>>>>> fields
>>>>>>>> username,email.After running the script it has ranned successfully
>>>>>>>> but
>>>>>>>> users registered successfully and not inserting into database.but
>>>>>>>> values
>>>>>>>> are being reAD .Has anybody has ain idea ho to do this ill
be
>>>>>>>> greatful
>>>>>>>> if
>>>>>>>> u help me
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25607235.html
>>>>>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> DISCLAIMER:
>>>>>>> This email (including any attachments) is intended for the sole
use
>>>>>>> of
>>>>>>> the
>>>>>>> intended recipient/s and may contain material that is CONFIDENTIAL
>>>>>>> AND
>>>>>>> PRIVATE COMPANY INFORMATION. Any review or reliance by others
or
>>>>>>> copying
>>>>>>> or distribution or forwarding of any or all of the contents in
this
>>>>>>> message is STRICTLY PROHIBITED. If you are not the intended
>>>>>>> recipient,
>>>>>>> please contact the sender by email and delete all copies; your
>>>>>>> cooperation
>>>>>>> in this regard is appreciated.
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25608611.html
>>>>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>> DISCLAIMER:
>>>>>> This email (including any attachments) is intended for the sole use
>>>>>> of
>>>>>> the
>>>>>> intended recipient/s and may contain material that is CONFIDENTIAL
>>>>>> AND
>>>>>> PRIVATE COMPANY INFORMATION. Any review or reliance by others or
>>>>>> copying
>>>>>> or distribution or forwarding of any or all of the contents in this
>>>>>> message is STRICTLY PROHIBITED. If you are not the intended
>>>>>> recipient,
>>>>>> please contact the sender by email and delete all copies; your
>>>>>> cooperation
>>>>>> in this regard is appreciated.
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25608716.html
>>>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>> DISCLAIMER:
>>>>> This email (including any attachments) is intended for the sole use of
>>>>> the
>>>>> intended recipient/s and may contain material that is CONFIDENTIAL AND
>>>>> PRIVATE COMPANY INFORMATION. Any review or reliance by others or
>>>>> copying
>>>>> or distribution or forwarding of any or all of the contents in this
>>>>> message is STRICTLY PROHIBITED. If you are not the intended recipient,
>>>>> please contact the sender by email and delete all copies; your
>>>>> cooperation
>>>>> in this regard is appreciated.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25608895.html
>>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>> DISCLAIMER:
>>>> This email (including any attachments) is intended for the sole use of
>>>> the
>>>> intended recipient/s and may contain material that is CONFIDENTIAL AND
>>>> PRIVATE COMPANY INFORMATION. Any review or reliance by others or
>>>> copying
>>>> or distribution or forwarding of any or all of the contents in this
>>>> message is STRICTLY PROHIBITED. If you are not the intended recipient,
>>>> please contact the sender by email and delete all copies; your
>>>> cooperation
>>>> in this regard is appreciated.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25609085.html
>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>
>>> DISCLAIMER:
>>> This email (including any attachments) is intended for the sole use of
>>> the
>>> intended recipient/s and may contain material that is CONFIDENTIAL AND
>>> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
>>> or distribution or forwarding of any or all of the contents in this
>>> message is STRICTLY PROHIBITED. If you are not the intended recipient,
>>> please contact the sender by email and delete all copies; your
>>> cooperation
>>> in this regard is appreciated.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25609926.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>
>> DISCLAIMER:
>> This email (including any attachments) is intended for the sole use of
>> the
>> intended recipient/s and may contain material that is CONFIDENTIAL AND
>> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
>> or distribution or forwarding of any or all of the contents in this
>> message is STRICTLY PROHIBITED. If you are not the intended recipient,
>> please contact the sender by email and delete all copies; your
>> cooperation
>> in this regard is appreciated.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Paramterization-for-inserting-tp25531062p25610237.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
> or distribution or forwarding of any or all of the contents in this
> message is STRICTLY PROHIBITED. If you are not the intended recipient,
> please contact the sender by email and delete all copies; your cooperation
> in this regard is appreciated.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>

--
View this message in context: http://www.nabble.com/Paramterization-for-inserting-tp25531062p25610443.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s
and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review
or reliance by others or copying or distribution or forwarding of any or all of the contents
in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard is appreciated.

---------------------------------------------------------------------
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