问题 问答题 简答题

黑盒法与白盒法的区别是什么?各自运用在什么情况下?

答案

参考答案:

白盒法测试又称结构测试或逻辑驱动测试。必须考虑程序内部结构和内部特性,针对特定条件或与循环集设计测试用例,对软件的主要逻辑路径进行测试。一般主要用于模块测试。

黑盒法测试又称功能测试或基于规格说明的测试。这种方法是从用户观点出发,测试时把被测程序当作一个黑盒,不考虑程序内部结构和内部特性,测试者只知道该程序输入和输出之间的关系或程序的功能的情况下,依靠能够反映着这一关系和程序功能需求规格的说明书,来确定测试用例和推断测试结果的正确性。一般用于集成测试、确认测试及功能测试、系统测试等。

单项选择题

Advertisers tend to think big and perhaps this is why they’re always coming in for criticism. Their critics seem to resent them because they have a flair for self promotion and because they have so much money to throw around. "It’s iniquitous," they say, "that this entirely unproductive industry (if we can call it that) should absorb millions of pounds each year. It only goes to show how much profit the big companies are making. Why don’t they stop advertising and reduce the price of their goods After all, it’s the consumer who pays... "
The poor old consumer! He’d have to pay a great deal more if advertising didn’t create mass markets for products. It is precisely because of the heavy advertising that consumer goods are so cheap. But we get the wrong idea if we think the only purpose of advertising is to sell goods. Another equally important function is to inform. A great deal of the knowledge we have about household goods derives largely from the advertisements we read. Advertisements introduce us to new products or remind us of the existence of the ones we already know about. Supposing you wanted to buy a washing machine, it is more than likely you would obtain details regarding performance, price, etc. , from an advertisement.
Lots of people pretend that they never read advertisements, but this claim may be seriously doubted. It is hardly possible not to read advertisements these days. And what fun they often are, too! Just think what a railway station or a newspaper would be like without advertisements. Would you enjoy gazing at a blank wall or reading railway bylaws while waiting for a train Would you like to read only closely printed columns of news in your daily paper A cheerful, witty advertisement makes such a difference to a drab wall or a newspaper full of the daily ration of calamities.
We must not forget, either, that advertising makes a positive contribution to our pockets. Newspapers, commercial radio and television companies could not subsist without this source of revenue. The fact that we pay so little for our daily paper, or can enjoy so many broadcast programs is due entirely to the money spent by advertisers. Just think what a newspaper would cost if we had to pay its full price !
Another thing we mustn’t forget is the "small ads" which are in virtually every newspaper and magazine. What a tremendously useful service they perform for the community! Just about anything can be accomplished through these columns. For instance, you can find a job, buy or sell a house, announce a birth, marriage or death in what used to be called the "hatch, match and dispatch" column but by far the most fascinating section is the personal or "agony" column. No other item in a newspaper provides such entertaining reading or offers such a deep insight into human nature. It’s the best advertisement for advertising there is!

What is the main idea of this passage

A.Advertisement.
B.The benefits of advertisement.
C.Advertisers perform a useful service to communities.
D.The costs of advertisement.

单项选择题