【问题标题】:Haskell Equivalent of Zope Test BrowserZope 测试浏览器的 Haskell 等价物
【发布时间】:2011-07-04 09:14:19
【问题描述】:

我一直在修改 Python 中的 Zope test browser,探索它对一些项目的适用性。

当我探索时,我意识到 Haskell 中有一些东西会很有趣且有用。 Haskellverese 中是否有与 Zope 测试浏览器等效的东西?

【问题讨论】:

标签: python http testing haskell automation


【解决方案1】:

最接近的可能是 Network.Browser 模块形式 http:http://hackage.haskell.org/packages/archive/HTTP/4000.1.1/doc/html/Network-Browser.html

它已经存在很长时间了,它并不是最华丽或最高效的,但它提供了类似的直接模拟浏览器。

对于做类似浏览器的事情和获取 HTTP,还有许多其他选项。其中一个新的是 http-enumerator:http://hackage.haskell.org/package/http-enumerator

Shpider 看起来也不错:http://hackage.haskell.org/package/shpider

Shpider 基于 curl,也有直接的 curl 绑定,有时使用起来很痛苦(有关选项的文档是......碰巧)但非常强大:http://hackage.haskell.org/package/curl

我首选的 curl 绑定接口是通过 dons 的 download-curl 包:http://hackage.haskell.org/package/download-curl

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-10
    • 2016-05-05
    • 1970-01-01
    • 2011-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-05
    相关资源
    最近更新 更多