> Which syntax would you prefer as the source syntax of your test scripts:
> Option 1 ----> <tr><td>type</td><td>user_name</td><td>jason</td></tr>
> Option 2 ----> type "user_name" "jason"
> Option 3 ----> type "jason" into field named "user_name"
> Option 4 ----> field(name="user_name").type("jason")
Definitely a fan of options 1 or 2: they're basically the same, just
delimited differently. I like the data-only approach, as opposed to adding
extra keywords/syntax (as in options 3 and 4). Simple is good, especially
when the tests are written by people with a wide variety of programming
knowledge (or lack of it).
If I had to pick just one, I'd go with option 1. Option 2 could get slightly
messy if your values had double quotes in them. I'm sure you could escape
them, it's not really a big deal, but potentially it could cause a little
confusion.
Other delimiters have already been suggested (pipe & tab so far I think)...
how about making the delimiter configurable somehow?
Elaine
_______________________________________________
Selenium-devel mailing list
[email protected]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel