STATISTICAL USAGE TESTING BASED ON UML

Posted by Codeanswer | 11:24 PM | | 0 comments »

Abstract
This poper shows a way to derive test cases for system level black-box-testing from the spec jfication models already elaborated in the requirements analysis phase. The basis for this process is the UML ((UnWed Modelling Language) we case modeL It provides a good way to describe both the interaction with the user and the system behavior-, The concept of a text template driven structure editor is presented Such an editor can be used to construct aformalized use case description in a user friendly way According to the principles of the already known statistical usage testing which aims ofat statement about the fitness of the system for the intended purpose the most likely usage scenarios are chosen as test cases. It is shown how the Markov property ofthe system description can be preserved in the case of data dependent system behavior
Keywords
Statistical usage testing, usage based testing, behavior speccation, use case, UML, Markov chain.

1. Introduction

Extensive and efficient testing is very important to ensurç software quality. In many projects the costs for testing represent 25-50% of the overall project costs. It can be said that testing is not a yery favored task. The first step to reduce the effort for testing is to use testing tools that execute tests automatically. But the necessary test cases are usually created manually requiring the tester to think about the usage and the behavior of the system, a task he or another person has already done in the requirements analysis phase of the software development.
This doubled work can be avoided when the test cases for black-box-testing are derived from the use case models and the class models. These models are available as products of the requirements analysis phase of the software development. During the development, of a software system there are other kinds of testing that have to be carried out. Usually, these tests examine just parts of the system and take internal details into account or they are intended to find the location of errors. These tests are outside the scope of this paper because the test cases for these tests cannot be deriVed from specification models alone. Taking the specification models as the basis for tests has the positive side effect that more attention is paid to keep the models complete and
1

up-to-date. Another advantage is that testing can start in very early phases of the development process, which is important for incremental development and allows shortening the time to delivery. Furthermore the software quality is raised because the system is tested with respect to the explicitly stated user requirements.

Statistical Usage Testing

The basis for creating test cases in statistical usage testing usage model. A usage model is like a state machine, i.e. directed usage graph consisting of states and transitions, the extension that every state transition is attributed with probability that this transition will be traversed from which the transition arc starts. Hence every state the probabilities of Outgoing transitions sum one. Every transition can be related to an event (possibly parameters), which triggers that transition.
A transition with an associated event may also be related to a guard condition. This means that the transition is only performed if the condition is fulfilled by the event parameter value. There are three approaches to assign transition probabilities. In the uninformed approach all exit arcs of a state have the probability. The informed approach uses sample user event sequences captured from a prototype or a prior version of thesystem to calculate suitable probabilities. The intended approach allowi to model hypothetic users or to shift the test focus certain states or transitions. The Markov property states that all transition probabilities depend only pil the ctual state and are independent ofthe history This neans that they must befl*èd hdmb&s. A ystem with this property is called a Markov chain, for which some valuable analytical deseriptions.cEn be concluded.
One such description is the usage 4istrbution statg steady-stte probability for every state, i e the expected appearance rate of that state. Sinóè each state is aásoéiated with ãn
oftheactualsoftwáre,distributorship pdrts of the softwate get themostattention from u the test eases. Other important descriptions arethe expected tcst.case andthengmberQfsestc4ses that are necessary to verd’ rquire4 reliability of :• the sytepi. .We extend this approach by allowing nondcterministic system beha’ith and b’ handling guards that depend on system data state. This enables to apply statistical Osagë based te•sting to a wider range of systems.

3. System Spec jflcation with (JML
The re4uirethents añäIisphaeyield&at
least to Models to ddeiibe th& planned system
from the user perspective
1. The Use case model to describe the system behavior:
2. The domain class model to describe which kind of real-life objects are represented in the system and what of their attributes, operations and relations (i.e. links) to other objects are relevant for the intended purpose of the system.
This distinction between dynamic and static aspects in the system description is carried over to the notion of state. The overall state of a system is made up of the execution state, which tells what step of a Use case is currently being executed and of the data state which tells what data are stored in the system The data state is made up of the system data state which is persistent between use case executions and the use case data state which is local to the executed use case and hence. transient.
The UML standard defines only a very toplevel structure to describe use cases, which allows only defining use cases as named entities with a textual description. Its common to write use case descriptions in a slightly more structured form, e.g. in tabular or tree form. Because the leave enttzes i these structttrn are still plain text they are textual use case descriptions.

Read More !
Posted by Codeanswer | 4:50 AM | , , | 0 comments »

• Nestle tried to create a market for iced tea in India by launching Paloma in eighties & again with Nestea in the nineties & both the cases came up with a failure
• Scandinavian vacuum manufacturer Electrolux used the following in an American ad campaign:
“Nothing sucks like an Electrolux.”
• When General Motors introduced the Chevy Nova in South America, it was apparently unaware that “no va” means “it won’t go.”
• Volkswagen Schwimmwagen was an amphibious all-wheel-drive off-roaders, used extensively by the Germans during the Second World War.
• Henry Ford’s grandson (another Henry) turned down an offer to acquire Volkswagen after the
Second World War when it was under British Army control because he thought it was worthless.
• ‘Herbie’ and its three sequels (‘Herbie Rides Again’, ‘Herbie Goes to Monte Carlo’ and ‘Herbie Goes Bananas’) is a series of movies made by Walt Disney Productions starring Herbie the Love Bug, a white Volkswagen racing Beetle with a mind of its own. Another theatrical sequel, ‘Herbie: Fully Loaded’ was released in 2005 by Disney.
• William C Durant was a leading pioneer of the United States automobile industry, the founder of General Motors and Chevrolet who created the system of multi-brand holding companies with
different lines of cars
• Prior to the manufacture of Henry Ford’s Model A, Mary Anderson was granted her first patent for a window cleaning device in November of 1903. Her invention could clean snow, rain, or sleet from a windshield by using a handle inside the car. Her goal was to improve driver vision during stormy weather - Mary Anderson invented the windshield wiper.
• Sanford L. Cluett discovered a way to pre-shrink fabrics and his invention was called the
‘Sanforized fabric’. The company he set up Cluett Peabody & Co, Inc. licensed the process and
made it available to everybody in the textile industry. The Arrow brand of shirts comes from this company.
• The Cadillac automobile was named after the 17th century French explorer Antoine Laumet de La Mothe, sieur de Cadillac, who founded Detroit in 1701. In 1912, Cadillac was the first
manufacturer to incorporate a successful electric starter on their cars equipped with gasoline
internal combustion engines, replacing the hand starting crank; the device was developed by
Charles Kettering and was marketed as a convenience device for female drivers.

Read More !

BUSINESS TRIVIA

Posted by Codeanswer | 4:48 AM | , , | 0 comments »

• Lipton launched a tetra-packed fruit drink in India called Noga in India in the 1980s; the product was
unsuccessful and was withdrawn
• Godrej Consumer Products launched Vigil–India's first and only Grade I Health soap. The advanced
Triple Control System (TCS) used in Vigil removes germs, acts faster and lasts longer
• Hindustan Unilever product failures: Aim, 2001, Rural toothpaste; Impulse, 2002, Women’s
Deodorant; Revel, 2001, Washing Machine detergent; Calvin Klein, 2001, Toiletries
• Dandi Namak–salt brand founded by Suresh Agarwal of Kunvar Ajay Industries
• D.S. Narang of RDM Traders launched the Ayur herbal brand
• G. Munusamy founded Kaleeswari Refinery famous for its Gold Winner edible oil brand
• S.C. Sehgal, a veteran of Glaxo, founded Ozone Ayurvedics which is now famous for the No
Marks brand
• Murli Gyanchandani of Kanpur Trading Company is famous for his detergent brands–Ghadi in
economy category& Double Dog in premium one
• M. P. Ramachandran is the founder of Jyothi Labs, famous for brand like Ujala (1982), Maxo
mosquito repellent, and Exo, a washing bar
• Prakash Parakh of Parakh Foods is the founder of famous edible oil brand–Gemini
• Atul Shah of Anchor Health is the man behind the Anchor toothpaste that was focused on
predominantly vegetarian Gujarat and Rajasthan and positioned its toothpaste as a vegetarian
product
• England’s Lever Brothers began importing their Sunlight brand soap into India in the late 1880s.
By 1895, Lever had introduced another of its brands, Lifebuoy, which became the company's
longest-running successful brand in India. Other Lever brands followed into the beginning of the
next century, including the Lux soap flake brand in 1905; and scouring powder Vim as well as soap
brand Vinolia in 1913. In 1963, HLL entered the dairy industry with the launch of Anik brand of
ghee. HLL also launched but later withdrew Signal toothpaste–India’s only brand with colourful
strips in it
• HLL’s Le Sancy soap was famous for its advertisement punchline “Rahul Pani Chalajayega”
• HLL formed a joint venture with Kimberly-Clark, which began marketing the Huggies diaper and
Kotex sanitary pad brands in India.

Read More !

Gates and the Great Game

Posted by Codeanswer | 12:27 AM | , | 0 comments »

Headline: Gates and the Great Game
Newspaper/publication: The Indian Express
Topic: Defence/Foreign Policy
Date: 25 Feb 2008
When US Secretary of Defence Robert Gates swings through New Delhi this week, India’s civil nuclear
initiative is unlikely to be at the top of his agenda. To be sure, there are growing anxieties in
Washington about the UPA government’s inability to bring around its communist allies on a deal that is
so patently in India’s favour. Gates, however, knows that there is very little that Washington can do to
change the political dynamics in New Delhi. On the other hand, he has every reason to be pleased with
the progress on bilateral defence cooperation. From expanded engagement….
URL: http://www.indianexpress.com/story/276727.html

Read More !

Incredible don’ts

Posted by Codeanswer | 12:25 AM | , | 0 comments »

Headline: Incredible don’ts
Newspaper/publication: The Indian Express
Topic: Travel & Tourism
Date: 25 Feb 2008
If only tourists into India would be more diligent and read carefully before catching a flight to this diverse
land the diaries left by the memsahibs of the Raj. But try telling that to the new-generation tourist,
arming herself with nothing more than a Lonely Planet guide and its daredevil exhortations to venture
forth into magnificent ruins and the unruly countryside, with the added globalising order to seek
bonhomie with local residents. No wonder the tourism ministry has had to step in and moot a set to
guidelines for the foreign tourist. Read them, and begin your discovery of India, as told by the
authorities. Here are some cautionary notes from the ministry. Take precautions ….
URL: http://www.hindu.com/2008/02/25/stories/2008022553701000.htm

Read More !

Incredible don’ts

Posted by Codeanswer | 12:25 AM | , | 0 comments »

Headline: Incredible don’ts
Newspaper/publication: The Indian Express
Topic: Travel & Tourism
Date: 25 Feb 2008
If only tourists into India would be more diligent and read carefully before catching a flight to this diverse
land the diaries left by the memsahibs of the Raj. But try telling that to the new-generation tourist,
arming herself with nothing more than a Lonely Planet guide and its daredevil exhortations to venture
forth into magnificent ruins and the unruly countryside, with the added globalising order to seek
bonhomie with local residents. No wonder the tourism ministry has had to step in and moot a set to
guidelines for the foreign tourist. Read them, and begin your discovery of India, as told by the
authorities. Here are some cautionary notes from the ministry. Take precautions ….
URL: http://www.hindu.com/2008/02/25/stories/2008022553701000.htm

Read More !

General in the east

Posted by Codeanswer | 12:23 AM | , | 0 comments »

Headline: General in the east
Newspaper/publication: The Indian Express
Topic: Defence/Foreign Policy
Date: 25 Feb 2008
The week-long India sojourn of General Moeen U. Ahmed, the army chief of Bangladesh, is doubly
significant. For one, it is the first ever visit by an army chief of Bangladesh to India. Since the
assassination of its founder, Sheikh Mujibur Rahman, in 1975, four years after New Delhi helped
liberate the nation, the army in Bangladesh has tended to be an institutional opponent of cordial
relations with India. The very fact that Moeen has chosen to travel to India opens the door for a
productive engagement between the security forces of the two countries. The Indian army’s gift of six
thoroughbred horses to Moeen is hopefully a symbol of South Block’s …..
URL: http://www.indianexpress.com/story/276723.html

Read More !