Elements used for data - driven testing 用于數(shù)據(jù)驅(qū)動測試的元素
Provides data source - specific information for data - driven testing 為數(shù)據(jù)驅(qū)動測試提供數(shù)據(jù)源特定的信息。
Specifies constants that indicate how data rows are accessed in data - driven testing 指定常數(shù),這些常數(shù)指示如何在數(shù)據(jù)驅(qū)動測試中訪問數(shù)據(jù)行。
And lastname is the name of a valid column in the row associated with the current iteration of the data - driven test , lastname是以下行中某個有效列的名稱,該行與數(shù)據(jù)驅(qū)動的測試的當(dāng)前迭代關(guān)聯(lián)。
You can double - click any one of the rows in this table to see additional details about that iteration of the data - driven test 可以雙擊此表中的任意一行,查看有關(guān)數(shù)據(jù)驅(qū)動測試迭代的其他詳細(xì)信息。
The framework provides an entirely different approach , although it is often used in conjunction with one or more data - driven testing strategies 雖然框架通常與一個或一個以上的數(shù)據(jù)驅(qū)動測試策略一同使用,但它本身卻提供了一種完全不同的方法。
A data - driven test is a unit test that you configure to be called repeatedly for each row of a data source ; the data from each row is available to each successive run of the test as input data 數(shù)據(jù)驅(qū)動型單元測試是一種配置為針對數(shù)據(jù)源的每一行重復(fù)進(jìn)行調(diào)用的單元測試;每一行中的數(shù)據(jù)都作為輸入數(shù)據(jù)提供給每個后續(xù)的測試運行使用。
This property contains information including the name of the unit test that is currently running , the deployment directory , the names of log files , and for data - driven testing , the database to which you are connected 此屬性包含的信息包括:當(dāng)前正在運行的單元測試的名稱、部署目錄、日志文件的名稱;對于數(shù)據(jù)驅(qū)動型測試,還包括所連接到的數(shù)據(jù)庫。
百科解釋
Data-driven testing (DDT) is a term used in the testing of computer software to describe testing done using a table of conditions directly as test inputs and verifiable outputs as well as the process where test environment settings and control are not hard-coded. In the simplest form the tester supplies the inputs from a row in the table and expects the outputs which occur in the same row.