ITPUB论坛-中国专业的IT技术社区

 找回密码
 注册
查看: 500|回复: 10

6 top open-source testing automation frameworks: How to choose

[复制链接]
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:21 | 显示全部楼层 |阅读模式
If you're thinking about building your own test automationframework, think again. You'll do very well in most cases to consider one or more of the open-source options available. That's because, in general, a framework is a set of best practices, assumptions, common tools, and libraries that can be used across teams. In most cases you don't need one that's unique to your dev environment.
You simply need a framework is to help make your test automation code:
  •       Reusable
  •       Maintainable
  •       Stable

I’ve seen some teams take these benefits to the extreme by building their own, elaborate automation frameworks from scratch. This drives me crazy, because they could have easily made use of existing open-source tools and libraries that would have met their needs without writing any code—and in most cases with better results.
Before you fall into the “build your own framework” trap, be sure to check out these six open-source test automation solutions.

认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:21 | 显示全部楼层
Serenity
If you need a Java-based framework that integrates with behavior-driven development tools such as Cucumber and JBehave and that lets you keep your test scenarios at a high level while accommodating lower-level implementation details in your reports, Serenity might be the tool for you. Serenity (formerly Thucydides) is an open-source tool designed to make writing automated acceptance and regression tests easier.
A key benefit is that Serenity acts as a wrapper on top of Selenium WebDriver and BDD tools. This makes writing BDD and Selenium tests easier, because it abstracts away a lot of boilerplate code you sometimes need to write to get started. Serenity also offers a lot of built-in functionality such as providing WebDriver management, managing state between steps, taking screenshots, running tests in parallel, facilitating Jira integration, and more—all without having to write a single line of code.
What Serenity is really awesome at is creating unbelievable reports. Out of the box, Serenity creates living documentation that can be used not only to view your Selenium BDD test results, but also as documentation for your application.
It also has an extra annotation called @Step. The @Step method gives you an extra level of abstraction that, when used correctly, can make your tests more reusable and maintainable.
Serenity takes care of many things you would normally have to code from scratch if you were creating your own BDD framework. I think it’s one of the better open-source frameworks available, but I might be a bit biased because it’s the tool I use for my day-to-day test automation efforts.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:21 | 显示全部楼层
Robot Framework
If you want to use Python for your test automation efforts, you can’t go wrong using the Robot Framework.
The Robot Framework is a mature solution that was created for testers; it uses a keyword-driven approach to make tests readable and easy to create. It also has many test libraries and other tools you can use.
The Selenium WebDriver library is probably the most used external test library, but Robot Framework can test things other than websites, such as FTP, MongoDB, Android, Appium, and more. In addition to all this open-source awesomeness, it has a lot of APIs to help make it as extensible as possible.
The Robot Framework is Python-based, but you can also use Jython (Java) or IronPython (.NET).
The keyword approach used by Robot Framework is great for testers who are already familiar with other vendor-based, keyword-driven test tools, making the transition to open source much easier for them.
If your team is made up of mostly testers, Robot Framework would be a great option for your automation framework.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:22 | 显示全部楼层
RedwoodHQ
RedwoodHQ takes a slightly different approach from the other tools on this list. It creates a website interface that allows multiple testers to work together and run their tests from one web-accessible location.
Tests can be written in Java/Groovy, Python, and C# to test web applications with Selenium, APIs, or databases using their web IDE, which also includes built-in GIT integration.
You can leverage RedwoodHQ’s existing action keywords to get started creating and modifying tests quickly. To create a test script, you just need to find the action you want to perform, drag it into your test case, and enter the parameter values it expects.
The built-in IDE also allows you to create and modify test cases and actions as well as to execute your tests. You can also run your tests against predefined machines in parallel and see a running history of all your previous tests runs.
RedwoodHQ is tester-friendly and has a lot of built-in features that allow you to create complete test automation and test management solutions for your teams.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:22 | 显示全部楼层
Sahi
Developed for testing web applications, Sahi offers both an open-source and a pro version. Sahi works as a proxy server that allows you to use it within a browser. From the Sahi dashboard, you can launch the browser you want to test.
The Sahi controller guides you through the recording and capturing of the interaction you want to perform against your application. When you hover over any element in the Sahi browser, for instance, it will show you all the actions you can perform against that particular element.
You can also use the controller to play back your script. Sahi’s record and playback functionality makes it easy to get started with test automation of simple HTML applications. But beware of relying on record and playback; this approach has proved to be a bad practice for creating maintainable, robust automation tests. It’s okay for helping create an initial test, but you’ll need to customize it to make it reliable and maintainable.
I’ve heard quite a bit about Sahi, but my first impression of it is that it’s not as powerful as some of the other options. However, lots of folks rave about the Sahi pro version.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:22 | 显示全部楼层
Galen Framework
If your automation efforts are focused on user experience design (UX) or layout testing, Galen Framework might be a perfect fit for your needs.
Galen was created specifically for UX testing and has a special syntax and rules you can use to describe and verify your application’s layout. It also allows you to specify your browser size, then run tests against your application to verify your layout specifications. Galen tests also generate detailed HTML reports with screenshots, and it includes a visual image comparison with a cool heat map feature.
Tests can be written in a simple text file using the Galen syntax, JavaScript, or Java.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:22 | 显示全部楼层
Gauge
Gauge is one of the newest open-source test automation tools for Mac, Windows, and Linux, and it was developed by the folks at ThoughtWorks—the same company that created Selenium.
Practitioners of TDD and BDD will appreciate Gauge’s focus on creating living and executable documentation.
Gauge automation tests, called "specs," are written using a simple markdown language, using Java, Ruby, and C# within your existing developer IDEs such as Eclipse and Visual Studio. Gauge’s functionality can also be extended with its support of plugins.
Gauge is pretty new and is still in beta, so if your team is into cutting-edge test development, you might want to give it a try.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:23 | 显示全部楼层
Many choices
The preceding solutions are just a small sample of the types of open-source test automation frameworks available.
Before you write that first line of code in creating your own framework, make sure there isn’t a library or framework you can leverage. I suggest you stop wasting your time reinventing the wheel and check out one of these automation frameworks first.

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-12 10:23 | 显示全部楼层

使用道具 举报

回复
认证徽章
论坛徽章:
1051
紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-10-15 14:45:48紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-09-22 15:53:22九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:48:45
发表于 2018-1-13 23:10 来自手机 | 显示全部楼层
good job

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

TOP技术积分榜 社区积分榜 徽章 电子杂志 团队 统计 虎吧 老博客 知识索引树 读书频道 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档 | IT博客
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛 | SAP ERP系统
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 网站律师 隐私政策 知识产权声明
京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表