Enlist different techniques for finding defects and describe any one technique with an example.

1 Answer

Answer :

Different techniques for finding defects are as given below: 

a) Quick Attacks: 

i. Strengths

The quick-attacks technique allows you to perform a cursory analysis of a system in a very compressed timeframe. Even without a specification, you know a little bit about the software, so the time spent is also time invested in developing expertise.  The skill is relatively easy to learn, and once you've attained some mastery your quick-attack session will probably produce a few bugs. Finally, quick attacks are quick. They can help you to make a rapid assessment. You may not know the requirements, but if your attacks yielded a lot of bugs, the programmers probably aren't thinking about exceptional conditions, and it's also likely that they made mistakes in the main functionality. If your attacks don't yield any defects, you may have some confidence in the general, happy-path functionality.

ii. Weaknesses

Quick attacks are often criticized for finding "bugs that don't matter"— especially for internal applications. While easy mastery of this skill is strength, it creates the risk that quick attacks are "all there is" to testing; thus, anyone who takes a two day course can do the work.

b) Equivalence and Boundary Conditions

i. Strengths 

Boundaries and equivalence classes give us a technique to reduce an infinite test set into something manageable. They also provide a mechanism for us to show that the requirements are "covered".

ii. Weaknesses

The "classes" in the table in Figure 1 are correct only in the mind of the person who chose them. We have no idea whether other, "hidden" classes exist—for example, if a numeric number that represents time is compared to another time as a set of characters, or a "string," it will work just fine for most numbers.

c) Common Failure Modes

i. Strengths

The heart of this method is to figure out what failures are common for the platform, the project, or the team; then try that test again on this build. If your team is new, or you haven't previously tracked bugs, you can still write down defects that "feel" recurring as they occur—and start checking for them.

ii. Weaknesses 

In addition to losing its potency over time, this technique also entirely fails to find "black swans"—defects that exist outside the team's recent experience. The more your team stretches itself (using a new database, new programming language, new team members, etc.), the riskier the project will be—and, at the same time, the less valuable this technique will be.

d) State-Transition Diagrams

In this technique the state transition diagram is prepared with respect to the applied inputs and produced output. It clearly shows how the state transition of software takes place from one to another and hence can be useful to find the defects. 

One of the example is as shown in the diagram below: 

image

i. Strengths

Mapping out the application provides a list of immediate, powerful test ideas. Model can be improved by collaborating with the whole team to find "hidden" states—transitions that might be known only by the original programmer or specification author. Once you have the map, you can have other people draw their own diagrams, and then compare theirs to yours. The differences in those maps can indicate gaps in the requirements, defects in the software, or at least different expectations among team members.

ii. Weaknesses

The map you draw doesn't actually reflect how the software will operate; in other words, "the map is not the territory." Drawing a diagram won't find these differences, and it might even give the team the illusion of certainty. Like just about every other technique on this list, a statetransition diagram can be helpful, but it's not sufficient by itself to test an entire application. 

e) Use Cases and Soap Opera Tests

Use cases and scenarios focus on software in its role to enable a human being to do something.

i. Strengths 

Use cases and scenarios tend to resonate with business customers, and if done as part of the requirement process, they sort of magically generate test cases from the requirements. 

They make sense and can provide a straightforward set of confirmatory tests. Soap opera tests offer more power, and they can combine many test types into one execution. 

ii. Weaknesses

Soap opera tests have the opposite problem; they're so complex that if something goes wrong, it may take a fair bit of troubleshooting to find exactly where the error came from!

f) Code-Based Coverage Models

Imagine that you have a black-box recorder that writes down every single line of code as it executes.

i. Strengths

Programmers love code coverage. It allows them to attach a number— an actual, hard, real number, such as 75%—to the performance of their unit tests, and they can challenge themselves to improve the score.

Meanwhile, looking at the code that isn't covered also can yield opportunities for improvement and bugs!

ii. Weaknesses

Customer-level coverage tools are expensive, programmerlevel tools that tend to assume the team is doing automated unit testing and has a continuous-integration server and a fair bit of discipline.

After installing the tool, most people tend to focus on statement coverage—the least powerful of the measures.

Even decision coverage doesn't deal with situations where the decision contains defects, or when there are other, hidden equivalence classes; say, in the third-party library that isn't measured in the same way as your compiled source code is.

Having code-coverage numbers can be helpful, but using them as a form of process control can actually encourage wrong behaviors. In my experience, it's often best to leave these measures to the programmers, to measure optionally for personal improvement (and to find dead spots), not as a proxy for actual quality.

g) Regression and High-Volume Test Techniques

People spend a lot of money on regression testing, taking the old test ideas described above and rerunning them over and over.

 This is generally done with either expensive users or very expensive programmers spending a lot of time writing and later maintaining those automated tests.

i. Strengths

For the right kind of problem, say an IT shop processing files through a database, this kind of technique can be extremely powerful.

Likewise, if the software deliverable is a report written in SQL, you can hand the problem to other people in plain

English, have them write their own SQL statements, and compare the results.

Unlike state-transition diagrams, this method shines at finding the hidden state in devices. For a pacemaker or a missile-launch device, finding those issues can be pretty important.

ii. Weaknesses

Building a record/playback/capture rig for a GUI can be extremely expensive, and it might be difficult to tell whether the application hasn't broken, but has changed in a minor way.

For the most part, these techniques seem to have found a function in IT/database work, at large companies like

Microsoft and AT&T, which can have programming testers doing this work in addition to traditional testing, or finding large errors such as crashes without having to understand the details of the business logic.

While some software projects seem ready-made for this approach, others aren't.

You could waste a fair bit of money and time trying to figure out where your project falls.

OR

Different techniques for finding defects are:

1. Static technique

2. Dynamic technique

3. Operational technique

1. Static Techniques: Static techniques of quality control define checking the software product and related artifacts without executing them. It is also termed desk checking/verification /white box testing. It may include reviews, walkthroughs, inspection, and audits here; the work product is reviewed by the

reviewer with the help of a checklist, standards, any other artifact, knowledge and experience, in order to locate the defect with respect to the established criteria. Static technique is so named because it involves no execution of code, product, documentation, etc. This technique helps in establishing conformance to requirements view.

2. Dynamic Testing: Dynamic testing is a validation technique which includes dummy or actual execution of work products to evaluate it with expected behavior. It includes black box testing methodology such as system testing and unit testing.

The testing methods evaluate the product with respect to requirements defined; designs created and mark it as pass or fail.

3.Operational techniques: Operational techniques typically include auditing work products and projects to understand whether the processes defined for development /testing are being followed correctly or not, and also whether they are effective or not. It also includes revisiting the defects before and after fixing and analysis. Operational technique may include smoke testing and sanity testing of a work product.

Related questions

Description : Enlist factors considered for selecting a testing tool for test automation.

Last Answer : The following factors are important during tool selection: i. Assessment of the organization's maturity (e.g. readiness for change); ii. Identification of the areas within the organization where ... the tool is another important point to be considered while selecting and deploying the test tool.

Description : Enlist objectives of software testing.

Last Answer : Objectives of software testing are as follows: 1. Finding defects which may get created by the programmer while developing the software. 2. Gaining confidence in and providing information about the level ... . 6. To gain the confidence of the customers by providing them a quality product. 

Description : Enlist any two activities involved in test planning.

Last Answer : 1. Scope Management: Deciding what features to be tested and not to be tested.  2. Deciding Test approach /strategy: Which type of testing shall be done like configuration, ... these features and combinations would be tested.  4. Identifying responsibilities, staffing and training needs.

Description : Describe the use of decision table in black box testing with the help of suitable example.

Last Answer : I.Decision table testing is black box test design technique to determine the test scenarios for complex business logic. ii. Decision tables provide a systematic way of stating complex business rules, which is useful for ... when conditions are missed, it is easy to see.  Example : 

Description : Describe object oriented metrics in testing. 

Last Answer : Object oriented metrics in testing: OBJECT-ORIENTED METRICS AND MEASURES As object-oriented approach emerged to support major applications, the effectiveness of applying traditional software metrics ... within the hierarchy, the more methods the class can inherit, increasing its complexity.

Description : Describe the process of preparing summary report in test planning.

Last Answer : Preparing test summary report At the completion of a test cycle, a test summary report is produced. This report gives insights to the senior management about the fitness of the ... and recommendation for release should include Fit for release assessment and Recommendation of release

Description : Describe test infrastructure management.

Last Answer : Test infrastructure management Testing requires a robust infrastructure to be planned upfront. This infrastructure is made up of three essential elements. 1. A test case database (TCDB): A test case database ... Everyone gets access to only the most recent version of the test files.

Description : Describe standards included in Test management.

Last Answer : Internal standards are: 1. Naming and storage conventions for test artifacts. 2. Document standards 3. Test coding standards 4. Test reporting standards. 1. Naming and storage ... Standard: are defined at international level and these are applicable to all customers across the globe.

Description : Define Boundary value analysis with suitable example.

Last Answer : Most of the defects in software products hover around conditions and boundaries. By conditions, we mean situations wherein, based on the values of various variables, certain actions would have to be taken. By ... follows: 0 - for lower limit boundary value 101 - for upper limit boundary value

Description : Design a test plan along with the test cases for edit function in notepad.

Last Answer : Test case ID Test case objective Input data Expected result Actual result Status TC1 Test the select all option Click on select all All the text should be selected All ... Approvals Team Lead Test engineer 1 Test engineer 2 Test engineer 3 Test engineer 4

Description : Design test cases for hostel admission form of your institute.

Last Answer : Test case ID Test case objective Input data Expected result Actual result Status TC1 Student name field Any valid alphabetical characters (John) It should accept the name ... 6 digits numeric format It should accept the valid pin code Pin code accepted Pass

Description : Elaborate the term metrics and measurement and write the need of software measurement.

Last Answer : Metrics and measurement : A Metric is a measurement of the degree that any attribute belongs to a system, product or process. For example the number of errors per person hours would be a metric. Thus, ... . 4. To determine the state of the project in relation to budget and schedule. 

Description : With respect to GUI testing write the test cases for Amazon login form.

Last Answer : Test case ID Test case objective Input data Expected result Actual result Status TC1 Check cursor position at email or mobile number field Click on email or mobile number ... should redirect to respective page on click Cursor changed and redirects to other page. Pass

Description : Design test cases for railway reservation system.

Last Answer : Test cases for railway reservation system: Test case ID Test case objective Input data Expected result Actual result Status TC1 Login field Any valid login name (abcxyz) ... Valid train number It should accept the valid train number Train number accepted Pass

Description : State the testing approaches that are considered during client server testing.

Last Answer : Testing approaches of client server system: Component Testing: One need to define the approach and test plan for testing client and server individually. When server is tested there is need of a ... testing and compliance testing may be involved if needed, as per testing and type of system.

Description : Differentiate between alpha and beta testing.

Last Answer : Alpha Testing Beta Testing Alpha testing performed by Testers who are usually internal employees of the organization. Beta testing is performed by Clients or End Users who are not employees of ... input on the product and ensures that the product is ready for real time users. 

Description : State any eight limitations of manual testing.

Last Answer : 1. Manual testing is slow and costly. 2. It is very labor intensive; it takes a long time to complete tests. 3. Manual tests don't scale well. As the complexity of the ... Comparing large amount of data is impractical. 10. Processing change requests during software maintenance takes more time. 

Description : State the contents of ‘Test Summary Reports’ used in test reporting.

Last Answer : Test reporting is a means of achieving communication through the testing cycle. There are 3 types of test reporting. 1. Test incident report: 2. Test cycle report: 3. ... assessment and recommendation for release should include: Fit for release assessment and recommendation of release.

Description : Differentiate between drivers and stub

Last Answer : Stubs Drivers Stubs are dummy modules that always used to simulate the low level modules. Drivers are dummy modules that always used to simulate the high level modules. Stubs are the ... Stubs are used in top down approach.  Drivers are used in bottom up integration.

Description : Define Bug, Error, Fault, and Failure.

Last Answer :  Bug: A bug can be defined as the initiation of error or a problem due to which fault, failure, incident or an anomaly occurs. Error: A human action that produces an incorrect result. ... prescribed in the system specification. A software fault becomes a software failure only when it is activated.

Description : State any four advantages of using tools.

Last Answer : Save Time /Speed: Due to advanced computing facilities, automation test tools prevail in speed of processing the tests. Automation saves time as software can execute test cases faster than human. Reduces ... of the software also increases. Due to testing tools time and therefore cost is reduced. 

Description : Define Defect.

Last Answer : It refers to the several troubles with the software product, with its external behavior or its internal features. OR A defect is an error in coding that causes a program to fail or to produce incorrect /unexpected results.

Description : State any two examples of integration testing.

Last Answer : 1. Verifying the interface link between the login page and the home page i.e. when a user enters the credentials and logs it should be directed to the homepage 2. Check the interface link between the ... the interface link between the home page and the profile page i.e. profile page should open up. 

Description : Define static and dynamic testing. 

Last Answer : Static testing: In static testing code is not executed. Rather it manually checks the code, requirement documents, and design documents to find errors. Main objective of this testing is to ... this testing is to confirm that the software product works in conformance with the business requirements.

Description : What if I change the question to something totally different?

Last Answer : See a similar discussion at http://www.ask-public.com/ld/784/

Description : Has anyone here ever taken a psychological evaluation for a learning disability?

Last Answer : Preparing for it is counterproductive. They do some tricks that if informed would not work properly to diagnose a learning disability. Go to your assessment with a clean slate.

Description : Your thoughts on The Synchronicity Key: The Hidden Intelligence Guiding the Universe and You by David Wilcock.

Last Answer : avslapowrj[p ^^^That was completely arbitrary.

Description : Do/did you have Lyme disease (not a yes/no question, please read details)

Last Answer : I had Lyme disease for about a year. I was always tired, but soldiered on. I wasn't sure what was wrong with me, until I got a sinus infection, and was prescribed a medicine. Researching the ... It fixed my issues, but I suspect it weakened my resistance to diabetes, which I had a year later.

Description : What is the difference between mercy and compassion?

Last Answer : answer:Compassion is feeling for someone else’s distress and wanting to alleviate it. Mercy is an act of leniency. I think compassion is more important and that you cannot have mercy without it.

Description : Is a 1990 a good SAT score?

Last Answer : answer:Your math score is a little low but I wouldn't worry about it. At my college if you had below a 650 in math you just had to take a math placement test. If you did good on that you could start ... For my essay I wrote about why I wanted to go to college and what I hoped to achieve in my life.

Description : What do you write when you write a "test sentence"?

Last Answer : When I have a new pen I just scribble a little.

Description : What is the "shudder test" in Steven Pinker's "The Moral Instinct"?

Last Answer : It means the fact that the action makes some people uncomfortable, e.g. shuddering, is not a reason to stop it from going forward.

Description : Is weed/marijuana detectable after 2 weeks?

Last Answer : Definitely. That sticky icky is in your pours never-mind blood for up to 3 months.

Description : Should I report this First Aid instructor part 2?

Last Answer : So this means everyone that takes the course automatically passes and gets their certification? That does sound dangerous.

Description : A question about tests for colon cancer?

Last Answer : I think you could easily request a colonscopy- then you can relax. I think that’s the best way to know short of a laparotomy.

Description : What is your opinion on this as Death Penalty?

Last Answer : answer:People. including convicted criminals, are not property or playthings. 8th Amendment to the United States Constitution: “Excessive bail shall not be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted”

Description : What's your opinion on Replacing animals being tested with life sentenced inmates?

Last Answer : answer:Sorry, it took my a long time to actually understand what you were asking It, theoretically, does make more sense. But the public would never go for it. People get all butt-hurt and creeped out ... have been a baby! They ignore the fact that it could save millions of lives in the long run.

Description : Is thumb size a reliable measure of intelligence?

Last Answer : no.

Description : What do you think is the best measure of intelligence?

Last Answer : Time. And, time is an illusion.

Description : Is it odd for a personality type to change over a short period of time?

Last Answer : I don't think so because of the age you're at. It's natural to have your personality change quite a bit between your high school years and college. It's part of emotional growth. I ... if you are exhibiting some sort of damaging personal change. Such as suddenly finding harming other people fun'.

Description : Whew! Testing done, Now what will they do?

Last Answer : Sounds like hopeful news! We will keep hoping that things will keep going well. “I wonder how really manly sized men get in there? ” They have “open” MRI machines these days, for just that situation.

Description : Why is there a "do not write in this area" in tests and important stuff?

Last Answer : That place is usually reserved for official documentation. The thing that I find weird is when a blank sheet of paper has the text on it that says: “This page intentionally left blank” it’s not blank, it has those five words on it.

Description : Is there an IQ test that's easier for right brain people? Or does it not even matter?

Last Answer : I dunno, i know IQ tests test only the logical capability of the individual, not any other possible skill or knowledge.

Description : What do you think IQ scores really reveal about a person's true potential?

Last Answer : I think people who have high IQ scores are good at taking tests. However, without a high EQ score you probably won’t be as successful because success depends on other people either supporting what you do, helping you do it, or liking what you do.

Description : I need to find a website that allows me to create online tests?

Last Answer : Try this website. www.FormSite.com For free, i’m not sure if it will tell you if the person passed or not, But it will give you a HTML code based on multiple choice questions you set up. You then retrieve the results on their website, and you can then grade the test yourself.

Description : Is taking l-dopa illegal ?

Last Answer : Just to clarify – are you saying that you have not done meth ever but you have taken L-dopa?

Description : How to pass hair test?

Last Answer : What is a hair test?

Description : Explain how double test lamp used for testing earth?

Last Answer : Ans: Double test lamp having three leads. Centre lead should be connected to earth, left side lead to be connected on positive side (+ve), right side to be connected on negative side (-ve) If both ... ) in the coach. If right side bulb glows brightly it indicates positive earth (+ve) in the coach.

Description : State the procedure for testing of earth pit resistance with necessary diagrams.

Last Answer : Following procedure (Method) for testing of earth pit resistance with necessary diagrams. 1) Earth Tester : i) Three point method ii) Four point method 2) By Potential drop method 3 ... of that earthing pit. In this test the accuracy is less but electrical rods are not required. 

Description : Phantom loading for testing of energy meter is used (A) to isolate the current and potential circuits (B) to increase power loss during testing (C) for meters having low current ratings (D) to test meters having a large current rating for which loads may not be available

Last Answer : B