Ans: It helps prevent defects from being introduced into the code.
Ans: Risk-based Testing is the term used for an approach to creating a test strategy that is based on prioritizing tests by risk. The basis of the approach is a detailed risk analysis and prioritizing of risks by risk level. Tests to address each risk are then specified, starting with the highest risk first.
Ans: 4, 5, 99
Ans: Preventative tests are designed early; reactive tests are designed after the software has been produced.
Ans: The purpose of exit criteria is to define when a test level is completed.
Ans: The likelihood of an adverse event and the impact of the event determine the level of risk.
Ans: Decision table testing is used for testing systems for which the specification takes the form of rules or cause-effect combinations. In a decision table the inputs are listed in a column, with the outputs in the same column but below the inputs. The remainder of the table explores combinations of inputs to define the outputs produced.
Learn More About Decision Table Testing Technique in the Video Tutorial here
Ans: To identify defects in any software work product.
Ans: Test case specification defines the expected results of a test.
Ans: It avoids author bias in defining effective tests.
Ans: The exit criteria is determined on the bases of 'Test Planning'.
Ans: Testing performed by potential customers at their own locations.
Q13. Given the following fragment of code, how many tests are required for 100% decision coverage?
if width > length
thenbiggest_dimension = width
if height > width
thenbiggest_dimension = height
end_if
elsebiggest_dimension = length
if height > length
thenbiggest_dimension = height
end_if
end_if
Ans: 4
Ans: None, existing test cases can be used.
Ans: Rapid Application Development (RAD) is formally a parallel development of functions and subsequent integration. Components/functions are developed in parallel as if they were mini projects, the developments are time-boxed, delivered, and then assembled into a working prototype. This can very quickly give the customer something to see and use and to provide feedback regarding the delivery and their requirements. Rapid change and development of the product is possible using this methodology. However the product specification will need to be developed for the product at some point, and the project will need to be placed under more formal controls prior to going into production.
Ans: Testing technique: – Is a process for ensuring that some aspects of the application system or unit functions properly there may be few techniques but many tools.
Testing Tools: – Is a vehicle for performing a test process. The tool is a resource to the tester, but itself is insufficient to conduct testing
Learn More About Testing Tools here
Ans: User Acceptance Test Cases
Ans: Regression Testing
Ans: Component testing, also known as unit, module and program testing, searches for defects in, and verifies the functioning of software (e.g. modules, programs, objects, classes, etc.) that are separately testable. Component testing may be done in isolation from the rest of the system depending on the context of the development life cycle and the system. Most often stubs and drivers are used to replace the missing software and simulate the interface between the software components in a simple manner. A stub is called from the software component to be tested; a driver calls a component to be tested.
Ans: Testing the end to end functionality of the system as a whole is defined as a functional system testing.
Ans: Independent testers are unbiased and identify different defects at the same time.
Ans: The bulk of the test design work begun after the software or system has been produced.
Ans: There are currently seven different agile methodologies that I am aware of:
Ans: A 'Test Analysis' and 'Design' includes evaluation of the testability of the requirements and system.
Ans: Because testing everything is not feasible.
Ans: Random testing often known as monkey testing. In such type of testing data is generated randomly often using a tool or automated mechanism. With this randomly generated input the system is tested and results are analysed accordingly. These testing are less reliable; hence it is normally used by the beginners and to see whether the system will hold up under adverse effects.
Ans:
Ans:
Data Flow Analysis and Inspections are static; Equivalence Partitioning, Use Case Testing, Exploratory Testing and Decision Testing are dynamic.
Ans: Because they share the aim of identifying defects but differ in the types of defect they find.
Ans: In contrast to informal reviews, formal reviews follow a formal process. A typical formal review process consists of six main steps:
Ans: The moderator (or review leader) leads the review process. He or she determines, in co-operation with the author, the type of review, approach and the composition of the review team. The moderator performs the entry check and the follow-up on the rework, in order to control the quality of the input and output of the review process. The moderator also schedules the meeting, disseminates documents before the meeting, coaches other team members, paces the meeting, leads possible discussions and stores the data that is collected.
Ans: An input or output ranges of values such that only one value in the range becomes a test case.
Ans: During test planning.
Ans: Security Testing
Ans: Load Testing
Ans: Integration Level Testing
Ans: Structure-based testing techniques (which are also dynamic rather than static) use the internal structure of the software to derive test cases. They are commonly called 'white-box' or 'glass-box' techniques (implying you can see into the system) since they require knowledge of how the software is implemented, that is, how it works. For example, a structural technique may be concerned with exercising loops in the software. Different test cases may be derived to exercise the loop once, twice, and many times. This may be done regardless of the functionality of the software.
Q38. When "Regression Testing" should be performed?
Ans: After the software has changed or when the environment has changed Regression testing should be performed.
Ans: A negative test is when you put in an invalid input and receives errors. While a positive testing, is when you put in a valid input and expect some action to be completed in accordance with the specification.
Ans: The purpose of test completion criterion is to determine when to stop testing
Ans: For example memory leaks.
Ans: Re-testing ensures the original fault has been removed; regression testing looks for unexpected side effects.
Ans: In experience-based techniques, people's knowledge, skills and background are a prime contributor to the test conditions and test cases. The experience of both technical and business people is important, as they bring different perspectives to the test analysis and design process. Due to previous experience with similar systems, they may have insights into what could go wrong, which is very useful for testing.
Ans: Inspection
Ans: Yes, because both help detect faults and improve quality.
Ans: 1899,1900,2004,2005
Ans: d. Output comparator
Ans: Driver
Ans: Lack of Objectivity
Ans: The answer depends on the risk for your industry, contract and special requirements.
Ans: It depends on the risks for the system being tested. There are some criteria bases on which you can stop testing.
Ans: The main purpose of the integration strategy is to specify which modules to combine when and how many at once.
Ans: Semi-random test cases are nothing but when we perform random test cases and do equivalence partitioning to those test cases, it removes redundant test cases, thus giving us semi-random test cases.
Q54. Given the following code, which statement is true about the minimum number of test cases required for full statement and branch coverage?
Read p
Read q
IF p+q> 100
THEN Print "Large"
ENDIF
IF p > 50
THEN Print "p Large"
ENDIF
Ans: 1 test for statement coverage, 2 for branch coverage
Ans: Black box testing is the software testing method which is used to test the software without knowing the internal structure of code or program. This testing is usually done to check the functionality of an application. The different black box testing techniques are
Ans: Technical Review.
Ans: The techniques of equivalence partitioning and boundary value analysis are often applied to specific situations or inputs. However, if different combinations of inputs result in different actions being taken, this can be more difficult to show using equivalence partitioning and boundary value analysis, which tend to be more focused on the user interface. The other two specification-based techniques, decision tables and state transition testing are more focused on business logic or business rules. A decision table is a good way to deal with combinations of things (e.g. inputs). This technique is sometimes also referred to as a 'cause-effect' table. The reason for this is that there is an associated logic diagramming technique called 'cause-effect graphing' which was sometimes used to help derive the decision table
Ans: By testers.
Ans: There isn't one.
Ans: Author
Ans: Regression testing should be done on other modules as well because fixing one module may affect other modules.
Ans: Because errors are frequently made during programming of the different cases near the 'edges' of the range of values.
Ans: It is led by a trained leader, uses formal entry and exit criteria and checklists.
Ans: Because configuration management assures that we know the exact version of the testware and the test object.
Ans: A software development model that illustrates how testing activities integrate with software development phases
Ans: Triggered by modifications, migration or retirement of existing software
Ans: Test coverage measures in some specific way the amount of testing performed by a set of tests (derived in some other way, e.g. using specification-based techniques). Wherever we can count things and can tell whether or not each of those things has been tested by some test, then we can measure coverage.
Ans: Because incremental integration has better early defects screening and isolation ability
Ans: It would be before test case designing. Requirements should already be traceable from Review activities since you should have traceability in the Test Plan already. This question also would depend on the organisation. If the organisations do test after development started then requirements must be already traceable to their source. To make life simpler use a tool to manage requirements.
Ans: Bottom-up integration
Ans: During test planning
Ans: To freeze requirements, to understand user needs, to define the scope of testing
Ans: We split testing into distinct stages because of following reasons,
Ans: To measure test effectiveness a powerful metric is used to measure test effectiveness known as DRE (Defect Removal Efficiency) From this metric we would know how many bugs we have found from the set of test cases. Formula for calculating DRE is
DRE=Number of bugs while testing / number of bugs while testing + number of bugs found by user
Ans: Regression testing
Ans: Metrics from previous similar projects and discussions with the development team
Ans: The use of data on paths through the code.
Ans: Pre-release testing by end user representatives at the developer's site.
Ans: Failure is a departure from specified behaviour.
Ans: Is it really a test if you put some inputs into some software, but never look to see whether the software produces the correct result? The essence of testing is to check whether the software produces the correct result, and to do that, we must compare what the software produces to what it should produce. A test comparator helps to automate aspects of that comparison.
Ans: Scribe
Ans: Inexpensive way to get some benefit
Ans: Identifying test conditions and Identifying test cases
Ans: Equivalence partitioning
Ans: The best choice is Tester, test automater, web specialist, DBA
Ans: Send to the detailed information of the bug encountered and check the reproducibility
Ans: Big-Bang Testing
Ans: V-Model
Ans: Equivalence partitioning
Ans: V-Model
Ans: The most important one must tests first
Ans: The fault has been built into more documentation, code, tests, etc
Ans: It is a partial measure of test thoroughness.
Ans: Test boundary conditions on, below and above the edges of input and output equivalence classes. For instance, let say a bank application where you can withdraw maximum Rs.20,000 and a minimum of Rs.100, so in boundary value testing we test only the exact boundaries, rather than hitting in the middle. That means we test above the maximum limit and below the minimum limit.
Ans: Error condition hiding another error condition.
Ans: Commercial off The Shelf.
Ans: Test Environment
Ans: Phase Test Plan
Ans: Exploratory testing is a hands-on approach in which testers are involved in minimum planning and maximum test execution. The planning involves the creation of a test charter, a short declaration of the scope of a short (1 to 2 hour) time-boxed test effort, the objectives and possible approaches to be used. The test design and test execution activities are performed in parallel typically without formally documenting the test conditions, test cases or test scripts. This does not mean that other, more formal testing techniques will not be used. For example, the tester may decide to use boundary value analysis but will think through and test the most important boundary values without necessarily writing them down. Some notes will be written during the exploratory-testing session, so that a report can be produced afterwards.
Ans: In order to identify and execute the functional requirement of an application from start to finish "use case" is used and the techniques used to do this is known as "Use Case Testing"
Bonus!
Ans: SDLC deals with developement/coding of the software while STLC deales with validation and verification of the software
Ans: The relationship between test cases and requirements is shown with the help of a document. This document is known as traceability matrix.
Ans: Equivalence partitioning testing is a software testing technique which divides the application input test data into each partition at least once of equivalent data from which test cases can be derived. By this testing method it reduces the time required for software testing.
Ans: White box testing technique involves selection of test cases based on an analysis of the internal structure (Code coverage, branches coverage, paths coverage, condition coverage etc.) of a component or system. It is also known as Code-Based testing or Structural testing. Different types of white box testing are
Ans: In white box testing following steps are verified.
Ans: Static testing: During Static testing method, the code is not executed and it is performed using the software documentation.
Dynamic testing: To perform this testing the code is required to be in an executable form.
Ans: Verification is a process of evaluating software at development phase and to decide whether the product of a given application satisfies the specified requirements. Validation is the process of evaluating software at the end of the development process and to check whether it meets the customer requirements.
Ans: There are four test levels
Ans: Integration testing is a level of software testing process, where individual units of an application are combined and tested. It is usually performed after unit and functional testing.
Ans: Test design, scope, test strategies , approach are various details that Test plan document consists of.
Ans: System Testing: System testing is finding defects when the system under goes testing as a whole, it is also known as end to end testing. In such type of testing, the application undergoes from beginning till the end.
UAT: User Acceptance Testing (UAT) involves running a product through a series of specific tests which determines whether the product will meet the needs of its users.
Ans: Retesting: It is a process of checking bugs that are actioned by development team to verify that they are actually fixed.
Data Driven Testing (DDT): In data driven testing process, application is tested with multiple test data. Application is tested with different set of values.
Ans:
Ans: Difference between test scenarios and test cases is that
Test Scenarios: Test scenario is prepared before the actual testing starts, it includes plans for testing product, number of team members, environmental condition, making test cases, making test plans and all the features that are to be tested for the product.
Test Cases: It is a document that contains the steps that has to be executed, it has been planned earlier.
Test Script: It is written in a programming language and it's a short program used to test part of functionality of the software system. In other words a written set of steps that should be performed manually.
Ans: Latent defect: This defect is an existing defect in the system which does not cause any failure as the exact set of conditions has never been met
Ans: To know the quality of test execution we can use two parameters
Ans: Phantom is a freeware, and is used for windows GUI automation scripting language. It allows to take control of windows and functions automatically. It can simulate any combination of key strokes and mouse clicks as well as menus, lists and more.
Ans: Test Deliverables are set of documents, tools and other components that has to be developed and maintained in support of testing.
There are different test deliverables at every phase of the software development lifecycle
Ans: Mutation testing is a technique to identify if a set of test data or test case is useful by intentionally introducing various code changes (bugs) and retesting with original test data/ cases to determine if the bugs are detected.
Ans:
Ans: For the risk analysis following steps need to be implemented
Ans: Categories for debugging
Ans: When presence of one defect hides the presence of another defect in the system is known as fault masking.
Example : If the "Negative Value" cause a firing of unhandled system exception, the developer will prevent the negative values inpu. This will resolve the issue and hide the defect of unhandled exception firing.
Ans: A test plan can be defined as a document describing the scope, approach, resources and schedule of testing activities and a test plan should cover the following details.
Ans: To eliminate product risk in your project, there is simple yet crucial step that can reduce the product risk in your project.
Ans: The common risk that leads to a project failure are
Ans: To estimate your project , you have to consider following points
Ans:
Task | Member |
|
|
|
|
|
|
|
|
|
|
Ans: To get an expected test outcome a standard procedure is followed which is referred as Testing Type.
Commonly used testing types are
Ans: The things that has to be taken in considerations are
Ans:
Ans: A test report contains following things:
The benefits of test reports are:
Ans: Management review is also referred as Software Quality Assurance or SQA. SQA focusses more on the software process rather than the software work products. It is a set of activities designed to make sure that the project manager follows the standard process. SQA helps test manager to benchmark the project against the set standards.
Ans: The best practices for an effective SQA implementation is
Ans: RTM is prepared before test case designing. Requirements should be traceable from review activities.
Ans: Test Matrix: Test matrix is used to capture actual quality, effort, the plan, resources and time required to capture all phases of software testing
Traceability Matrix:Mapping between test cases and customer requirements is known as Traceability Matrix
Ans: Both stubs and drivers are part of incremental testing. In incremental testing there are two approaches namely bottom up and top down approach. Drivers are used in bottom up testing and stub is used for top down approach. In order to test the main module, stub is used, whuich is a dummy code or program .
Ans: Once defect is found you would follow the step
Ans: This technique uses the actual test case document developed by testers using a spread sheet containing special "key Words". The key words control the processing.
Ans: When a "flow of data" through an information system is graphically represented then it is known as Data Flow Diagram. It is also used for the visualization of data processing.
Ans: LCSAJ stands for 'linear code sequence and jump'. It consists of the following three items
Ans: The variation of regression testing is represented as N+1. In this technique the testing is performed in multiple cycles in which errors found in test cycle 'N' are resolved and re-tested in test cycle N+1. The cycle is repeated unless there are no errors found.
Ans: Fuzz testing is used to detect security loopholes and coding errors in software. In this technique random data is added to the system in attempt to crash the system. If vulnerability persists, a tool called fuzz tester is used to determine potential causes. This technique is more useful for bigger projects but only detects major fault.
Ans: The benefit of statement coverage metric is that
Ans:
Ans:
Ans:
Mainly there are three defect categories
Ans: The code coverage testing tool runs parallel while performing testing on the actual product. The code coverage tool monitors the executed statements of the source code. When the final testing is done we get a complete report of the pending statements and also get the coverage percentage.
Ans: In simple terms when a defect reaches the end customer it is called a failure while the defect is identified internally and resolved then it is referred as defect.
Ans: The project span across the software development lifecycle in following manner
Ans: Black box test cases are written first as to write black box test cases; it requires project plan and requirement document all these documents are easily available at the beginning of the project. While writing white box test cases requires more architectural understanding and is not available at the start of the project.
Ans:
Ans: Bottom up testing is an approach to integration testing, where the lowest level components are tested first, then used to facilitate the testing of higher level components. The process is repeated until the component at the top of the hierarchy is tested.
Ans: Different three types of test coverage techniques include
Ans: Breadth testing is a test suite that exercises the full functionality of a product but does not test features in detail
Ans: The difference between pilot and beta testing is that pilot testing is actually done using the product by the group of user before the final deployment and in beta testing we do not input real data, but it is installed at the end customer to validate if the product can be used in production.
Ans: Code Walk Through is the informal analysis of the program source code to find defects and verify coding techniques
Ans: The basic components of defect report format includes
Ans: End-to end testing is done after functional testing. The purpose behind doing end-to-end testing is that
Ans: A test harness is configuring a set of tools and test data to test an application in various conditions, it involves monitoring the output with expected output for correctness.
Ans: In a testing project testing activities you would automate are