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

 找回密码
 注册
查看: 326|回复: 5

How To Design An Effective Test Automation Framework

[复制链接]
认证徽章
论坛徽章:
982
紫蜘蛛
日期:2015-10-15 14:48:45紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-09-22 15:53:22
发表于 2017-4-18 13:38 | 显示全部楼层 |阅读模式
By Sheshajee Dasari

In the software testing domain, clients and the business community have gained maturity to understand the benefits of implementing a test automation framework. Test automation framework plays a vital role in the success or failure of any software automation project. So, what exactly is a test automation framework? What are the best practices to be followed to create a test automation framework? Let’s explore this emerging concept and gain some insights on creating an outstanding test automation framework.

认证徽章
论坛徽章:
982
紫蜘蛛
日期:2015-10-15 14:48:45紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-09-22 15:53:22
发表于 2017-4-18 13:39 | 显示全部楼层
Test Automation Definition
Being in the software industry, we very well know that test automation is defined as a process of performing software testing activity by utilizing various test automation tools, the type of test automation tools can either be open source or licensed versions. Here’s a list of the popular test automation tools (HP’s Unified Functional Testing [UFT], Selenium, IBM’s Rational Functional Tester [RFT], FitNesseetc.). Before initiating test automation, it is profoundly recommended by software quality assurance experts to create a test automation framework, which would not only support the entire software testing process, but also help in improving the quality of software testing process. In a way test automation framework allows a software tester or software testing company to effectively perform automated software testing.

使用道具 举报

回复
认证徽章
论坛徽章:
982
紫蜘蛛
日期:2015-10-15 14:48:45紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-09-22 15:53:22
发表于 2017-4-18 13:39 | 显示全部楼层
Test Automation Framework Design
Generally speaking, a framework is defined as a real or conceptual structure created to provide support or guidance to an entity that could expand in future. A few others define it as an organization’s way of doing things. In the software industry, it is a widely accepted practice to follow a set of standards or frameworks that could help in successful execution of software projects. In simple terms, a test automation framework can be defined as a set of processes, standards and interactions between the components in which scripts are designed and executed.
Below are some of the key parameters that a software tester needs to keep in mind, while developing a test automation framework.
  • Handle scripts and data separately
  • Create libraries
  • Follow coding standards
  • Offer high extensibility
  • Less maintenance
  • Script/Framework version control

Let’s explore each of this point in detail.

使用道具 举报

回复
认证徽章
论坛徽章:
982
紫蜘蛛
日期:2015-10-15 14:48:45紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-09-22 15:53:22
发表于 2017-4-18 13:40 | 显示全部楼层
Handle scripts and data separately
Automated test scripts should be clearly separated from the input data store (e.g. XML, Ms-Excel files, Flat files or Databases), so that no modifications are required to the test scripts whenever data has to be changed for multiple input values.

Library
A library should contain all reusable components and external connections such as databases, generic functions, application functions etc. Software testers should be exposed only to the implemented libraries and tests should be performed by invoking these libraries.

Coding Standards
Scripting standards should always be maintained across the test automation framework, which will discourage individual coding practices and help in maintaining code uniformity, which makes it easier for software testers and developers to interpret.

Extensibility and Maintenance
An ideal test automation framework should steadily support all new enhancements to the software application and allow modification of existing features e.g. A reusable library can be created, which would help in enhancing application features with minimal effort.

Script/Framework Versioning
Versions of framework / scripts should be maintained either in a local repository or versioning tool, which would help in easy monitoring of changes to the software code.

使用道具 举报

回复
认证徽章
论坛徽章:
982
紫蜘蛛
日期:2015-10-15 14:48:45紫蜘蛛
日期:2015-10-15 13:48:52紫蜘蛛
日期:2015-09-22 15:53:22紫蜘蛛
日期:2015-10-15 14:47:47紫蜘蛛
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:47:47九尾狐狸
日期:2015-10-15 14:45:48九尾狐狸
日期:2015-10-15 14:48:45九尾狐狸
日期:2015-10-15 13:50:37九尾狐狸
日期:2015-09-22 15:53:22
发表于 2017-4-18 13:41 | 显示全部楼层
Conclusion
In today’s software development environment, test automation framework has become an integral component of a software testing life cycle. By following the above test automation framework design guidelines, software testers and software testing companies can immensely benefit by executing successful and maintainable test automation projects.

使用道具 举报

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

使用道具 举报

回复

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

本版积分规则

SACC2017购票8.8折优惠进行时

2017中国系统架构师大会(SACC2017)将于10月19-21日在北京新云南皇冠假日酒店震撼来袭。今年,大会以“云智未来”为主题,云集国内外顶级专家,围绕云计算、人工智能、大数据、移动互联网、产业应用等热点领域展开技术探讨与交流。本届大会共设置2大主会场,18个技术专场;邀请来自互联网、金融、制造业、电商等多个领域,100余位技术专家及行业领袖来分享他们的经验;并将吸引4000+人次的系统运维、架构师及IT决策人士参会,为他们提供最具价值的交流平台。
----------------------------------------
优惠时间:2017年8月30日前

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