软件测试
values for each of the AM, FM1, and FM2 bands is suf cient.We decide to alternate which wavelength value is tested andmerge the TV and CD factors. Thus, we obtain version Dshown in Table 12. Having five factors, each with four orfewer levels, means that we can t the tests in the L16′(45)table, as seen in Table 13. For better coverage of the Radiostates, we replaced the TV+CD state “On/Off,” which doesnot yield much information, with “Off/Off.”
If the coverage of the different radio stations is insuf cientin Tables 11 and 13, rst we run the tests to make sure thatthe interactions of system components are correct. Then werun a separate set of tests to verify that the radio stations arecorrect. The maximum interaction that the latter tests mustverify is that the radio remains on the same wavelength whenother audio system components are switched On and Off.
Setting up state-dependent tests
Let’s consider an even more complex situation, in whichthe next state of some factors
depends on a previous state.In this case, we have only aphone and a radio in the car(version E). This system hasthe following requirements:1.The ignition key hasfour positions: Off, Acc.,Run, and Crank.
2.If the ignition key is in
the Off position, every-thing else is Off.3.If the ignition key is inCrank position, thephone and radio aredisabled.4.If the phone is On, theradio cannot be heard,
even if it is in the On
position.
5.If the phone is on Hold
or Off and the radio is
On, the radio can be
heard.
6.The radio can be on the
AM, FM1, or FM2 band.
7.The radio also has a
Seek key that cansearch for the next radiostation in increasing(Seek_U) or decreasing(Seek_D) order.8.When the radio is per-forming a Seek opera-
JULY–SEPTEMBER 199959
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新人文社科软件测试参考文献(10)全文阅读和word下载服务。
相关推荐: