我有一个必须填写几个字段的表格。但是,只有一个字段是强制性的。所以,我想出了以下规格:关于功能测试,BDD和TDD的困惑
[Subject(typeof(CompanyHomeController))]
public class when_the_save_button_is_clicked
{
private It should_verify_that_the_company_name_has_been_filled;
private It should_show_some_text_next_to_the_company_field_if_it_has_not_been_filled;
private It should_submit_all_the_details_on_the_form_if_there_are_no_errors;
private It should_take_the_user_back_to_the_list_of_companies;
}
现在我想实现这一点,但我越来越困惑,因为它听起来很像功能测试,我不得不使用类似mvccontrib .watin dlls。我说的确是功能测试吗?我是否为BDD制定了“错误”规范?
感谢您的回答。我想这是灰色地带的领域之一,它更像是一门艺术而不是科学。以您拥有的方式更改规格要好得多,而且更容易“实施”。 – DavidS 2011-04-26 18:40:24