When a build is broken, I want to know immediately so I can take the proper action to fix it — whether that be a compilation error, test failure, or even an increase in overall complexity.
一个构建发生故障时,我希望能够立即知道这一情况,以便就能够采取适当的行动来解决这一问题——不论那是编译错误、测试故障甚或是整体复杂性的增加。
The next section presents some test cases to help you answer these questions as they relate to the transaction manager, in the event of a resource manager failure at different points in time.
当资源管理器在不同时间点出现故障时,下面小节展示的一些测试案例可以帮助您解决这些问题,因为它们都与事务管理器相关。
An alternative is to add a TODO comment in each test rather than an outright failure.
一个可供选择的方法是在每个测试中添加一个todo注释而不是完全失败。
Obviously, production may have many more than two so it can handle the intended load, but this staging environment need only have enough servers to adequately test the failure and recovery scenarios.
很明显,产品环境拥有的服务器可以远远多于两个,这样它可以处理预定的负载,而该临时环境只需要拥有足够的服务器来充分测试故障和恢复场景即可。
We can readily construct a unit test to invoke the BPEL process, but there is no response to validate, so how can we determine its success or failure?
我们可以随时构建一个单元测试来调用bpel流程,但不能响应验证,那么如何才能确定它的成功或失败呢?
DeFilippi says the troponin test turns out to be a strong predictor by itself of heart failure or of death from any kind of heart disease, and it does so independent of other risk factors.
迪菲利比教授指出,肌钙蛋白检测本身就能很有效地预测心力衰竭和任何心脏病导致的死亡,无须考虑其他风险因素。
Instead, they offer JUnit assertions to both signal the failure and unwind the test.
相反,他们提供了JUnit断言来通知失效或者展开测试。
The test was executed outside of the ClearQuest test management setup, which meant that the tester could use Rational Manual tester to mark the success or failure of each test case.
这个测试是在ClearQuest测试管理设置之外执行的,这意味着测试人员应该使用RationalManualTester对每个成功或者失败的测试用例进行标记。
This article covers the following failure scenarios in test automation and explains the solutions to counter them in the Eclipse workspace
本文将会涉及到测试自动化中以下的失败场景,并解释在 Eclipse 工作区中遇到它们时的方案。
This is how the test program gets access to the list of messages; the call to yyparse() returns only a success or failure indication, not any objects it may have created.
这就是测试程序访问消息列表的方式;对yyparse() 进行调用返回的只是成功或失败的标志,而 不是它可能已经创建的任何对象。
Note the link FEST-Swing added to the screen shot of the desktop, taken at the moment of the test failure.
注意测试失败时FEST - Swing添加到桌面截图中的链接。
The email body will provide a hyperlink to each failing test suite report, allowing the administrator to easily see the details of the failure within Rule Team Server, as shown in Figure 5.
邮件正文将提供到每个失败测试套件的超链接,允许管理员在RuleTeamServer中查看关于失败的详细情况,如图 5 所示。
Some sample messages to test both success and failure scenarios are provided in the test file DebitCreditFlow_test.mbtest.
测试文件DebitCreditFlow _ test . mbtest提供了一些用来测试成功和失败场景的样例消息。
This failure says that I haven't tested the code using a zero-length array. That's easy enough to fix, so I can just add a quick test and move on to the next failure, shown in Listing 4.
这个失败说,我没有用长度为零的数组测试该代码。
"No child left behind is a dismal failure. how can we create a real education act, with proper funding, to make students creative, life-long learners instead of teaching to a test?" (education)?
不让任何一个孩子落后已经是一个巨大的失败,我们怎样才能建立一个真正具有适当资金、是我们的学生具有创造性、并且是终身学习而不是应付考试的教育法案?
This allows you to fix the problem one at a time (run test > failure > fix code > run test > failure > fix code > fix code > run test > success).
这允许您每次修复一个问题(运行测试 >故障 > 修复代码 > 运行测试 > 故障 > 修复代码 > 修复代码 > 运行测试 >成功)。
These tests don't necessarily need to fail first (although a failure when you think a test should pass is pure gold, because you've found a potential bug).
这些测试不一定需要首先采用失败测试的形式(但是,如果在认为测试应该通过时测试却失败了,这是很有价值的,因为这意味着找到了一个潜在的 bug)。
It may seem obvious, but it is important to comprehensively test these components in order to verify that when a failure does occur, they do their job and maintain availability.
虽然可能看起来很明显,但是全面测试这些组件,以验证当一个组件失效发生时它们会作相应的工作并维护可用性是很重要的。
Departing is kind of inevitable test, in which if your love is not solid enough, you have to face the failure without any grudge.
分开是一种必然的考验,如果你们感情不够稳固,只好认输,真爱是不会变成怨恨的。
How do you induce a feeling of loss or failure in the laboratory without resorting to deception or making a test subject feel miserable?
你怎样在避免使用欺骗手段或是使受试者感觉痛苦的条件下在实验室环境中诱发失败的感受?
What test can be applied to verify that the failure was handled correctly?
什么样的测试可以被应用于验证该失效被正确地处理了?
Unit tests also give developers courage to refactor the code, because a test failure tells the developer immediately if something's broken.
单元测试还给了开发人员勇气重新划分代码,因为测试失败可以立刻告诉开发人员存在错误。
Programmer tests also give developers courage to refactor the code, because a test failure tells the developer immediately if something's broken.
程序员测试还给予开发者重构代码的勇气,因为测试失败会立即告诉开发者是不是有地方出了问题。
This gap between the expectations and real delivered value leads to dissatisfaction and, many times, the failure of the test automation project.
预期价值与交付价值之间的差距,会导致客户的不满情绪,使得测试自动化过程失败。
Now you can proceed to Step 2 of the TDD style of the software development work flow, which is to run the test case to failure.
现在,您可以继续进行TDD风格的软件开发工作流的第2步,也就是运行测试用例直至发生故障。
JUnit provides an additional mechanism to determine the success or failure of a test case.
JUnit提供了一个额外的决定测试用例成功或者失败的机制。
The haltonfailure attribute is set to true so that the build stops on test failure too.
haltonfailure属性被设为true,以便让构建过程在测试失败时停止。
Lastly, in line 18 an assertion statement is issued to determine the success or failure of a test case.
最后,在第十八行的断言语句中,决定了这个测试用例的成功与失败。
Under some circumstances, such as slow network throughput, the Ajax call is not completed after pausing for a specific time and will lead to the failure of the test cases.
在有些情况下,比如说网络吞吐量很慢时,Ajax调用在暂停一段特定的时间之后没有完成,会导致测试用例失败。
The major issue with this type of mismatch is that the failure happens at run time and will not consistently fail, making it possible for a sniff test to miss the problem.
该类型的不匹配产生的主要问题是在运行时会产生失败,但也不会一直失败,这使得取样测试(sniff test)可能会遗漏错误。
应用推荐