jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tigertester <john.be...@gmail.com>
Subject Re: csv read
Date Wed, 31 Mar 2010 07:54:06 GMT

attached is my debug sampler

should teh first line be empty?

JMeterVariables:
JMeterThread.last_sample_ok=true
JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@1357306
START.HMS=033758
START.MS=1270021078687
START.YMD=20100331
TESTSTART.MS=1270021750307
VIEWSTATE=
jsessionid=

JMeterProperties:
HTTPResponse.parsers=htmlParser wmlParser
START.HMS=033758
START.MS=1270021078687
START.YMD=20100331
TESTSTART.MS=1270021750307
beanshell.server.file=../extras/startup.bsh
classfinder.functions.contain=.functions.
classfinder.functions.notContain=.gui.
cookies=cookies
htmlParser.types=text/html application/xhtml+xml application/xml text/xml
jmeter.laf=javax.swing.plaf.metal.MetalLookAndFeel
jmeter.laf.mac=System
log_level.jmeter=INFO
log_level.jmeter.junit=DEBUG
log_level.jorphan=INFO
not_in_menu=HTML Parameter Mask,HTTP User Parameter Modifier
remote_hosts=192.168.110.77
sampleresult.timestamp.start=true
system.properties=system.properties
upgrade_properties=/bin/upgrade.properties
user.properties=user.properties
wmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
wmlParser.types=text/vnd.wap.wml 
xml.parser=org.apache.xerces.parsers.SAXParser


tigertester wrote:
> 
> How excatly do I use dbug sampler.
> 
> I have done how you have explained.
> 
> When I give it a valid input, It works. But when I give it the variable
> name ${username} it does not.
> 
> 
> 
> prasanna bhat wrote:
>> 
>> Hi,
>> 
>> Make sure you are using CSV Dataset Config element before the sampler or
>> any
>> component where you want to use it.
>> 
>> In your CSV Dataset Config element make sure you have entered the
>> variables
>> appropriately. providing a sample below;
>> 
>> Filename: <actual-path>/csv.txt (if placed in jmeter/bin directory then
>> you
>> can just enter the filename)
>> Variable name: username
>> Delimiter: *,*
>> 
>> Leave other fields to have a default value.
>> 
>> If you want to use this value in a sampler (say http)
>> 
>> then in the send parameters field add
>> 
>> name: username
>> value: ${username}
>> 
>> You can verify if the value is getting fetched or not using a debug
>> sampler
>> and view results tree listener.
>> 
>> Thanks,
>> Prasanna
>> 
>> 
>> 
>> 
>> 
>> On Wed, Mar 31, 2010 at 12:53 PM, tigertester <john.bejoy@gmail.com>
>> wrote:
>> 
>>>
>>> no luck on this either.
>>>
>>>
>>>
>>>
>>> Andrey Pohilko-2 wrote:
>>> >
>>> > I suppose your problem is "${username}" as csv variable name. Try
>>> using
>>> > just
>>> > "username".
>>> >
>>> > Shortly: variable definition in JMeter is "var_name", and variable
>>> usage
>>> > is
>>> > "${var_name}"
>>> >
>>> >
>>> > Good Luck
>>> >
>>> >
>>> > С уважением,
>>> > Андрей Похилько
>>> > -----Original Message-----
>>> > From: tigertester [mailto:john.bejoy@gmail.com]
>>> > Sent: Wednesday, March 31, 2010 11:12 AM
>>> > To: jmeter-user@jakarta.apache.org
>>> > Subject: Re: csv read
>>> >
>>> >
>>> > my csv file looks like this
>>> >
>>> > username
>>> > demo@demo.com
>>> > demo1@demo1.com
>>> >
>>> > --
>>> > View this message in context:
>>> > http://old.nabble.com/csv-read-tp28092017p28092166.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
>>> >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > 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://old.nabble.com/csv-read-tp28092017p28092263.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
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/csv-read-tp28092017p28092526.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


Mime
View raw message