数据池包含当测试运行时它们可以使用的数据。
,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 测试应用程序
相关任务
编辑数据池