英语翻译软件测试简历,如此翻译-2 - Victor's Testing Career - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...
為了應(yīng)付技術(shù)面試,這些日子正在惡補(bǔ)TestDirector/QualityCenter的知識。除了查看TD/QC自帶的資料以外,也瀏覽了網(wǎng)站和論壇上面的一些文章。前兩天看到了一篇帖子,標(biāo)題很吸引人“TD中Case的復(fù)用”。細(xì)細(xì)讀來,發(fā)現(xiàn)文中的不少句子都很別扭。看到的是通篇中國字,連接起來卻不像通順的中國話!遇到這種情況,我會很自然的聯(lián)想到文章可能譯自外文資料。按照文中的關(guān)鍵字上網(wǎng)搜索一下,果然這篇文章是譯自TD用戶手冊的一個(gè)章節(jié)。簡單的一段文字,翻譯成這個(gè)樣子。把譯文和原文都貼出來,對比一下看看多少錯(cuò)誤。
[譯文] TD中Case的復(fù)用
在你設(shè)計(jì)的測試步驟里,可以調(diào)用其他手工測試。當(dāng)你運(yùn)行測試時(shí),測試步驟中調(diào)用的測試作為這個(gè)測試的一部分。這種方法很有用,例如,如果你使用了測試模板,你就可以在不同的測試中重復(fù)使用。
為了增加一個(gè)測試的適應(yīng)性,你可以在測試中添加參數(shù),然后在測試中調(diào)用它。參數(shù)是一個(gè)變量,它可以替換特定的測試中分配給它的一個(gè)定值。你可以根據(jù)調(diào)用它的測試或一個(gè)測試集在不同的場所下來改變參數(shù)的值。
例如,你可以創(chuàng)建一個(gè)“Login_Template”,它記錄了當(dāng)啟動應(yīng)用程序時(shí)登錄的用戶名及密碼信息。你需要在多個(gè)測試的開始調(diào)用這個(gè)“Login_Template”。但在一些案例中,你需要用不同的用戶比如administrator
登錄。因此你要創(chuàng)建兩個(gè)參數(shù)<
name>>和<>,根據(jù)不同的調(diào)用“Login_Template”的測試來改變這些參數(shù)的值。如果所有的調(diào)用都是使用一個(gè)用戶登錄,你可以為這個(gè)參數(shù)的用戶及密碼設(shè)置一個(gè)默認(rèn)值。
[注:這段話翻譯的最離譜,亂七八糟的內(nèi)容已經(jīng)絲毫看不到原文的思路了。]
這個(gè)部分包括了下面幾個(gè)方面:
一、創(chuàng)建測試模板
在test plan
tree中你可以定義一個(gè)手工測試為測試模板。一個(gè)測試模板通常包含了參數(shù),它可以被不同的測試調(diào)用。
注意:把一個(gè)測試設(shè)成一個(gè)測試模板來使用只是一個(gè)過濾的目的。你不需要設(shè)置一個(gè)測試為測試模板僅僅為了能被調(diào)用或添加參數(shù)。
To create a
template test:
在test plan tree中右擊一個(gè)測試, 選擇Template Test.
一個(gè)方框會加到手工測試圖標(biāo)的上,這就表明現(xiàn)在它是一個(gè)測試模板。
二、添加參數(shù)
你可以在一個(gè)手工測試的步驟的descrīption 或expected results中添加一個(gè)參數(shù)。
To add a parameter:
1. 在Design Steps標(biāo)簽中, 把焦點(diǎn)放在一個(gè)步驟的Descrīption 或Expected Results 中,就可以添加參數(shù)了。
2. 點(diǎn)擊Insert Parameter 按鈕。打開參數(shù)屬性對話框。
3. 輸入一個(gè)Parameter
Name,點(diǎn)擊OK。一個(gè)新添加的參數(shù)的語法是<>。
三、調(diào)用含參數(shù)的測試
當(dāng)你在design steps中調(diào)用一個(gè)包含參數(shù)的手工測試時(shí),你可以為這個(gè)參數(shù)賦值。
To call a test with parameters:
1. 在Design Steps標(biāo)簽中, 點(diǎn)擊New Call to Test
按鈕。打開Select a Test 對話框。
2. 默認(rèn)只會顯示template tests。如果你要選擇的測試不是測試模板,清除Show only
Template Tests。
3. 選擇你要調(diào)用的帶參數(shù)的手工測試。打開一個(gè)顯示被調(diào)用的測試中包含的參數(shù)的對話框。
4. 在Value
列,輸入每個(gè)參數(shù)的值,點(diǎn)擊OK。
5. 在Select a Test 對話框上點(diǎn)擊OK。這個(gè)調(diào)用作為一個(gè)鏈接插在design
steps中,在調(diào)用的測試?yán)飼@示出這個(gè)參數(shù)所賦的值。
注意:
如果你在調(diào)用測試的時(shí)候不為參數(shù)賦值,當(dāng)你把測試加入測試集或運(yùn)行測試時(shí)會提示你要給參數(shù)賦值。
6.
在調(diào)用的測試中編輯參數(shù)的值,右擊調(diào)用的測試選擇Called test parameters。在Called Test Parameters
對話框中為參數(shù)重新賦值,點(diǎn)擊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.
[感想]沒有人想當(dāng)衛(wèi)道士。真的希望把原文翻譯成這樣的人和轉(zhuǎn)貼這樣文章的人多讀讀譯文,避免誤導(dǎo)了文章的讀者。也希望聰明的讀者能夠利用網(wǎng)絡(luò)搜索的便利條件多閱讀原文,避免浪費(fèi)時(shí)間。
總結(jié)
以上是生活随笔為你收集整理的英语翻译软件测试简历,如此翻译-2 - Victor's Testing Career - 51Testing软件测试网 51Testing软件测试网-软件测试人的精神家园...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IPv6下一代互联网现在就出发!
- 下一篇: Flash动画制作实例教程