When you fail a test, it's better to tell your mom the truth rather than find out another way.
考试不及格时,你最好告诉你妈妈真相,而不是动其他心思。
In part this is for safety reasons, in part because we do not want to fail a test specimen or overload an instrument.
这样做的部分原因是基于安全考虑,另外也是为了防止试体破坏或仪器超过负荷。
Sometimes it's simplest to have a human sit in front of the program and mark each test as pass or fail.
有时,最简单的方法是让一个人坐在程序前将每一个测试通过或失败的结果都标记下来。
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.
关键是编写一个当方面行为错误或者没有应用到希望它应用的联结点处时会失败的测试。
This is the most reliable way to find components in a test; it guarantees that component lookup will never fail, even if the GUI's layout changes in the future.
这是在一个测试中查找组件最可靠的方式;它保证组件查找从不失败,即使GUI的布局在将来会改变。
This is challenging because there is no network in a unit test and the AJAX call will fail.
这很有挑战性,因为单元测试中没有网络,AJAX调用会失败。
Then I would even take it a step further and run the test cases, even though I know they will fail because I haven't actually written any of the code for it.
接下来我甚至会进一步运行测试用例,尽管我知道它们将失败,因为我没有为该类编写任务代码。
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还允许以毫秒为单位设定超时值,一旦响应没有在指定的时间内返回,测试就会失败。
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测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
Meanwhile, another new test, described here, claims to predict when a women's ovaries will start to fail.
另外一项新的测试方法则宣称能预测女性的卵巢从何时开始衰竭。
Pharmaceutical companies are using heart cells grown from iPSCs to test drugs for cardiac side effects, a common reason that promising drugs fail.
医药公司使用由万能干细胞生长而成的心脏细胞做心脏病药物的副作用测试,副作用是很多看起来很有希望的药物最终未能成功的一大原因。
Repeat until you find a test that does fail and thus discover the true cause of the bug.
重复进行,直到找到一个真正失败的测试,从而找到造成bug的真正原因。
If the exception isn't thrown (or a different exception is thrown), the test will fail.
如果该异常没有抛出(或者抛出了一个不同的异常),那么测试就将失败。
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代码块是一个简单的逻辑分支,根据测试期望说明选取一条路经——而不是另一条路经——之后测试将失败(或通过)的原因。
The test case in Listings 2 through 4 produce a NoClassDefFoundError because an implicit load of class B will fail
清单2到清单4的测试用例产生了NoClassDefFoundError,因为类B 的隐式装入会失败
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”开头)。
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)。
So we could develop a test that assesses prospective parents' capabilities and if they fail the test, well, no children allowed.
我们应该对那些未来的父母的能力做出一个评估,如果他们不能够通过测试,那么好吧,不允许有孩子。
If a test marginally passes, but some things dont fully work, you can say 70% pass, 30% fail by using the weight sliders.
如果一个测试通过,但是有一部分事不能发挥全部潜能的话,使用权重分配,您可以说70%通过了,30%没有通过。
If you fail at a test or perform poorly at an audition, you could erroneously call yourself a failure.
如果你考试失败,或者在观众面前表现糟糕,于是你错误的把自己称之为失败者。
People who fail the test become ineligible for welfare for a year, though this is dropped to six months if they prove that they have successfully completed drug treatment (which they must pay for).
未通过检测的人一年内不能享受任何福利待遇,如果他们能够证明自己已经成功戒掉毒瘾(接受戒毒治疗需付费)的话,这一期限将缩减为六个月。
There's a couple of unit tests that test this condition and will fail as of right now.
将会有两个测试单元来测试这种情况,并会立刻失败。
There's a higher probability of detecting the fail if the test is run a couple times.
如果多次运行测试,就能够提高发现失败的可能性。
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)可能会遗漏错误。
Distance, it is a test of love. Many will fail, but for those who can withstand it, it has the answer: true love!
距离,是爱的一种考验。很多失败了,但对于那些经受住考验的人们来说,得到的答案是:真爱。
The default timeout value for asynchronous tests is 500 ms, or half a second, so many times it's a good idea to explicitly specify a longer timeout value so your test does not fail.
异步测试的默认超时值是500ms,也就是半秒,所以,很多时候,最好是显式地指定一个更长的超时值,这样一来,测试就不会失败。
It is entirely possible that such a program will run perfectly on the JVM on which you test it and then fail miserably on the JVM favored by your most important customer.
一个程序在测试它的JVM上运行非常完美,但在你最重要客户支持的JVM上它却糟糕地运行失败了,这是完全有可能的。
It is entirely possible that such a program will run perfectly on the JVM on which you test it and then fail miserably on the JVM favored by your most important customer.
一个程序在测试它的JVM上运行非常完美,但在你最重要客户支持的JVM上它却糟糕地运行失败了,这是完全有可能的。
应用推荐