From: "Jason R Huggins" <[EMAIL PROTECTED]>
I'd like to get opinions on preferred test syntax from Selenium users... (I'm cc'ing the dev list on this 'cause this it does have an effect on development, but let's keep the thread on the user's list for the time being.)

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")

As a programmer, which would you prefer and why?
Which option do you think your end users would prefer and why?

I may have underestimated the XML-phobia that runs in our industry these
days ;-), but I was surprised not to find the obvious :

<step action="type" locator="user_name" target="jason" />

As a programmer I prefer this 10 times over my next choice which would be
the current HTML. Please don't make me parse a custom language...

My end-users use our SeleniumEditor so the test language is not an issue
for them; but even if they had to edit tests directly, I'd be much more
confident with them using an autocompleting, validating XML editor
(VS.NET 2005 will even pop-up the schema's documentation
annotations, very nice) rather than HTML.

Cheers,
--Jonathan

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to