When you fail a test, it's better to tell your mom the truth rather than find out another way.
考试不及格时,你最好告诉你妈妈真相,而不是动其他心思。
Sometimes it's simplest to have a human sit in front of the program and mark each test as pass or fail.
有时,最简单的方法是让一个人坐在程序前将每一个测试通过或失败的结果都标记下来。
You may be asking yourself why this test will fail. After all, it is valid syntactically.
您可能会问这个测试为什么会失败,毕竟它的语法是正确的。
Therefore, the daily builds will continually fail as expected until the appropriate test cases are passing.
因此,每日的构建将如预料不断地失败,直到适当的测试用例通过。
But firms will be penalised if they fail to drill the promised test Wells.
但是,如果这些公司钻探不了约定的试验井,将会受到惩罚。
Scientists don't yet know why dogs fail this test, but it may be because "we train them to look at our eyes and face and not to follow our gaze," says Range.
科学家们现在还不知道为什么狗反而会在测试中失败,兰奇认为可能是因为“我们训练狗注视我们的眼睛以及面部,而不是追随视线。”
This test case will fail at assertion because the results page contains no link with this text.
这个测试用例遇到断言的地方会失败,因为结果页面中不包含带有这个文本的链接。
Chances are that the test will fail several times in the project life as the bug resurfaces.
在整个项目生存期中,当这个错误重新出现时,这个测试有可能会失败几次。
The key is to write a test that will fail if the aspect misbehaves or does not apply to the join points you intend it to.
关键是编写一个当方面行为错误或者没有应用到希望它应用的联结点处时会失败的测试。
You will be surprised how many of the applications you use everyday fail this simple test.
您会惊讶每天使用的应用程序有多少不能通过这个简单的测试。
This is challenging because there is no network in a unit test and the AJAX call will fail.
这很有挑战性,因为单元测试中没有网络,AJAX调用会失败。
In typical circumstances, these changes to the objects in the application under test have cause the functional test run to fail.
在常见情形下,这些变化对于被测应用中的对象来说,会导致功能测试失败。
The DOH also allows you to specify a custom timeout in milliseconds that will fail the test if a response is not returned within the specified time.
DOH还允许以毫秒为单位设定超时值,一旦响应没有在指定的时间内返回,测试就会失败。
If you fail at a test or perform poorly at an audition, you could erroneously call yourself a failure.
如果你考试失败,或者在观众面前表现糟糕,于是你错误的把自己称之为失败者。
If wrapping was not done, the test would still fail on an error, but all the DOH would report is the test timed out.
假设没有执行包装,那么测试还将在错误出现时停止,但DOH报告的内容却是测试超时。
If they are equal, the test will be considered successful; if they are not equal, the test will fail.
如果它们相等,则认为测试成功;如果它们不相等,则测试失败。
There's a higher probability of detecting the fail if the test is run a couple times.
如果多次运行测试,就能够提高发现失败的可能性。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
Repeat until you find a test that does fail and thus discover the true cause of the bug.
重复进行,直到找到一个真正失败的测试,从而找到造成bug的真正原因。
We started this discussion by asking, "Why is it that some software test teams succeed while others fail?"
我们从提出问题:“为什么有些软件测试团队成功而另一些却失败了?”开始进行讨论。
This is what indirectly causes the testDataLayer() test case (from Listing 3) to fail, by the way.
这将间接导致 testDataLayer()测试用例(如清单3所示)失败。
If the exception isn't thrown (or a different exception is thrown), the test will fail.
如果该异常没有抛出(或者抛出了一个不同的异常),那么测试就将失败。
Fail (" MSG ") - indicates that the test must fail and the message parameter will be displayed as an error message.
fail (“ms g ”):表明测试一定会失败,消息参数将显示为一条错误消息。
Else code block is a simple logical crossroad that helps show why the test would fail or pass if one path - and not another - is taken, according to test expectations.
else代码块是一个简单的逻辑分支,根据测试期望说明选取一条路经——而不是另一条路经——之后测试将失败(或通过)的原因。
You can use the fail method to force a test case to fail, for example if you want to force a timeout of an operation.
您可以利用fail方法强迫这个测试用例失败,例如您想要迫使一个操作暂停。
A test can fail because some specific assertion does not hold (assertion methods either start with ".fail "or".assert ").
一个测试可能会因为一些具体的断言无效而失败(断言方法或者以“。fail”开头,或者以“。assert”开头)。
So we could develop a test that assesses prospective parents' capabilities and if they fail the test, well, no children allowed.
我们应该对那些未来的父母的能力做出一个评估,如果他们不能够通过测试,那么好吧,不允许有孩子。
That kind of off-by-one error might not cause your program to crash or your test to fail, but there is still memory corruption going on.
这种错误可能不会导致您的程序崩溃或者您的测试失败,但是仍然存在内存崩溃的危险。
That kind of off-by-one error might not cause your program to crash or your test to fail, but there is still memory corruption going on.
这种错误可能不会导致您的程序崩溃或者您的测试失败,但是仍然存在内存崩溃的危险。
应用推荐