Hi,
  Sorry, is my mistake.. i realize i should have enter file name.. not path.. 
  So yeah, after i enter only file name (usr.csv) in the textbox, my threads 
all works perfectly.. 
  Thanks to yiping for telling me about the absolute path error. It guides me 
to search more about it and gets my test plan work.. =) 

benmao ben <[EMAIL PROTECTED]> wrote:
  I just realise my error in jmeter.log is :ERROR - jmeter.config.CSVDataSet: 
Failed to read file: C:\Documents and 
Settings\Admin\Desktop\jakarta-jmeter-2.1.1\jakarta-jmeter-2.1.1\bin\usr.csv

I'm currently using version 2.1.1... is there any ways for me to continue using 
this version with csvDataConfig? i search from the web and it says need to 
convert absolute path to jmeter startup directory will solve this problem. But 
my jmeter.bat is in bin\jmeter.bat. Therefore i also save my csv file in 
bin\usr.csv... Did i did anything wrong? What should i enter in the path value?


wrote:
Absolute path support has been added; it will be in the next release
(and is in the nightly builds).

S.
On 30/03/06, Yiping Yang wrote:
> To get 'post' and 'get' method, really depends on the code, if the code
> you're testing only accept username and password in get method, I'm not sure
> if the 'path method' will work, just have a try.
> You test plan seems ok, but CSVDataConfig should be put outside the login
> page. Usually I put it before HttpCookieManager.
>
> I just notice one thing, in CSV data set config:
> filename=C:\JMeter-Root\jakarta-jmeter-2.1.1\jakarta-jmeter-2.1.1\bin\text.c
> sv
> you put a absolute path. I never get bsolute path work before.
> try to use a relative path.
>
>
>
>
> -----Original Message-----
> From: benmao ben [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 30, 2006 12:31 PM
> To: JMeter Users List
> Subject: problem in retrieve username and password thru text file
>
> Hi Yiping,
>
> This evening I've tried sending all parameters using 'post' method and the
> resulted page is 'Incorrect username or password'. I thought is the csv file
> problem. I went to google search and found a page whereby this user send
> parameters thru 'get' method. So i try it out and the responded data is
> 'login session expired'.
>
> I did put in HTTP cookie manager in my testplan. Sorry for didn't give you
> all the detail. Below is my testplan:
>
> _TestPlan
> |__ThreadGroup
> | |__HTTP Header Manager
> | |__HTTPCookieManager
> | |__HTTPrequest1
> | | |__responseAssertion
> | |__HTTPrequest2(Login)
> | |__CSVDataConfig
> | |__responseAssertion
> | |__HTTPRequest3(Click submit)
> | |__responseAssetion
> | |__HTTPRequest4(LogOut)
> | |__responseAssetion
> |__ViewResultsInTree
>
> I've also tried putting CSVDataCinfig outside the Login page(Under Thread
> Group) and the result is the same.
>
> I will try the 'path' method which you mentioned when i go to work later.
> Because my place is 1.30am now...and i can only do the testing in my
> office... because of the lan setting... will email back after i've tried the
> 'path' method...Thanks Yiping for your reply and suggestion! =)
>
> Yiping Yang wrote:
>
> Hi,
> I think you can send all the parameters by using post methods including
> username and password.
>
> Or
> You still choose Method: post in HTTP Request Sampler.
> In "Path" you can write like that:
> www.aaa.com?usrname=${usrname}&pw=${pw}
>
> and set other parameters in the table "send parameters with request"
>
>
> For "login session expired " problem, you could put a config element "Http
> cookie manager" in your Thread group.
>
> -----Original Message-----
> From: benmao ben [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 30, 2006 10:53 AM
> To: JMeter Users List
> Subject: problem in retrieve username and password thru text file
>
> Hi, I met some problem in JMeter. I need to load username and password from
> a text files. Below is my configuration:
>
> |__HTTP request
> | |__csv data set config
> |__HTTP request
>
> HTTP request: method=get
> send parameters with request: usrname={usrname},
> pw={pw}, btnSunbmit=YES, maxAttempts=3
>
>
> CSV data set config:
> filename=C:\JMeter-Root\jakarta-jmeter-2.1.1\jakarta-jmeter-2.1.1\bin\text.c
> sv
> variable name=usrname,pw
> delimiter= ,
>
> text.csv file=
> alex,pu3dd
> limm,ki4f
> seei,4hrr
>
> I'm able to retreive username and password from text file thru 'get'
> function. But for sign-in page, there are other variables (eg:
> btnSunbmit=YES, maxAttempts=3) need to send out as well, however these
> variables need to be send out thru 'post' method. I'm unable to do 2
> functions(post and get method) at one time, thus i'm experiencing some
> difficulties. I've tired various method to login thru the get function, but
> it always gives me an error page: login session expired. Can anyone help me
> please?
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
> countries) for 2¢/min or less.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------
> Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo!
> Messenger with Voice.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

                
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Reply via email to