Michael,
Thanks for pointing that out. Is there any way to explicity release
memory, at the end of every sub-test in this case?
As for running the tests in one session - I just want to get rid of
the login and logout overhead for each test. Even if I can do one
login and logout at suite level that would work. This way I may
not run into the OutOfMemoryException, as you have pointed out.
Thanks,
--H
Michael Habbert-3 wrote:
>
> Hi,
>
> so why would you do so?
>
> Soon or later you will run in an OutOfMemoryException with all the
> responses ... of your very long test.
> Your right, the session is over at the end of your webtest.
>
> yours
>
> Michael
>
>
> av8r schrieb:
>>
>> Hi Marc,
>>
>> Thanks for sending the suggestion across. I have tried to implement it
>> but I
>> still see the two individual
>> proof-of -concept tests logging in and logging out individually. What I
>> am
>> trying to implement is
>> login, execute both tests and then logout.
>>
>> Am I missing something here? Appreciate all the help.
>>
>> Thanks,
>> --H
>>
>>
>>
>> Marc Guillemot wrote:
>>
>>> Hi,
>>>
>>> what about following:
>>>
>>> <macrodef name="myStandardWebTest">
>>> <attribute name="name" description="the test name">
>>> <element name="myBody" implicit="yes">
>>> <sequential>
>>> <webtest name="@{name}">
>>> &loginSteps;
>>> <myBody/>
>>> &logoutSteps;
>>> </webtest>
>>> <sequential>
>>> </macrodef>
>>>
>>> that you can use this way
>>> <myStandardWebTest name="blabla">
>>> ... the steps here that should be performed AFTER login
>>> </myStandardWebTest>
>>>
>>> Of course if you write your tests with a programming language like
>>> Groovy, you can use a standard programming way.
>>>
>>> Cheers,
>>> Marc.
>>> --
>>> Web: http://www.efficient-webtesting.com
>>> Blog: http://mguillem.wordpress.com
>>>
>>> av8r wrote:
>>>
>>>> Hi,
>>>>
>>>> Currently the way I have my tests written, each one has to invoke the
>>>> url to login screen at the beginning of the test, and logout when the
>>>> test has finished?
>>>>
>>>> I have tried to isolate the login and logout to separate tests, but it
>>>> does not work. There is no session maintained after I move from the
>>>> login
>>>> test to the actual functional test.
>>>>
>>>> Is there anyway to maintain the session, so I can eliminate the
>>>> overhead
>>>> of logging in and logging out for each test.
>>>>
>>>> Thanks,
>>>> --H
>>>>
>>>
>>> _______________________________________________
>>> WebTest mailing list
>>> [email protected]
>>> http://lists.canoo.com/mailman/listinfo/webtest
>>>
>>>
>>>
>>
>>
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context:
http://www.nabble.com/Isolating-login-and-logout-tp20042365p20158769.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest