最终,你将创建越来越多的可调用的例行程序来支持测试。
Eventually, you create more and more of these callable routines to support the tests.
你可以在每一个测试程序中通过复制代码来为注册用户编号,或者你可以使它成为一个单一的,可调用的例行程序。
You could copy the code to handle the login into every test program, or you can make it into a single, callable routine.
你创建一个有用的例行程序,然后再一个,接着又一个,很快所有你所做的工作就是创建,重分解和改进测试的基础结构。
You create one useful routine, then another, then another, and pretty soon all you're doing is building and refactoring and refining the test infrastructure.
这个例行程序为你的测试程序提供了访问数据库的路径,但它同时使测试程序设计员无法处理注册程序的准确语义。
This routine provides your test programs with the means to access the database, but it also shields the test programmers from having to deal with the exact semantics of the login procedure.
这个例行程序为你的测试程序提供了访问数据库的路径,但它同时使测试程序设计员无法处理注册程序的准确语义。
This routine provides your test programs with the means to access the database, but it also shields the test programmers from having to deal with the exact semantics of the login procedure.
应用推荐