Test Oracle Micro-Patterns


A test oracle is a source of expected results for a test case. The following micro patterns for test oracles are presented in Testing Object-Oriented Systems: Models, Patterns, and Tools.

Oracle Patterns (micro-pattern schema)

ApproachPattern NameIntent
JudgingJudgingThe tester evaluates pass/no-pass by looking at the output on a screen, a listing, using a debugger, or another suitable human interface.
Pre-SpecificationSolved ExampleDevelop expected results by hand or obtain from a reference work.
SimulationGenerate exact expected results with a simpler implementation of the IUT (e.g., a spreadsheet.)
ApproximationDevelop approximate expected results by hand or with a simpler implementation of the IUT.
ParametricCharacterize expected results for a large number of items by parameters
Gold Standard Trusted System Run new test case against a trusted system to generate results.
Parallel Testing Run the same live inputs into the IUT and a trusted system. Compare the output.
Regression TestingRun an old test suite against a partially new system.
VotingCompare the output of several versions of the IUT.
OrganicSmoke TestUse the basic operability checks of the run time environment.
ReversingReverse the IUT's transformation.
Built-in TestDon't develop expected results. Implement assertions that define valid and invalid results.
Executable SpecificationActual input values and output values are used to instantiate the parameters of an executable specification. A specification checker will reject an instantiation which is inconsistent, indicating incorrect output.
Built-in CheckCompare expected and actual total, checksum, or similar encoding.
Generated ImplementationGenerate a new implementation from a specification, compare output from the IUT and the generated IUT for the same test case.
Different But EquivalentGenerate message sequences that are different but should have the result; run on separate objects and compare for equality.

 


 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值