testing

Testing tools, testing philosophy & methodology...
donaldball 2019-03-13T13:59:21.003300Z

I find myself wanting to write an integration test where I request an html page from an external provider, fill out a form, and submit it as part of of a larger authentication scenario. I can’t use raw clj-http or similar because the form has magic values within it, and I don’t believe I need a drive an actual e.g. Chrome browser instance. In my distant Java past I’ve used htmlunit for such needs; does anyone have something they’d recommend for this nowadays?

seancorfield 2019-03-13T15:32:42.004Z

We use HTMLunit.

donaldball 2019-03-13T16:15:55.004400Z

I see there’s this etaoin project some folk seem to use

metametadata 2019-03-13T16:24:55.007Z

in Clojure there's also https://github.com/xeqi/kerodon. I haven't used it though.

seancorfield 2019-03-13T16:25:39.008100Z

I think etaoin is positioning itself as the replacement for clj-webdriver? We used the latter (up until last week when we retired the major app that we tested that way).

donaldball 2019-03-13T21:38:10.008500Z

For anyone playing along at home, I used etaoin and am moderately pleased with the result.

👍 1