[Webtest] [dev] refactoring
Denis N. Antonioli
webtest@lists.canoo.com
Thu, 4 Aug 2005 15:35:41 +0200
On 4 ao=FBt 05, at 15:22, Paul King wrote:
> Dierk Koenig wrote:
>
>> The internal state of a step consists of - information that only =20
>> this step cares about,
>> e.g. its attributes
>> - information that is common for all steps
>> and is of 'read only' nature, e.g. the testSpec
>> - information that is shared, handed over from step
>> to step, and is of 'read/write' nature.
>> The latter is called the context and extracted into
>> the Context class.
>> This is the logic of the separation and it is reflected in the
>> current object design.
>>
>
> I mostly like the current objects (add Configuration to the above =20
> list)
> and think keeping them (perhaps with some refactoring) would be =20
> useful.
> However we shouldn't need to do both of the following:
>
> step.setContext(context)
> step.doExecute(context)
>
> Getting rid of one or the other would be good.
gosh.
dna
--=20
Love is a snowmobile racing across the tundra and then suddenly it
flips over, pinning you underneath. At night, the ice weasels come.
-- Matt Groening