On Tue, Nov 25, 2014 at 5:09 AM, AndyB <andy.bi...@gmail.com> wrote:
> This should be easy shouldn't it?

Well, not exactly easy, but not that hard. Poke around in
jenkinsci/jenkins/test/src/test/java/ and you will find some tests
doing this kind of thing.

BTW if you mainly want to test form validation, it is easier to just
call the doCheck* methods directly. Testing them from the context of a
live form is going to be messier. For one thing, even errors will not
block the form from being submitted, so you would have to
screen-scrape the page before submitting. And beware that the checks
are done asynchronously, so you would need to use some HtmlUnit
utility method to wait for the results to come back.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2EaTueoGz%3DTemfwr1WynPW%2BSmVE0qp7_EZ3o6_aFKnGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to