[Windmill-dev] Assert param names
Mikeal Rogers
mikeal at osafoundation.org
Fri Nov 16 15:52:01 PST 2007
On Nov 16, 2007, at November 16, 20073:41 PM, Adam Christian wrote:
> Essentially going from:
> {"params": {"validator": "blah", "id": "header"}, "method":
> "asserts.assertText"}
>
> to:
> {"params": {"text": "blah", "id": "header"}, "method":
> "asserts.assertText"}
>
I do like this more than the old API, but having assertText take a
"text" param seems a little redundant. You said something about
assertValue at one point.
Could we move to something like asserts.assertValue({"text":"asdf",
"id":"header"}).
Are there other functions we could replace with params like this in
assertValue?
Also, in this example it's just id="header", this takes all the
standard locator stuff doesn't it?
I like where this is going and I think your example is cleaner. Once
we agree on a strategy we can get this in to the 0.3 release. We can't
change any of the external API's in an 0.2.x release.
-Mikeal
> I think it's a bit more intuitive, nicer for code readability, but
> most importantly I think it's what users are used to when switching
> from other test frameworks.
>
> Im not married to the idea, just throwing it out there.
>
> Adam
More information about the Windmill-dev
mailing list