[Webtest] Adapt classes for extension
Dierk Koenig
webtest@lists.canoo.com
Wed, 23 Jul 2003 12:51:48 +0200
Hi Marc,
yes, I fully agree. The change is now available (build 347).
Currently it is only for StoreXPath but I guess other steps need to
self encapsulate their properties as well.
thanx
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Marc Guillemot
> Sent: Mittwoch, 23. Juli 2003 11:49
> To: webtest@lists.canoo.com
> Subject: [Webtest] Adapt classes for extension
>
>
> Hi,
>
> the changes made to facilitate implementation of custom steps or custom
> changes to existing steps seem great. Yet the step classes could
> be improved
> to facilitate extension.
>
> Ex: in com.canoo.webtest.steps.StoreXPath
>
> 2 member properties:
> private String fXPath = null;
> private String fProperty = null;
>
> but
> - only setters and no getters for these
> - member methods set/get directly the values without to use
> setter (and non
> existing getter)
>
> Therefore a child class has to overwrite far more as it should if
> the class
> com.canoo.webtest.steps.StoreXPath would have been designed for
> inheritance.
>
> Marc.
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>