【24h】

Coding vs. Scripting: What is a Test Case?

机译:编码与脚本:什么是测试用例?

获取原文
获取原文并翻译 | 示例

摘要

Automation has its place in the test lifecycle, but when it comes to automation, the definition of a test case becomes a gray area. Is a test case an XML blob or other metadata that is interpreted by a harness; or is it scripted code (such as JavaScript or VBScript); or is it a function or set of functions within compiled code written in a language like C# or Java? A test case can be any of the above. One could define a test case as a set of instructions to execute a task and verify its results. These instructions can be described in a variety of languages. This paper presents our experience in defining and implementing a script language, its applications in our test scenario; as well as our experience in adopting the Microsoft .Net platform with the C# language to create a long lasting and reusable test model. We started with a set of principles and goals in conjunction with a number of technical challenges to solve. We initially created a test scripting language known as the Simple Language for Scenarios (SLS). We used this language for 3-4 years. As the C# language matured, we were able to find ways to implement the benefits of SLS as well as leverage the power of a fully functional development language. We concluded that overall each approach has its unique pros and cons and it makes sense to use the approach most suitable for a given situation. However, overall we found that moving towards C# was the solution that would work in most situations as it provided us with majority of the functionality and added the structure of an Object Oriented Programming Language.
机译:自动化在测试生命周期中占有一席之地,但是当涉及到自动化时,测试用例的定义将变成灰色区域。测试用例是由工具束解释的XML blob或其他元数据吗?还是脚本代码(例如JavaScript或VBScript);还是用C#或Java之类的语言编写的已编译代码中的一个函数或一组函数?测试用例可以是上述任何一种。可以将测试用例定义为一组指令,以执行任务并验证其结果。这些说明可以用多种语言来描述。本文介绍了我们在定义和实现脚本语言及其在测试场景中的应用程序方面的经验;以及我们采用C#语言采用Microsoft .Net平台来创建持久且可重用的测试模型的经验。我们首先制定了一系列原则和目标,并解决了许多技术难题。最初,我们创建了一种测试脚本语言,称为“场景简单语言(SLS)”。我们使用这种语言达3-4年。随着C#语言的成熟,我们能够找到方法来实现SLS的好处以及利用功能齐全的开发语言的功能。我们得出的结论是,总体而言,每种方法都有其独特的优点和缺点,因此使用最适合给定情况的方法是有意义的。但是,总的来说,我们发现向C#过渡是在大多数情况下都可以使用的解决方案,因为它为我们提供了大多数功能,并增加了面向对象编程语言的结构。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号