自动测试应用程序中的所有网页,部署后 [英] Automatically smoke test all webpages in application, after deployment

查看:192
本文介绍了自动测试应用程序中的所有网页,部署后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我将构建部署到暂存后。我想有一个烟雾测试所有的网页寻找错误http状态代码(400,500)的系统。

After I deploy a build to staging. I would like to have a system that smoke tests all our webpages looking for error http status codes (400,500).

获得系统的最简单,最快的方法是什么

What is the easiest, fastest way to get a system like this into place.

如果我使用selenium或WebAII,似乎我不得不做许多工作生成基本的单元测试。

If I use selenium or WebAII it seems like I'd have to do alot of work generating basic unit tests.

理想情况下,Id可以自动为我的所有页面自动生成一个死的简单测试,然后随着时间的推移,创建一些更互动的UI测试。

Ideally Id like to be able to autogenerate a dead simple test for all my page, then over time build some more interactive UI tests.

我真的不想使用wget或其他东西来滚动我自己的解决方案。

I dont really want to roll my own solution using wget or something.

我会感谢一些建议。

感谢

推荐答案


为我的所有页面生成一个死的简单测试,然后随着时间的推移构建一些更互动的UI测试。

Ideally Id like to be able to auto-generate a dead simple test for all my page, then over time build some more interactive UI tests.

我不知道任何解决方案(这不意味着它不存在),将完全自动为整个网站。除非您的网站主要由静态部分组成,导航不仅仅是关于以下链接,并且通常太复杂,无法自动执行此任务:导航通常涉及填充表单,提交它们,浏览结果,点击查看一个特定项目的详细信息,等等,这需要一些人类输入。

I don't know any solution (this doesn't mean it doesn't exists) that will do this fully automatically for a whole website. Unless your site is mostly made of static parts, navigation isn't just about following links and is in general too complex to automate this task: navigation often involves filling forms, submitting them, browsing results, clicking to view the details of one particular item, etc and this requires some human input.

实际上,非自定义的解决方案,我来想缓解这个任务将使用一个记录器,如 Selenium IDE 。但我同意,如果你从头开始,这将需要一些工作。

Actually, the non-custom solution that come to my mind to ease this task would be to use a recorder like Selenium IDE. But I agree that if you are starting from scratch, this will require some work.


我真的不想滚动我自己的解决方案使用wget或者某物。

I dont really want to roll my own solution using wget or something.

说实话,这可能是最好的选择(例如,一次性的测试源文件从硒模板用于使用您选择的脚本语言的所有已知网页/网址)。

To be honest, this might be the best option though (e.g. a one shot generation of test source files from a selenium template for all known pages/URLs using the scripting language of your choice).

这篇关于自动测试应用程序中的所有网页,部署后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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