为了应付技术面试,这些日子正在恶补TestDirector/QualityCenter的知识。除了查看TD/QC自带的资料以外,也浏览了网站和论坛上面的一些文章。前两天看到了一篇帖子,标题很吸引人“TD中Case的复用”。细细读来,发现文中的不少句子都很别扭。看到的是通篇中国字,连接起来却不像通顺的中国话!遇到这种情况,我会很自然的联想到文章可能译自外文资料。按照文中的关键字上网搜索一下,果然这篇文章是译自TD用户手册的一个章节。简单的一段文字,翻译成这个样子。把译文和原文都贴出来,对比一下看看多少错误。

[译文] TD中Case的复用

在你设计的测试步骤里,可以调用其他手工测试。当你运行测试时,测试步骤中调用的测试作为这个测试的一部分。这种方法很有用,例如,如果你使用了测试模板,你就可以在不同的测试中重复使用。

为了增加一个测试的适应性,你可以在测试中添加参数,然后在测试中调用它。参数是一个变量,它可以替换特定的测试中分配给它的一个定值。你可以根据调用它的测试或一个测试集在不同的场所下来改变参数的值。

例如,你可以创建一个“Login_Template”,它记录了当启动应用程序时登录的用户名及密码信息。你需要在多个测试的开始调用这个“Login_Template”。但在一些案例中,你需要用不同的用户比如administrator

登录。因此你要创建两个参数<

name>>和<>,根据不同的调用“Login_Template”的测试来改变这些参数的值。如果所有的调用都是使用一个用户登录,你可以为这个参数的用户及密码设置一个默认值。

[注:这段话翻译的最离谱,乱七八糟的内容已经丝毫看不到原文的思路了。]

这个部分包括了下面几个方面:

一、创建测试模板

在test plan

tree中你可以定义一个手工测试为测试模板。一个测试模板通常包含了参数,它可以被不同的测试调用。

注意:把一个测试设成一个测试模板来使用只是一个过滤的目的。你不需要设置一个测试为测试模板仅仅为了能被调用或添加参数。

To create a

template test:

在test plan tree中右击一个测试, 选择Template Test.

一个方框会加到手工测试图标的上,这就表明现在它是一个测试模板。

二、添加参数

你可以在一个手工测试的步骤的descrīption 或expected results中添加一个参数。

To add a parameter:

1. 在Design Steps标签中, 把焦点放在一个步骤的Descrīption 或Expected Results 中,就可以添加参数了。

2. 点击Insert Parameter 按钮。打开参数属性对话框。

3. 输入一个Parameter

Name,点击OK。一个新添加的参数的语法是<>。

三、调用含参数的测试

当你在design steps中调用一个包含参数的手工测试时,你可以为这个参数赋值。

To call a test with parameters:

1. 在Design Steps标签中, 点击New Call to Test

按钮。打开Select a Test 对话框。

2. 默认只会显示template tests。如果你要选择的测试不是测试模板,清除Show only

Template Tests。

3. 选择你要调用的带参数的手工测试。打开一个显示被调用的测试中包含的参数的对话框。

4. 在Value

列,输入每个参数的值,点击OK。

5. 在Select a Test 对话框上点击OK。这个调用作为一个链接插在design

steps中,在调用的测试里会显示出这个参数所赋的值。

注意:

如果你在调用测试的时候不为参数赋值,当你把测试加入测试集或运行测试时会提示你要给参数赋值。

6.

在调用的测试中编辑参数的值,右击调用的测试选择Called test parameters。在Called Test Parameters

对话框中为参数重新赋值,点击OK。

[原文] ,Page 132

Calling a Manual Test with Parameters

In your test

design steps, you can include a call to a manual test. When you run the test,

the test steps include the steps from the called test as part of the test. This

is useful, for example, if you have template tests that you want to reuse in

different tests.

In order to increase the flexibility and power of a test, you can add

parameters to the test and to the tests that call it. A parameter is a variable

that replaces a fixed value and can be assigned a value from outside the test in

which it is defined. You can change the value of a parameter in a test according

to the test that is calling it, or for different instances of a test in a test

set.

For example, you can create a template test “Login_Template” which logs in

a user with a specific password when you start your application. You need to

call this test at the beginning of each test. In some cases, you will want to

log in as a regular user while in others, you will need to log in as the

administrator. You can therefore create two parameters, <

name>> and <>, and change the value according to the

type of test that is calling “Login_Template”. If the most common login is a

regular user, you can set the default values for the parameters to a regular

user name and password.

This section includes the following parts:Creating a Template Test

Adding a Parameter

Calling a Test with Parameters

Creating a Template Test

You can define any manual test

in the test plan tree as a template test. A template test generally includes

parameters and is called by different tests.

Note:Setting a test as a template test is used for

filtering purposes only. You do not need to set a test as a template test in

order to be able to call it or add parameters.

To create a template test:

Right-click a test in the test plan tree, and

choose Template Test. A box is added around the manual test icon to indicate

that it is now a template test.

Adding a ParameterYou can add a parameter to the

descrīption or expected results of a manual test step.

To add a

parameter:

1 In the Design Steps tab, place the cursor in the Descrīption box

or Expected Results box of the step to which you want to add the parameter.

2

Click the Insert Parameter button. The Parameter Properties dialog box

opens.

3 Type a Parameter Name, and click OK. The new parameter is added to

the step using the syntax <>.

Calling a Test with Parameters

You can assign a value

to a parameter when you add a call to the manual test containing the parameter

in your design steps.

To call a test with parameters:

1 In the Design

Steps tab, click the New Call to Test button. The Select a Test dialog box

opens.

2 By default, only template tests are displayed. If you want to choose

a test that is not a template test, clear Show only Template Tests.

3 To

search for a specific test in the tree, type the name (or part of the name) of

the test in the Find box and click the Find button. If the search is successful,

TestDirector highlights the test in the tree.

4 To refresh a test in the

tree, select the test and click the Refresh Selected button.

5 Select the

manual test with parameters that you want to call. A dialog box opens,

displaying the parameters contained in the test you are calling.

6 In the Value column, type or change the value for each parameter, and

click OK.

7 Click OK in the Select a Test dialog box. The call is inserted as

a link in your design steps, and the values assigned to the parameters in the

called test are displayed.

Note: If you do not assign values to parameters when creating a test call, you

will be prompted to do so when you create a test to call your test call, when

you add your test to a test set, or when you run your test.8 To edit the values you assigned to the parameters in the called test,

right-click the test call and select Called test parameters. Type the new values

you want to assign to the test parameters in the Called Test Parameters dialog

box, and click OK.

9 To use two different parameter values for the same test,

create two separate test calls, assigning two different values to the parameter

in the called test.

[感想]没有人想当卫道士。真的希望把原文翻译成这样的人和转贴这样文章的人多读读译文,避免误导了文章的读者。也希望聪明的读者能够利用网络搜索的便利条件多阅读原文,避免浪费时间。

英语翻译软件测试简历,如此翻译-2 - Victor's Testing Career - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...相关推荐

  1. 南柯服务器压力,性能测试的数据解释及分析 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    顾名思义,测试服务(服务,服务,其他网络应用服务,本地服务)的性能如何?如何衡量性能?最表面的无非就是看能支撑多少个用户同时使用该服务.且关注用户使用过程中的用户体验. U.^*A+Mb6{*z@0T ...

  2. 南柯服务器压力,性能/负载/压力测试 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    在面试测试人员的时候,这是一个很好的问题:你如何定义性能/负载/压力测试?在很多时候,人们都是将它们作为可互相替换的相同术语来使用,然而实际上他们之间的差异是比较大的.这个贴子是根据我自己的一些经验, ...

  3. 软件测试bug日志信息,软件测试bug收集策略 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    51Testing软件测试网$Bu6gaT_ Error = 0 的程序是不存在的,怎样收集和处理程序中的错误?怎样更好地利用错误信息的收集和反馈来协助程序的调试?怎样让产品发布后,用户能够反馈出更有 ...

  4. 软件测试影响与分析,软件测试效率影响因素分析 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    方法是影响测试效率的主要因素之一.此外,人为因素.软件类型.缺陷数量.测试充分度等都会对测试效率产生影响.下面对这些因素作一个简要分析.51Testing软件测试网@&WMh,K#qdoq$~ ...

  5. 移动终端软件测试基础知识,移动终端软件测试基础知识 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    51Testing软件测试网%aa8|5^'O 1)定制终端评测趋势51Testing软件测试网4Vx+Mx vLl*O*} M3uNE2H^,\`u4B0● 定制终端评测2dq,}Ak|q051Te ...

  6. 本地化翻译软件测试,本地化测试 - Mr.南柯 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    +~2FM&DSEJ3W O]0在本文中,我们将含括在编码阶段期间所能够做的事情和为了使发现问题最有效,你应该将你的本地化测试力量集中在何处等问题.51Testing软件测试网:EK?Au)b ...

  7. 汇丰软件测试英语面试,汇丰笔试 - Beyond my life. - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    第一部分:数列逻辑 即是填数字,给出一组数字,其中一个为空白要填的,如:2 4 6 ?(8) 10. 有5个组的和6个一组的,5个(单数个)一组的一般是差值/倍数问题,双数个的就很可能是双规律问题. ...

  8. 英语口语软件测试,英语口语1 - leon的个人空间 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    1.闹钟响了吗? Did the alarm clock go off? 2.该起床了! It's time to get up! 3.快点儿起床! Get up soon. 4.你醒了吗? Are ...

  9. java对import语句_Java的import语句 - 不积跬步,无以至千里 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    51Testing软件测试网]2S+K"rZ/bP*j 程序员可以使用两种import语句:51Testing软件测试网o$UN5EQh 3oZc4n f9P"CoQ;T]0单类型 ...

  10. linux网络状态检测libcurl,使用curl进行网络诊断 - msnshow的个人空间 - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...

    "]J n S%fr6v8G[,zP0   我们使用浏览器插件,很容易查看到网页细分请求消耗的时间.如Firefox的Firebug插件:51Testing软件测试网c[5fs{.Y51Te ...

最新文章

  1. git遇到的一些小问题
  2. linux命令学习——file
  3. 在VMware Workstation中设置双网卡实现SSH使用固定IP登录并且在虚拟系统中任意访问Internet...
  4. C++虚函数与虚函数表
  5. php归档函数(按时间)实现
  6. 20道JS原理题助你面试一臂之力!
  7. spring—事务控制
  8. html5常用插件大全,前端常用插件utils汇总
  9. Windows组建网络服务 ——DNS的组建与架构
  10. 升级 python 2.6.6 到 2.7.14 版本(pip工具安装)
  11. Kubernetes实战阅读笔记--1、介绍
  12. JAVA常量池,一篇文章就足够入门了。(含图解)
  13. swift-集成touch id功能 指纹验证
  14. 3D产品建模为3D产品展示打下基础
  15. linux系统盘ssd,Linux系统下如何使用SSD固态硬盘
  16. AAM和CCM学习笔记
  17. js 实现繁体和简体之间的转换
  18. Opencv 特征训练分类器
  19. DotCode二维码基本概念
  20. DEBUG系列一:Dumpdebug_SAP刘梦_新浪博客

热门文章

  1. 大牛手把手教你用树莓派玩红警OPENRA
  2. 电脑爱好者 2008年第23期(12月上) PDF
  3. 现代控制理论(1)——状态空间表达式
  4. 【python】爬虫入门书籍推荐
  5. 制作pdf文档书签,自动生成or根据目录生成
  6. Pr 视频效果:模糊与锐化
  7. 20210312 plecs外部模式把示波器视野扩大
  8. Markdown的使用心得
  9. 没有提取码怎么获取百度网盘资源?
  10. 移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式