使用 Selenium 和 jUnit 的第一步 - 有什么好的教程吗? [关闭]

2024-01-10

任何人都知道对于初学者来说很好的教程Selenium and jUnit ?
我已经有背景了unit testing and acceptance testing (RSpec and Capybara on Rails 3),现在我正在开始这个新项目JavaEE我正在寻找这两种技术的快速入门。
Thanks.


我正在对这个主题进行一些广泛的阅读/研究,所以我将分享我发现的好文章/幻灯片/书籍/答案:

  • http://www.qaautomation.net/?cat=7 http://www.qaautomation.net/?cat=7:我使用过这个网站,我认为它非常好(无论如何对于 Selenium 来说)。

  • http://www.vogella.com/articles/JUnit/article.html http://www.vogella.com/articles/JUnit/article.html: 刚刚有一个 看起来似乎很有趣

  • wakaleo:junit-kung-fu-getting-more-out-of-unit-tests http://www.slideshare.net/wakaleo/junit-kung-fu-getting-more-out-of-your-unit-tests:对一些关键 JUnit 功能的精彩概述

  • 使用 JUnit 和 Selenium 测试您的 Web 应用程序的 UI http://www.codeproject.com/Articles/143430/Test-your-web-application-s-UI-with-JUnit-and-Sele

  • 使用 selenium-2 测试网络应用程序/ http://thomassundberg.wordpress.com/2011/10/18/testing-a-web-application-with-selenium-2/:硒+JUnit

  • 硒最佳实践 http://mestachs.wordpress.com/2012/08/13/selenium-best-practices/

  • 您使用 JUnit,所以您想了解 Hamcrest http://code.google.com/p/hamcrest/

  • 所以问题:如何一起使用 junit 和 hamcrest https://stackoverflow.com/questions/5569394/how-to-use-junit-and-hamcrest-together(TBC)一起使用 JUnit 和 Hamcrest 时要小心:如果 Hamcrest 的版本大于或等于 1.2,那么您应该使用 junit-dep.jar。这个 jar 没有 hamcrest 类,因此您可以避免类加载问题。

  • 此外,关于汉克雷斯特,它指出在其谷歌代码页上 http://code.google.com/p/hamcrest/“Hamcrest 它不是一个测试库:它只是碰巧匹配器对于测试非常有用”。因此您可能想要看看节 http://code.google.com/p/fest/“其使命是简化软件测试”。

  • 所以问题:junit-每个方法一个测试用例或每个方法多个测试用例 https://stackoverflow.com/questions/6252187/junit-one-test-case-per-method-or-multiple-test-cases-per-method

  • 所以问题:selenium-junit-tests-how-do-i-run-tests-within-a-test-in-sequential-order https://stackoverflow.com/questions/8518314/selenium-junit-tests-how-do-i-run-tests-within-a-test-in-sequential-order

  • tomek kaczanowscy 的博客:《实用单元测试》作者(见下文) http://kaczanowscy.pl/tomek/

  • 这本书最近出版了(2012 年出版,与很多过时的书籍相比),它看起来很有趣:使用 TestNG 和 Mockito 进行实用单元测试,作者:Tomek Kaczanowski http://practicalunittesting.com/

最后,您可能想看看一个模拟框架(即。Mockito http://code.google.com/p/mockito/, JMock http://www.jmock.org/, EasyMock http://www.easymock.org):

  • 所以问题:什么是java中的模拟对象 https://stackoverflow.com/questions/2128148/what-are-mock-objects-in-java

  • 所以问题:模拟框架为我做什么 https://stackoverflow.com/questions/8095796/what-does-a-mocking-framework-do-for-me

  • http://mestachs.wordpress.com/2012/07/09/mockito-best-practices/ http://mestachs.wordpress.com/2012/07/09/mockito-best-practices/

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用 Selenium 和 jUnit 的第一步 - 有什么好的教程吗? [关闭] 的相关文章

随机推荐