Hi Troy,

I had a similar, though maybe not the exact same scenario; I use the
following steps as part of my login...

<storeCookie
    description="Store JSESSIONID cookie value" 
    name="JSESSIONID" 
    property="sessid"
/>
<storeCookie
    description="Store JSESSIONIDSSO cookie value"  
    name="JSESSIONIDSSO" 
    property="sessidSSO"
/>
<invoke
    description="Invoke the Register KPI action"
url="http://${gen_host}:${gen_port}/revenueoffice/secure/KPIs/SelectKPIF
ile.do?JSESSIONIDSSO=#{sessidSSO}"
/>

So I harvest the JSESSIONIDSSO cookie value, storing it in a parameter
called sessidSSO, then append this to the URL when invoking it to get to
the page.

In my case the session ID is only valid for a single test case, so you
may need to make the parameter globally available to all test cases that
follow your initial login...

HTH,
Colin.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Troy McGuire
Sent: 26 September 2006 18:37
To: Canoo WebTest
Subject: [Webtest] Maintaining Sessions

I've been trying to figure out a way to keep the same session for a run 
of several tests.  Currently, the only way I can get multiple tests to 
run is to have each script login.  I tried to use <!DOCTYPE.... <!ENTITY

... to load a "login.xml" to automate the login as a workaround, but 
that didn't work for me for some reason.  What I would _*really*_ like 
is for my initial login test to acquire a session ID and be able to use 
that same session ID for the rest of the tests (therefore not needing to

login for each test).  Is this possible?  Can others out there give me 
samples of they/you do it?  I tried using <storeCookie> since we do 
store the session ID as a cookie, but it doesn't seem to work for me 
either (maybe since I'm working with multiple test files?).  The current

setup I have is a "build.xml" file that calls the other test files 
sequentially.  Any information in this area would be a big help.

Thanks,

Troy
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest




_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to