问题 单项选择题

以下关于黑盒测试用例设计方法的叙述,错误的是()

A.边界值分析通过选择等价类边界作为测试用例,不仅重视输入条件边界,而且也必须考虑输出域边界

B.因果图方法是从用自然语言书写的程序规格说明的描述中找出因(输入条件)和果(输出或程序状态的改变),可以通过因果图转换为判定表

C.正交试验设计法,就是使用已经造好了的正交表格来安排试验并进行数据分析的一种方法,目的是用最少的测试用例达到最高的测试覆盖率

D.等价类划分法根据软件的功能说明,对每一个输入条件确定若下个有效等价类和无效等价类,但只能为有效等价类设计测试用例

答案

参考答案:D

解析:

黑盒测试也称为功能测试,主要用于集成测试,确认测试和系统测试阶段。黑盒测试根据软件需求规格说明所规定的功能来设计测试用例,一般包括功能分解、等价类划分、边界值分析、判定表、因果图、状态图、随机测试、错误推测和止交试验法等。   

在设计测试用例时,等价类划分是用得最多的一种黑盒测试方法。所谓等价类就是某个输入域的集合,对每一个输入条件确定若干个有效等价类和若干个无效等价类,分别设计覆盖有效等价类和无效等价类的测试用例。无效等价类是用来测试非正常的输入数据的,所以要为每个无效等价类设计一个测试用例。   

边界值分析通过选择等价类边界作为测试用例,不仅重视输入条件边界,而且也必须考虑输出域边界。在实际测试工作中,将等价类划分法和边界值分析结合使用,能更有效地发现软件中的错误。   

因果图方法是从用自然语言书写的程序规格说明的描述中找出因(输入条件)和果(输出或程序状态的改变),可以通过凶果图转换为判定表。   

正交试验设计法,就是使用已经造好了的正交表格来安排试验并进行数据分析的一种方法,目的是用最少的测试用例达到最高的测试覆盖率。

阅读理解

Millions of people all over the world spend their holidays travelling. They travel to visit other countries, modern cities and ancient towns. They travel to enjoy these special places, or just to relax. It is always interesting to discover new things and different ways of life, such as by meeting different people, trying different food, and listening to different music.

People who live in the country like to go to big cities. They like to spend their time visiting museums and art galleries, looking at shop windows and dining at restaurants. People who live in the city usually like a quiet holiday by the sea or in the mountains, with nothing to do but walk and bathe in the sun.

Most travellers take a camera with them and take pictures of everything that interests them. Then, perhaps years later, they can look at the photos and be reminded of the happy time they once had.

People often travel by train, by boat or by car. All means of travelling have their advantages and disadvantages and people choose one according to their plans and the places they are going.

If we travel a lot, we will see and discover a lot of things that we could never see or experience at home, though we may read about them in books and newspapers. The best way to study geography is to travel, and the best way to get to know and understand people is to meet them in their own homes.

小题1:What is interesting to do when people travel?

A.To find the advantages and the disadvantages of travelling.

B.To listen to different music and take pictures.

C.To discover new things and different ways of life.

D.To go to big cities and meet different people.小题2:How do people usually spend a quiet holiday by the sea or in the mountains?

A.They spend their time visiting museums and art galleries.

B.They do nothing but walk and bathe in the sun.

C.They do nothing but sleep outdoors.

D.They go to look at shop windows and eat at restaurants.小题3:Why do many travellers take pictures of everything they like?

A.Because they like taking all kinds of pictures.

B.Because they all take a camera with them while travelling.

C.Because the pictures are beautiful to look at.

D.Because the pictures can remind them of the happy time.小题4:What’s the best way to study geography?

A.To travel a lot and experience more.

B.To meet some more people in their homes.

C.To learn in books or in newspapers.

D.To see and experience at home.小题5:What can we infer from the last paragraph?

A.We’d better go the countryside for a holiday.

B.Taking photos in a trip is unnecessary.

C.It’s good for us to travel more if possible.

D.Cities are the best choice of all the travellers.

单项选择题 共用题干题