<< Chapter < Page
  Software engineering     Page 7 / 15
Chapter >> Page >

Good partitioning requires knowledge of the software structure. A good testing plan will not only contain black-box testing, but also white-box approaches, and combinations of the two.

White-box testing

Contrary to black-box testing, software is viewed as a white-box, or glass-box in white-box testing, as the structure and flow of the software under test are visible to the tester. Testing plans are made according to the details of the software implementation, such as programming language, logic, and styles. Test cases are derived from the program structure. White-box testing is also called glass-box testing, logic-driven testing or design-based testing.

There are many techniques available in white-box testing, because the problem of intractability is eased by specific knowledge and attention on the structure of the software under test. The intention of exhausting some aspect of the software is still strong in white-box testing, and some degree of exhaustion can be achieved, such as executing each line of code at least once (statement coverage), traverse every branch statements (branch coverage), or cover all the possible combinations of true and false condition predicates (Multiple condition coverage).

Control-flow testing, loop testing, and data-flow testing, all maps the corresponding flow structure of the software into a directed graph. Test cases are carefully selected based on the criterion that all the nodes or paths are covered or traversed at least once. By doing so we may discover unnecessary "dead" code - code that is of no use, or never get executed at all, which can not be discovered by functional testing.

In mutation testing, the original program code is perturbed and many mutated programs are created, each contains one fault. Each faulty version of the program is called a mutant. Test data are selected based on the effectiveness of failing the mutants. The more mutants a test case can kill, the better the test case is considered. The problem with mutation testing is that it is too computationally expensive to use. The boundary between black-box approach and white-box approach is not clear-cut. Many testing strategies mentioned above, may not be safely classified into black-box testing or white-box testing. It is also true for transaction-flow testing, syntax testing, finite-state testing, and many other testing strategies not discussed in this text. One reason is that all the above techniques will need some knowledge of the specification of the software under test. Another reason is that the idea of specification itself is broad - it may contain any requirement including the structure, programming language, and programming style as part of the specification content.

We may be reluctant to consider random testing as a testing technique. The test case selection is simple and straightforward: they are randomly chosen. Random testing is more cost effective for many programs. Some very subtle errors can be discovered with low cost. And it is also not inferior in coverage than other carefully designed testing techniques. One can also obtain reliability estimate using random testing results based on operational profiles. Effectively combining random testing with other testing techniques may yield more powerful and cost-effective testing strategies.

Questions & Answers

what is coding
YUSUF Reply
hello, I don't know anything about software but I have this passion to learn. where do I start from pls
Oliver Reply
computer science class or just take a introduction to computers class. You can always try to find a mentor or self teach yourself as well.
Dustin
what important of software
Tom Reply
dorimon in hindi
Yogesh
Hello
Mark
Mrs dorimon
Mark
hello
Tom
ha
Khizer
I'm. new in programming
Khizer
did anyone help
Khizer
me
Khizer
ok on me am new in programming
Tom
can I have job sa programmer without degree
Khizer
hello guy's
Shey
what can helps new in programming
Tom
I want to know more about programming
Shey
hello
Francis
hello
Xotambek
hi
Peterson
how r u my friends ?
Xotambek
l would like to know what do I need if I want to.create a sun glasses where you can see everything when you're sharing something via bluetooth
Peterson
hi
Peterson
I have so many things that I want to create in the technology industry
Peterson
but I need a group of people who are willing bring ideas on the table and work together to make success
Peterson
wow
Shey
What sorts of feild knowledge do you need?
leo
Mr. Peteson pinchinat, hello!
leo
I don't really know what do I need to learn that's why I'm asking
Peterson
I need help to create all those things that I want to.
Peterson
peterson pinchinat I have so many ideas and much more things in my mind
Khizer
hello
Purity
even Me guys
Mark
if you have many ideas than I have so let's work together let's build a team . let's put our ideas and start working together to make success.
Peterson
I really like to work with software
Khizer
any I like that people how have interest on new technology and software developer, engineering
Khizer
wow!!! we have something in common.
Peterson
great then we can share some ideas and then see how we can make things happen
Peterson
so where we can do work
Khizer
we have to find a way. I'm living in Brooklyn what about you?
Peterson
there we shared work
Khizer
7895870847
Khizer
I know people from India they are really good in compute
Peterson
+917895870847 that is my no. you can call me
Khizer
thanks
Khizer
first we need to find out how we gonna work. I know the distance won't be a problem we need to trust each other and create a great team then bring revolution in the technology
Peterson
I have an idea
Khizer
ok
Peterson
send me the website?
Peterson
wait for a 2 days I make that and tell you ok
Khizer
perfect
Peterson
good
Shey
Yes ,It is possible to be a programmer without University Degree.You have a lot professional courses that you access and register for on the net.Please get hook and search ..thanks
NICCK-PAT
Great ,I am NICCk-PAT in Paris France.
NICCK-PAT
hello
Dustin
how do i create software
Ahmad Reply
Hii
Sameer
what is the IEEE ?
Shankar Reply
a external device cable capable of transferring large amounts of data at high speed.
Dustin
really
Shey
How to learn in this app? ..help me
HANAN Reply
how make a software engineer
Ajaykumar Reply
how to use this app ..help me
HANAN
what is incremental model?
Shir Reply
explain software proses explain with kannada
preethi Reply
please and my qution
preethi
best project for bsc students
Mounika Reply
software engineering best project for bsc students
Mounika
Tell me medam what is the project do you have
Harinathreddy
software engineering
Mounika
Let you explain for me about that project
Harinathreddy
hii
Sameer
I'm in!!
Amanson
hii
Yogesh
can i ask you some questions
Yogesh
hi how are you
Ahmad
guy's please I need you to tell me more about software Engineering
Shey
am new in the field
Shey
differentiate between writing and jotting
Mmem Reply
configration management
Ravi Reply
what is a computer software
Chinaza Reply
Computer software is programming code executed on a computer processor at either the machine-level or the level of the operating system. ... The physical components of a computer are the hardware, and the digital programs running on the hardware are the software.
SATYAM
9292
Saeed
what is sofftware
Mohammed Reply
Software, in its most general sense, is a set of instructions or programs instructing a computer to do specific tasks. Software is a generic term used to describe computer programs. Scripts, applications, programs and a set of instructions are all terms often used to describe software.
SATYAM
now I got it
Ali
if I get your point, software is basically a set of instructions or programs run on hardware to perform a specific task.
Samuel
how to open a software company
SATYAM Reply

Get the best Software engineering course in your pocket!





Source:  OpenStax, Software engineering. OpenStax CNX. Jul 29, 2009 Download for free at http://cnx.org/content/col10790/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Software engineering' conversation and receive update notifications?

Ask