資料儲存區所含的資料,可讓測試在執行時使用。
,ModelNumber::String,Description::String,Price::Double flowers,F0001,Orchid,5.99附註:如果 CSV 檔案不含等值類別名稱,則所有匯入的列都會放在單一等值類別下。
flowers,F0002,Tulip,1.99
flowers,F0003,White Poinsee,6.99
flowers,F0004,White Rose,9.99
flowers,F0005,Geraniums,4.99
vegetables,F0006,Cabbage,0.99
vegetables,F0007,Lettuce,0.99
vegetables,F0008,Tomatoes,0.25
vegetables,F0009,Celery,0.35
vegetables,F0010,Cucumbers,0.4
上層主題:提供變數資料給測試
相關概念
教學指導:建立資料儲存區驅動的 JUnit 測試應用程式
相關作業
編輯資料儲存區