Test Experience Share: We should consider the impact of the hardware improvement to the test code

This experience is achieved during I investigating some job fails in the Alchemy inputs testing.

 

The test:

n  The test purpose:

1.         Verify input characters to an Alchemy TextBox control in Windows CE 7

n  The test process:

1.         Add a “TextChangedEventHandler” to the Alchemy TextBox

2.         Input characters to the Alchemy TextBox via key_event (This is just an OS behavior)

3.         Monitor the Alchemy TextBox during the input, and update a specified flag (This will handle via the Alchemy engine, the xamlruntime.dll)

4.         Input done

5.         Check the flag to verify the test result

n  The results:

1.         After the hardware improvement (e.g. from CEPC to Tegra2, which is a dualcore system), the test fail

n  The reason:

When the hardware is improved, all the test steps are become faster than before, but the step 3 is not increased as much as step 2.

So there will create some delays, which means thought the OS has done the input and is going to verify the result, the Alchemy is still performing the event handling, this is the issue.

 

The summarization:

Hardware improvement may bring asynchronous increase to the test steps, which means different delays, so we need to consider this asynchronous during the test solution design.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值