测试海量网站

发布于 2024-10-11 14:08:09 字数 225 浏览 4 评论 0原文

我的公司刚刚将我们网站的所有代码迁移到异地位置的 3 个相同的服务器上。现在我们的工作就是测试它们。

然而,我们必须测试的网站/功能数量非常多,要乘以 3!检查每一个链接和每一个功能是一项艰巨的任务。我们现在正在手动执行此操作。

我向你们提出的问题是……有没有一种方法可以自动化测试,这样我们就不必浪费时间点击、等待和检查响应,乘以 3? ;-)

如果您需要任何其他信息,请告诉我。谢谢!

My company has just migrated all the code for our website to 3 identical servers on an off-site location. Now it is our job to test them.

However, the amount of websites/functionality that we have to test is exorbitant, and multiply that times 3! To check every single link and every single function is a daunting task. We are in the process of manually doing that right now.

My question to you guys/girls is this... Is there a way to automate the testing so we don't have to waste our time clicking, waiting, and checking the response, times 3? ;-)

Let me know if you need any other info. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

睫毛溺水了 2024-10-18 14:08:09

如果您只需要测试浏览器中公开的功能,那么 Selenium 是一个不错的选择。它允许您在浏览器上下文中编写自动化测试。对于不太擅长编写代码的人来说,一项不错的功能是能够记录在浏览器中执行的操作,然后重播它们。

但更有可能的是,您需要从整体角度考虑您的测试策略。您应该考虑如何使用单元测试来减少需要执行的手动链接点击或硒测试的数量。

创建自动化套件需要一些时间,但在下次将站点迁移到 6、12 或 24 台服务器时,让它准备好运行将证明是无价的。

If you only need to test functionality as it's exposed in the browser, then Selenium is a good choice. It lets you write automated tests in the context of the browser. One nice feature for people who aren't as proficient at writing code is the ability to record actions taken in a browser and then replay them.

More likely, though, you need to consider your testing strategy from a holistic point of view. You should consider how you can use unit testing to reduce the amount of manual link clicking or selenium testing you need to do.

Creating your automation suite will take some time, but having it ready to go the next time you move your site over to 6, 12, or 24 servers will prove invaluable.

俯瞰星空 2024-10-18 14:08:09

查看用于自动化浏览器的工具。 Watir 是一个非常好的解决方案。但还有其他解决方案,具体取决于您首选的开发语言。

Have a look at tools for automating the browser. Watir is a very good solution. But there are other solutions, depending on your preferred development language.

孤独陪着我 2024-10-18 14:08:09

听起来您只想要一个链接检查器。有大量软件包可以执行此操作。看看这个列表:http://www.softwareqatest.com/qatweb1.html#LINK< /a>

It sounds like you just want a link checker. There are a large number of software packages that will do this. Take a look at this list: http://www.softwareqatest.com/qatweb1.html#LINK

乱世争霸 2024-10-18 14:08:09

如果您只想测试一次,那么自动化测试可能需要同样长的时间。

但是,如果您正在寻找一种设置回归测试的方法,我会看看 Selenium

It might take just as long to automate the testing if you're only going to test just once.

However, if you're looking for a way to set up regression testing, I would take a look at Selenium.

快乐很简单 2024-10-18 14:08:09

Selenium 是你最好的选择,但如果你的网站有很多非 HTML 的东西你想测试,你可能想看看 Sikuli:http://sikuli.org/

Selenium is your best bet, but if your website has a lot of non-HTML stuff that you want to test you might wanna have a look at Sikuli: http://sikuli.org/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文