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