Listing 3 shows a few basic functional tests.
清单3给出了一些基础的功能测试。
Running Web-based functional tests with selenium.
用Selenium运行基于Web的功能测试。
System tests are very similar to functional tests.
系统测试和功能测试很相似。
It is intended for functional tests, not for production.
它主要用于功能测试,不用于生产。
Developers should be writing functional tests with users.
开发人员应与用户共同编写功能测试。
Tests written to test controllers are called functional tests.
为测试控制器编写的测试称为功能测试(functionaltest)。
Part 2 spends more time on functional tests and integration tests.
第2部分把更多时间花在功能测试和集成测试上。
The functional tests will expose problems that your unit tests are missing.
功能测试将暴露单元测试遗漏的问题。
Now, consider one hundred functional tests that all perform a test like this.
现在,考虑如果一百个功能性测试都要这样执行测试,会怎么样。
Work with a user to write functional tests that capture the user requirements.
请与用户一起编写获取用户需求的功能测试。
Developers are generally responsible for creating unit tests and sometimes functional tests.
开发人员通常负责创建单元测试,有时负责功能测试。
You can also test the code in traditional ways, using debugger or performing functional tests.
你也可以采用传统方式对代码进行测试,例如使用调试器或者执行功能测试。
But there's no rule that says you have to use database-backed models to do your functional tests.
但没有规定要求必须使用受数据库支撑的模型去做功能测试。
JUnit is very good at unit testing; however, it unravels when attempting to write functional tests.
JUnit非常适合编写单元测试;但是,当试图编写功能测试时,它就显得力不从心了。
Testing may not be fun, but having working unit and functional tests makes development a lot more fun.
测试可能不那么有趣,但是在开发过程中进行单元测试和功能测试使开发变得相当有趣。
The functional tests define your working system in a useful manner. A maintained suite of functional tests
功能测试以一种有用的方式对您的工作系统进行说明。
Process Explorer allows you to explore the automated functional tests through a variety of representations.
ProcessExplorer让你通过不同的表现形式来查看你的自动化功能测试。
Later in this article, you'll see that functional tests invoke functional test cases by using HTTP commands.
在这篇文章后面,您将看到功能测试如何通过使用HTTP命令来调用功能测试用例。
I started relying heavily on functional tests (over unit tests) which allowed me to test changes as a user would.
我开始严重依赖功能测试,而且超过了对单元测试的依赖,这让我能像用户那样测试应用中的变化。
Many Rails developers now use stubs or mocks to take the database out of the picture, forming lightning-fast functional tests.
现在很多Rails开发人员都使用stub和mock替代数据库,这就使功能测试变得十分轻快。
Whereas functional tests exercise a single feature, integration tests work through scenarios that can hit many different pages.
功能测试用于测试单一特性,而集成测试可能触及许多不同的页面。
Service tests for service use cases are no different, although they may be thought of more as functional tests than unit tests.
服务用例的服务测试没有什么不同,不过更多地将其看作功能测试,而不是单元测试。
Find a good functional testing framework, or develop one, and use these functional tests to identify what the user really wants.
找一个优秀的功能测试框架,或者开发一个测试框架,并使用这些功能测试识别用户的真实需求。
Like unit tests, writing a suite of maintainable, automated functional tests without a testing framework is virtually impossible.
就像单元测试一样,如果没有测试框架,编写一套可维护的自动化功能测试实际上是不可能的。
Antipatterns: Deployments are verified by running through manual functional tests that don't focus on deployment-specific aspects.
反模式:通过运行手动功能测试来验证部署,没有关注特定于部署的方面。
For really critical sections of your code, you might consider adding some functional tests as a safety net before you start refactoring.
对于代码中真正关键的部分,可能需要在进行重构之前添加一些功能测试作为一种安全保障。
While this analogy isn't quite correct, we can extend it for the purposes of understanding the difference between unit and functional tests.
尽管这种类比不很恰当,但为了理解单元测试与功能测试的区别,我们可以扩充这种类比。
Some tests are functional tests; it's not enough to know that a function called memcmp is provided, it has to actually have the correct semantics.
有一些测试是功能测试;它不足以确定是否存在一个名为memcmp的函数,它的语义必须正确。
A maintained, automated suite of functional tests might not catch everything either, but it will catch more than the best suite of unit tests can catch alone.
一套适当的自动化功能测试也不可能捕捉到每个错误,但是它能比最好的单一单元测试捕捉更多的错误。
This build will call the same build file, but with an alternate target, which might execute longer-running processes like functional tests, software inspections, etc.
这个构建调用相同的构建文件,但是执行另一个目标。这个目标可能执行长时间运行的过程,比如功能测试、软件检查等等。
应用推荐