2022-05-09

a332897696
码龄13年

翻译:
A test case is a detailed procedure that fully tests a feature or an aspect of a feature.
一个测试用例是测试一个特性或者特性的一个方面的详细步骤。
Whereas the test plan describes what to test, a test case describes how to perform a particular test.
一个测试计划描述了要测的内容,一个测试用例描述了怎么样详细的去展开测试
You need to develop a test case for each test listed in the test plan. Figure 2.10 illustrates the point at which test case design occurs in the lab development and testing process.....
你需要去列出一个测试计划中每一个需要测试的点。图2.10
A test case is a detailed procedure that fully tests a feature or an aspect of a feature. Whereas the test plan describes what to test, a test case describes how to perform a particular test. You need to develop a test case for each test listed in the test plan. Figure 2.10 illustrates the point at which test case design occurs in the lab development and testing process.

designing

A test case includes:
一个测试用例包括
The purpose of the test.
测试的目的
Special hardware requirements, such as a modem.
特殊的硬件要求,比如一个器件

Special software requirements, such as a tool.
特殊的软件要求,比如一个工具
Specific setup or configuration requirements.
特殊的配置或者设置要求
A description of how to perform the test.
The expected results or success criteria for the test.
一个如何进行测试的描述
还有测试的期望结果或者成功标准

Test cases should be written by a team member who understands the function or technology being tested, and each test case should be submitted for peer review.
测试用例应该由理解这个功能或者技术的人来写,然后每一个测试用例都应该被提交给每一个人看到评审
Organizations take a variety of approaches to documenting test cases; these range from developing detailed, recipe-like steps to writing general descriptions.
组织采用很多种方法去记录测试用例,这些范围从详细的开发 类似配方的步骤到编写总的描述。
In detailed test cases, the steps describe exactly how to perform the test. In descriptive test cases, the tester decides at the time of the test how to perform the test and what data to use.
在详细的测试用例中,这些步骤确切的描述了怎么样进行测试。在描述性的测试用例中 测试者在测试中决定怎么样去进行测试和用什么数据去进行测试。
Most organizations prefer detailed test cases because determining pass or fail criteria is usually easier with this type of case.
多数组织者更喜欢详细的测试用例因为对于这种类型的用例 决定通过还是失败的标准是更容易的
In addition, detailed test cases are reproducible and are easier to automate than descriptive test cases.
另外 详细的测试用例是每一步骤清晰可见的,也比描述性的测试用例更容易自动化

This is particularly important if you plan to compare the results of tests over time, such as when you are optimizing configurations.
如果你计划在一段时间内去比较测试的结果这是尤为重要的,比如当你正在优化配置时。

Detailed test cases are more time-consuming to develop and maintain. On the other hand, test cases that are open to interpretation are not repeatable and can require debugging, consuming time that would be better spent on testing.

(这一块不懂)
详细的测试用例是更花费时间去开发和维护的。另一方面,测试用例是更加开放的去打断的不是重复性的和可以要求的debug的,花费时间在测试上可能会更好

Test Case Design
测试用例设计
Test Case ID:
测试用例编号
It is unique number given to test case in order to be identified.
这是给测试用例的唯一编号为了区分
Test description:
测试描述
The description if test case you are going to test.
你将要进行测试的测试用例的描述
修订历史:

Each test case has to have its revision history in order to know when and by whom it is created or modified.
每一个测试用例都必须有它自己的修订历史为了知道什么时候谁来创建和修改的

Function to be tested:
The name of function to be tested.
要测试的功能
功能的名字被测试

Environment:
It tells in which environment you are testing.
环境:它告诉你在哪个环境进行测试

Test Setup:
Anything you need to set up outside of your application for example printers, network and so on.
测试安装程序
每一个你需要设置在你的应用程序外的任何内容,比如打印机、网络等等

Test Execution:
测试执行
It is detailed description of every step of execution.
每一步执行的步骤的详尽描述
Expected Results:
The description of what you expect the function to do.
预期结果:
描述期望功能去做什么
Actual Results:
实际结果:
pass / failed
通过/失败
If pass - What actually happen when you run the test.
如果是通过-是你跑这个测试的时候实际发生的事情

If failed - put in description of what you've observed.
如果是失败-把你观察到的描述写进去

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 219,589评论 6 508
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,615评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 165,933评论 0 356
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,976评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,999评论 6 393
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,775评论 1 307
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,474评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,359评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,854评论 1 317
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,007评论 3 338
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,146评论 1 351
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,826评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,484评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,029评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,153评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,420评论 3 373
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,107评论 2 356

推荐阅读更多精彩内容