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 <[EMAIL PROTECTED]> 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]

Reply via email to