首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >硒和/或TestSwarm?

硒和/或TestSwarm?
EN

Stack Overflow用户
提问于 2014-01-17 10:39:53
回答 1查看 227关注 0票数 0

我对测试很陌生,在最近几天做一些研究时,我发现了2种能够测试web应用程序的工具,下面是我迄今为止所理解的:

  • Selenium提供了一种操作浏览器的方法,因此在其他方面,它允许在webPage上模拟用户交互,例如,我们可以使用PhpUnit-Selenium扩展编写测试,它将使我们的应用程序能够像实际用户一样进行测试,之后这些测试需要在不同的浏览器上运行.
  • 对于TestSwarm,我需要使用一些工具来编写测试,比如(Qunit,Jasmine.)主要集中在单元测试(而不是用户交互)并使用TestSwarm服务器将这些测试推送到可用的浏览器上运行(我认为这是自动的,因此用户不需要手动运行这些测试)

我的结论是Selenium和TestSwarm在某种程度上是互补的,因为Selenium支持测试用户交互,而TestSwarm简化了对javascript交叉浏览器的测试。

我说得对吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-01-27 19:13:51

我认为你走在正确的轨道上,这是https://github.com/jquery/testswarm/issues/258的摘录

代码语言:javascript
复制
Okay, so you're using WebDriver and your test suite  is a set of instructions (in what language do you have it stored now?)  for the browser to execute (go to page X, click button Y, etc.).
Those are not unit tests but integration tests. They require bindings  with the browser and/or the ability to execute code on the target  computer. They can't be executed from within the browser (in that if I  visit the url of your test suite in my browser, nothing happens as the  driver instructions need to be run from outside the browser or from a  plugin).
TestSwarm is not designed for these kind of integration tests, but  for unit tests. A very different method that simply can't be performed  by TestSwarm. Also, you wouldn't need any of TestSwarm's features for  this and you'd miss things you need instead (like actual browsers and  the ability to control them and extract the results). Where those  browsers come from there usually is something like TestSwarm close by.
I'd recommend looking into SauceLabs and Jenkins (either self-hosted or perhaps a cloud based solution like CloudBees). 
Check out:

·http://sauceio.com/index.php/2012/12/getting-the-most-out-of-selenium-with-cloudbees-and-sauce-labs/

·https://saucelabs.com/jenkins/1

·http://www.cloudbees.com/platform-service-saucelabsondemand.cb

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21183806

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档