这类手工删除只建议在开发的早期和使用该样例测试时使用。
Such manual deletion is only recommended during the early development and testing with this sample.
如果您想自己完成示例,可以下载应用程序和样例测试代码。
If you want to work through the examples yourself, you can download the application and the sample test code. Figure 1 shows HTMLDocumentEditor in action.
您将了解到如何快速创建一些样例测试,如何扩展它们,以及如何使用Selenium Remote Control来将它们作为自动测试运行。
You will learn how to quickly create some sample tests, how to expand them, and how to use Selenium Remote Control to run them as automated tests.
First one, when I write a piece of code, especially code that has branches in it, when I design test cases for that piece of code, I should try and have a specific test case for each possible path through the code.
第一点,当我们写代码的时候,尤其是一些含有分支语句的代码的时候,当我为这些代码,设计测试用例的时候,我应该为每一个可能的程序路径,都设计一个特别的用例。
For the latter, this is a place where running test cases would do a good job of helping with that. Nonetheless, having done that, let's look at a better way to write this. Which is right here it is also, I think, on your sheet, I'm going to uncomment that, and comment this one out, yeah. All right?
对于后者来说,运行测试用例,对它会有很大的帮助,尽管如此,讲完了这些,让我们再来看看更好的,来写这个程序的一种方法吧,也就是这里,我想这程序也在,你们的课堂手册上面,我得先把这里取消注释,然后注释掉这里,是的,对不对?
应用推荐