有人在没有蚂蚁的情况下使用 webtest 吗? [英] Anyone using webtest without ant?

查看:25
本文介绍了有人在没有蚂蚁的情况下使用 webtest 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试使用 WebTest,最好来自 Clojure,但我只能发现它的功能公开为 Ant 任务.似乎有某种 Groovy 接口,这意味着可以从 Ant 之外的任何 JVM 语言中使用它,但我无法弄清楚.

I'd like to try using WebTest, preferably from Clojure, but I can only find its functionality exposed as Ant tasks. There seems to be some sort of Groovy interface, which implies that it's possible to use from any JVM language outside of Ant, but I can't figure it out.

我希望将 WebTest 用作可编写脚本的浏览器"来加载其他人的页面并查看它是否做了各种令人不快的事情,而不是每次构建时都测试我自己的页面,因此 Ant 看起来并不像如果我可以避免它,那么适当的解决方案.

I'm hoping to use WebTest as a "scriptable browser" to load up someone else's page and see if it does various unpleasant things, rather than test my own page with every build, so Ant doesn't really seem like an appropriate solution if I can avoid it.

推荐答案

通常情况下,有用的 Java 功能隐藏在 Ant 任务之后.我在写这本书时遇到了这个问题(前 leiningen 等人),并写了 lancet 让你打电话Ant 任务作为 clojure 函数.

It is often the case that useful Java functionality is hidden behind Ant tasks. I hit the issue when writing the book (pre-leiningen et al), and wrote lancet to let you call Ant tasks as clojure functions.

Lancet 可能需要扩展以处理任意 Ant 任务,但由于它现在正在维护(作为 leiningen) 您可能会找到其他愿意提供帮助的人.

Lancet would probably need to be extended to handle arbitrary Ant tasks, but since it is now being maintained (as a dependency of leiningen) you might find other people willing to help out.

这篇关于有人在没有蚂蚁的情况下使用 webtest 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆