Technology · 2019年8月30日

实验 v.s. 试验

这个月因为工作机会,学习了Exploratory Testing。

在学习的过程中,我看了《Exploratory Testing》这篇文章,里面提到一个例子:“science experiment”。原话是

An experiment can be highly controlled or lightly controlled; more formal or less formal. But one thing is true about a real-life experiment: it is uncertain. Any scientist who knows for sure what will happen in an experiment is merely performing a demonstration; not learning. The learning that scientists do is disruptive to their work; and they love that.

所以说,实验,是在已知结果的情况下,重复步骤来“验证“结果。而试验,是在未知结果的情况下,试探地来“发现”结果。

也就是说,如果用来教学或者是知识的传承,那么实验是所需要的。如果说,想要发现新东西新结果,想要有所突破甚至改变世界,那么你需要的是试验。

对应软件测试来说,不论是Smoke Test还是Regression Test,甚至是Feature Testing,还有所有的自动化测试,都属于“实验”的分类。写好了测试用例,然后按照步骤,执行的时候有“预期”。那换句话说,通过“实验”能够发现的问题,都是“已知”的问题。

而“没有预期”的测试,才能够发现新的问题。也就是Exploratory Testing.