Showing posts with label ISTQB. Show all posts
Showing posts with label ISTQB. Show all posts

Tuesday, 1 January 2019

Chapter 8: Software Testing Interview Questions and Answers

Chapter 8: Software Testing Interview Questions and Answers

Chapter 8: Software Testing Interview Questions and Answers


1. What is Defect?

A software defect is an error in coding or logic that causes a program to malfunction or to produce incorrect/unexpected results.

Defect is also called as Bug.

A Software Defect is a condition in a software product which does not meet a software requirement as stated in the requirement specifications or end-user expectation which may not be specified but is reasonable.

2. What is Beta testing?

Beta testing is a testing performed by the “real users” of the application in “real environment”. Beta version of the software is released to limited number of users for beta testing.

This testing is generally performed by customers at their own site. Beta testing enables to receive direct feedback from the customers. It is a final testing before shipping product to the customers.

3. What is Black Box testing?

Black Box testing is a testing of either functional or non-functional characteristics of a system/component/application without reference to the internal structure, code and design of the system/ component /application.

4. What is Boundary Value Analysis (BVA)?

Boundary value analysis is a test design technique in Black Box testing. Boundary value analysis involves identifying the input values to be tested at the extreme ends (boundaries) of the input domain. Values at the extreme ends are more likely to identify the defects.

Chapter 7: Software Testing Practice Questions and Answers

Software Testing Exam Practice Questions and Answers

Chapter 7: Software Testing Practice Questions and Answers

1. When testing a grade calculation system, a tester determines that all scores from 80 to 100 will yield a grade of A, but scores below 80 will not. This analysis is known as:

  • A. Equivalence partitioning
  • B. Boundary value analysis
  • C. Decision table
  • D. Hybrid analysis

2. What is the concept of introducing a small change to the program and having the effects of that change show up in some test?

  • A. Introducing mutations
  • B. Performance testing
  • C. A mutation error
  • D. Debugging a program

3. Test charters are used in testing

  • A. Exploratory testing
  • B. Usability testing
  • C. Component testing
  • D. Maintainability testing

4. Big bang approach is related to

  • A. Regression testing
  • B. Inter system testing
  • C. Re-testing
  • D. Integration testing

5. Testing of software used to convert data from existing systems for use in Replacement systems

  • A. Data driven testing
  • B. Migration testing
  • C. Configuration testing
  • D. Back to back testing

6. Which is not the testing objectives ?

  • A. Finding defects
  • B. Gaining confidence about the level of quality and providing information
  • C. Preventing defects
  • D. Debugging defects

7. Contract and regulation testing is a part of ?

  • A. System testing
  • B. Acceptance testing
  • C. Integration testing
  • D. Smoke testing

8. Which is not a testing principle ?

  • A. Early testing
  • B. Defect clustering
  • C. Pesticide paradox
  • D. Exhaustive testing


Answers

1. A, 2. A, 3. A, 4. D, 5. B, 6. D, 7. B, 8. D,

Chapter 6: Tools Support for Testing

Tools Support for Testing

Chapter 6: Tools Support for Testing

In this chapter we will discuss on the following topics.

  • 6.1 Types of Test Tools (U)
  • 6.2 Effective Use of Tools: Potential Benefits and Risks (U)
  • 6.3 Introducing a Tool into an Organization (U)

6.1 Types of Test Tools

There are many types of test tools such as incident management tools, debugging tools, coverage tools etc.

6.1.1 Tool Support for Testing


Test tools can be used for one or more activities that support testing. These include:

  • Tools that are used in exploration For example: tools that monitor file activity for an application.
  • Any tool that aids in testing ( Ex: spreadsheet )
  • Tools that are directly used in testing such as test execution tools and result comparison tools
  • Tools that help in managing the testing process such as those used to manage tests, test results, data, requirements, incidents, defects, etc., and for reporting and monitoring test execution

Tool support for testing can have one or more of the following purposes depending on the context:

  • Automate activities that cannot be executed manually (Example: large scale performance testing of client-server applications)
  • Increase reliability of testing (Example:, by automating large data comparisons or simulating behavior)
  • Improve the efficiency of test activities by automating repetitive tasks or supporting manual test activities like test planning, test design, test reporting, and monitoring
  • Automate activities that require significant resources when done manually

The term “test frameworks “ is also frequently used in the industry, in at least three meanings:

  • Overall process of execution of testing
  • A type of design of test automation (Example: data-driven, keyword-driven)
  • Reusable and extensible testing libraries that can be used to build testing tools (called test harnesses as well)


6.1.2 Test Tool Classification


There are a number of tools that support different aspects of testing. Tools can be classified based on several criteria such as purpose, commercial/free/open-source/shareware, technology used and so forth.Here we classify tools according to the testing activities that they support.

Some tools clearly support one activity; others may support more than one activity, but are classified under the activities with which they are most closely associated. Tools from a single provider, especially those that have been designed to work together, may be bundled into one package.

Some type of test tools can be intrusive, which means that they can affect the actual outcome of the test. For example, The actual timing may be different due to the extra instructions that are executed by the tool, or you may get a different measure of code coverage. The consequence of intrusive tools is called the probe effect.

Some tools offer support more appropriate for developers For example: tools that are used during component and component integration testing.

6.1.3 Tool Support for Management of Testing and Tests


Management tools apply to all test activities over the entire software life cycle.

Test Management Tools

These tools provide interfaces for executing tests, tracking defects and managing requirements, along with support for quantitative analysis and reporting of the test objects. They also support tracing the test objects to requirement specifications and might have an independent version control capability or an interface to an external one.

Requirements Management tools

These tools store requirement statements, store the attributes for the requirements such as priority, provide unique identifiers and support tracking the requirements to individual tests. These tools may also help with identifying inconsistent or missing requirements.

Incident Management tools (Defect Tracking Tools)

These tools store and manage incident reports, i.e., defects, failures, change requests or perceived problems and anomalies, and help in managing the life cycle of incidents, optionally with support for statistical analysis.

Configuration Management tools

Although not strictly test tools, these are necessary for storage and version management of testware and related software especially when configuring more than one hardware/software environment in terms of operating system versions, compilers, browsers, etc.

6.1.4 Tool Support for Static Testing


Static testing tools provide a cost effective way of finding more defects at an earlier stage in the development process.

Review Tools

These tools assist with review processes. Checklists, review guidelines and are used to store and communicate review comments and report on defects and effort. They can be of further help by providing aid for online reviews for large or geographically dispersed teams.

Static Analysis Tools

These tools are mostly used by developers. These tools help developers and testers find defects prior to dynamic testing by providing support for enforcing coding standards, analysis of structures and dependencies. They can also help in planning or risk analysis by providing metrics for the code.

Modeling Tools

This tool also mostly used by developers. These tools are used to validate software models For example: physical data model (PDM) for a relational database, by enumerating inconsistencies and finding defects. These tools can often aid in generating some test cases based on the model.

6.1.5 Tool Support for Test Specification


Test Design Tools

These tools are used to generate test inputs or executable tests and/or test oracles from requirements, graphical user interfaces, design models or code.

Test Data preparation Tools

Test data preparation tools manipulate databases, files or data transmissions to set up test data to be used during the execution of tests to ensure security through data anonymity.

6.1.6 Tool Support for Test Execution and Logging


Test Execution Tools

These tools enable tests to be executed automatically, or semi-automatically, using stored inputs and excepted outcomes, through the use of scripting language and usually provide a test log for each test run. They can also be used to record tests, and usually support scripting languages or GUI-based configuration for parameterization of data and other customization in the tests.

Test harness or unit test framework tools

This tools helps in testing component or a part of system by simulating the environment in which test objects will run, through the provision of mock objects as stubs or drivers.

Test comparators

Test comparators determine the difference between files, databases or test results. A test comparator may use test oracle.

Coverage Measurement Tools

Test tools measure the percentage of specific type of code structure that have been exercised by a set of tests. This tool is used by developers.

Security Testing Tools

These tools are used to evaluate the security characteristics of a software under test. This includes evaluating the ability of the software to protect data confidentiality, integrity, authentication, authorization, availability and non-repudiation.

6.1.7 Tool Support for Performance and Monitoring


Dynamic Analysis Tools:

Dynamic analysis tools find defects that are evident only when software is executing, such as time dependencies or memory leaks.

Performance Testing/Stress Testing /Load Testing Tools

Performance testing tools monitor and report on how a system behaves under a variety of simulated usage conditions in terms of number of concurrent users, their ramp-up pattern, frequency and relative percentage of transactions. The simulation of load is achieved by means of creating virtual users carrying out out a selected set of transactions, spread across various test machines commonly known as load generators.

Monitoring Tools

Monitoring tools continuously analyze, verify and report on usage of specific system resources, and give warnings of possible service problems.

6.1.8 Tool Support for Specific Testing Needs


Data Quality Assessment

Data is at the center of some projects such as migration and data conversion projects and applications like data warehouses and its attributes can very in terms of criticality and volume. In such cases, tools need to be employed for data quality assessment to review and verify the data conversion and migration rules to ensure that the processed data is correct, complete and complies with a pre-defined context-specific standard.

6.2 Effective Use of Tools: potential Benefits and Risks


6.2.1 Potential Benefits and Risks of Tool Support for Testing

Simply purchasing or leasing a tool does not guarantee success with that tool. Each type of tool may require additional effort to achieve real and lasting benefits. There are potential benefits and opportunities with the use of tools in testing , but there are also risks.

Potential benefits of using tools include:

  • Ease of access to information about tests or testing. For example: statistics and graphs about test progress, incident rates and performances.
  • Repetitive work is reduced. For example: running regression tests, re-entering the same test data, and checking against coding standards.
  • Greater consistency and repeat-ability. For example: tests executed by a tool in the same order with the same frequency, and tests derived from requirements.

Risks of using tools include:

  • Underestimating the time, cost and effort for the initial introduction of a tool.
  • Unrealistic expectations of the tool, such as functionality and ease of use.
  • Underestimating the effort required to maintain the test assets generated by the tool.
  • Underestimating the time and effort needed to achieve significant and continuing benefits from the tool, including the need for changes in the testing process and continuous improvement of the way the tool is used.
  • Neglecting version control of test assets within the tool.
  • Over-reliance on the tool.
  • Risk of tool vendor going out of business, retiring the tool, or selling the tool to a different vendor.
  • Poor response from vendor for support, upgrades, and defect fixes.
  • Risk of suspension of open-source/ free tool project.
  • Unforeseen such as the inability to support a new platform.
  • Neglecting relationships and interoperability issues between critical tools, such as requirements management tools, version control tools, incident management tools, defect tracking tools and tools from multiple vendors.


6.2.2 Special Considerations for Some Types of Tools


Test Execution Tools

Test execution tools execute test objectives using automated test scripts. This type of tool often requires significant effort in order to achieve significant benefits.

Capturing tests by recording the actions of a manual tester seems attractive, but this approach does not scale to large numbers of automated test scripts. A captured script is a linear representation with specific data and actions as part of each script. This type of script may be unstable when unexpected events occur.

A data-driven testing approach separates out the test inputs (the data), usually into a spreadsheet, and uses a more generic test script that can read the input data and execute the same test script with different data. Testers who are not familiar with the scripting language can then create the test data for these predefined scripts.

There are other techniques employed in data-driven techniques. Where instead of hard-coded data combinations placed in a spreadsheet, data is generated using algorithms based on configurable parameters at run time and supplied to the application. For example, a tool may use an algorithm, which generates a random user ID, and for repeatability in pattern, a seed is employed for controlling randomness.

In a keyword-driven testing approach, the spreadsheet contains keywords describing the actions to be taken (also called as action words), and test data. Testers even if they are not familiar with the scripting language can then define tests using the keywords, which can be tailored to the application being tested.

Technical expertise in the scripting language is needed for all approaches.

Regardless of the scripting technique used, the expected results for each test need to be stored for later comparison.

Static Analysis Tools

Static analysis tools applied to source code can enforce coding standards, but if applied to existing code may generate a large quantity of messages. Warning messages do not stop the code from being translated into an executable program, but ideally should be addressed so that maintenance of the code is easier in the feature. A gradual implementation of the analysis tool with initial filters to exclude some messages is an effective approach.

Test Management Tools

Test management tools need to interface with other tools or spreadsheets in order to produce useful information in a format that fits the needs of the organization.

6.3 Introducing a Tool into an Organization

The main considerations in selecting a tool for an organization include:

  • identify changes needed to that infrastructure to effectively use the tool
  • Evaluation of the vendor or service support suppliers in case of non-commercial tools
  • Identification of internal requirements for coaching and mentoring in the use of the tool
  • Evaluation of training needs considering the current test team’s test automation skills
  • Estimation of a cost-benefit ratio based on a concrete business case
  • Assessment of organizational maturity, strengths and weaknesses and identification of opportunities for an improved test process supported by tools
  • Evaluation against clear requirements and objective criteria
  • A proof-of-concept, by using a test tool during the evaluation phase to establish whether it performs effectively with the software under test and within the current infrastructure

Introducing the selected tool into an organization starts with a pilot project, which has the following objectives:

  • Evaluate how the tool fits with existing process and practices, and determine what would need to change
  • Decide on standard ways of using, managing, storing and maintaining the tool and the test assets
  • Assess whether the benefits will be achieved at reasonable cost
  • Learn more detail about the tool

Success factors for the deployment of the tool within an organization include:

  • Implementing a way to gather usage information from the actual use
  • Monitoring tool use and benefits
  • Providing support for the test team for a given tool
  • Gathering lessons learned from all teams
  • Rolling out the tool to the rest of the organization incrementally
  • Adapting and improving processes to fit with the use of the tool
  • Providing training and coaching/mentoring for new users
  • Defining usage guidelines

Chapter 6: Tools Support for Testing - Practice Test

Tools Support for Testing - Practice Test

Saturday, 29 December 2018

Chapter 5: Test Management

Test Management

Chapter 5: Test Management

In this chapter we will discuss the following topics:

  • 5.1 Test Organization (U)
  • 5.2 Test planning and Estimation (Y)
  • 5.3 Test Progress Monitoring and Control (U)
  • 5.4 Configuration Management (U)
  • 5.5 Risk and Testing (U)
  • 5.6 Incident Management (U)


5.1 Test Organization


5.1.1 Test Organization and Independence

The effectiveness of finding defects by testing and reviews can be improved by using independent testers. Options for independence include the following:

  • Independent testers outsourced or external to the organization
  • Independent test specialists for specific test types such as usability testers, security testers or certification testers (who certify a software product against standards and regulations)
  • Independent testers from the business organization or user community
  • Independent testers within the organization, reporting to project management or executive management
  • No independent testers; developers test their own code

For large, complex or safety critical projects, it is usually best to have multiple levels of testing, with some or all of the levels done by independent testers. Development staff may participate in testing, especially at the lower levels, but their lack of objectivity often limits their effectiveness.

The benefits of independence are:

  • An independent tester can verify assumptions people made during specification and implementation of the system
  • Independent testers see other and different defects, and are unbiased

Drawbacks of independence are:

  • Independent testers may seen as a bottleneck or blamed for delays in release
  • Developers may lose a sense of responsibility for quality
  • Isolation from the development team

Testing tasks may be done by people in a specific testing role, or may be done by someone in another role, such as business and domain expert, infrastructure or IT operations, project manager, quality manager, developer.

5.1.2 Tasks of the Test Leader and Tester

Here we will discuss on the role of test leader and tester. The activities and tasks performed by people in these two roles depend on the project and product context, the people in the roles, and the organization.

Sometimes the test leader is called a test manager or test coordinator. The role of the test leader may be performed by a project manager, a development manager, a quality assurance manager or the manager of a test group. In larger projects two positions may exist: test leader and test manager. Typically the test leader plans, monitors and controls the testing activities.

Typical tasks performed by test leader are:

  • Adapt planning based on test results and progress and take any action necessary to compensate for problems
  • Coordinate the test strategy and plan with project managers and others
  • Contribute the testing perspective to other project activities, such as integration planning
  • Decide about the implementation of the test environment
  • Decide what should be automated, to what degree, and how
  • Initiate the specification, preparation, implementation and execution of tests, monitor the test results and check the exit criteria
  • Introduce suitable metrics for measuring test progress and evaluating the quality of the testing and the product
  • Plan the tests-considering the context and understanding the test objectives and risks-including selecting test approaches, estimating the time, effort and cost of testing, acquiring resources, defining test levels, cycles, and planning incident management
  • Select tools to support testing and organize any training in tool use for testers
  • Set up adequate configuration management of testware for traceability
  • Write or review a test strategy for the project, and test policy for the organization
  • Write test summary reports based on the information gathered during testing

Typical tasks performed by tester may include:

  • Analyze, review and assess user requirements, specifications and modules for testability
  • Automate tests
  • Create test specification
  • Implement tests on all test levels. execute and log the tests, evaluate the results and document the deviations from excepted results
  • Measure performance of components and systems
  • Prepare and acquire test data
  • Review and contribute to test plans
  • Review tests developed by others
  • Set up the test environment
  • Use test administration or management tools and test monitoring tools as required

People who work on test analysis, test design, specific test types or test automation may be specialists in these roles. Depending on the test level and the risks related to the product and the project, different people may take over the role of tester, keeping some degree of independence. Typically testers at the component and integration level would be developers, testers at the acceptance test level would be business experts and users, and testers for operational acceptance testing would be operators.

5.2 Test Planning and Estimation


5.2.1 Test Planning

In this section we discuss the purpose of test planning within development and implementation projects, and for maintenance activities. Planning may be documented in a master test plan and in separate test plans for test levels such as system testing and acceptance testing.

Planning is influenced by the test policy of the organization, the scope of testing, objectives, risks, constraints, criticality, testability, and the availability of resources. As the project and test planning progress, more information becomes available and more detail can be included in the plan.

Test planning is a continuous activity and is performed in a all life cycle processes and activities. Feedback from test activities is used to recognize changing risks so that planning can be adjusted.


5.2.2 Test Planning Activities

Test planning activities for an entire system or part of system include:

  • Assigning resources for the different activities defined
  • Defining the amount, level of detail, structure and templates for the test documentation
  • Defining the overall approach of testing, including the definition of the test levels and entry and exit criteria
  • Determining the scope and risks and identifying the objectives of testing
  • Integrating and coordinating the testing activities into the software life cycle activities (acquisition, supply, development, operation, and maintenance)
  • Making decisions about what to test, what roles will perform the test activities, how the test activities should be done, and how the test results will be evaluated
  • Scheduling test analysis and design activities
  • Scheduling test implementation, execution and evaluation
  • Selecting metrics for monitoring and controlling test preparation and execution, defect resolution and risk issues
  • Setting the level of detail for test procedures in order to provide enough information to support reproducible test preparation and execution


5.2.3 Entry Criteria

Entry criteria define when to start testing such as at the beginning of a test level or when set of tests is ready for execution.

Typically entry criteria may cover the following:

  • Test environment availability and readiness
  • Testable code availability
  • Test data availability
  • Test tool readiness in the test environment


5.2.4 Exit Criteria

Exit criteria define when to stop testing such as at the end of the test level or when a set of tests has achieved specific goal.

Typically exit criteria may cover the following:

  • Cost
  • Estimates of defect density or reliability measures
  • Residual risks, such as defects not fixed or lack of test coverage in certain areas
  • Schedules such as those based on time to market
  • Thoroughness measures, such as coverage of code, functionality or risk


5.2.5 Test Estimation

Two approaches for the estimation of test effort are:

  • The metrics-based approach: estimating the testing effort based on metrics of former or similar projects or based on typical values
  • The expert-based approach : estimating the tasks based on estimates made by the owner of the tasks or by experts

Once the test effort is estimated, resources can be identified and a schedule can be drawn up.

The testing effort may depend on a number of factors, such as:

  • Characteristics of the product: the quality of the specification and other information used for test models , the size of the product, the complexity of the problem domain, the requirements for reliability and security, and the requirements for documentation
  • Characteristics of the development process: the stability of the organization, tools used, test process, skills of the people involved, and time pressure
  • The outcome of testing: the number of defects and the amount of rework required


5.2.6 Test strategy, Test Approach

The test approach is the implementation of the test strategy for a specific project. The test approach is defined and refined in the test plans and test designs. It typically includes the decisions made based on the project’s goal and risk assessment. It is the starting point for planning the test process, for selecting the test design techniques and test types to be applied, and for defining the entry and exit criteria.

The selected approach depends on the context and may consider risks, hazards and safety, available resources and skills, the technology, the nature of the system , test objectives, and regulations.

Typical approaches includes:

  • Analytical approaches, such as risk-based testing where testing is directed to areas of greatest risk
  • Consultative approaches, such as those in which test coverage is driven primarily by the advice and guidance of technology and/or business domain experts outside the test team
  • Dynamic and heuristic approaches, such as exploratory testing where testing is more reactive to events then pre-planned, and where execution and evaluation are concurrent tasks
  • Methodical approaches, such as failure-based (including error guessing and fault attacks), experience- based, checklist-based, and quality characteristics-based
  • Model-based approaches, such as stochastic testing using statistical information about failure rats ( such as reliability growth models) or usage (such as operational profiles)
  • Process-or standard-compliant approaches, such as those specified by industry-specific standards or the various agile methodologies
  • Regression-averse approaches, such as those that include reuse of existing test material, extensive automation of functional regression tests, and standard test suites

Different approaches may be combined, for example, a risk-based dynamic approach.


5.3 Test Progress Monitoring and Control


5.3.1 Test Progress Monitoring

The purpose of test monitoring is to provide feedback and visibility about test activities. Information to be monitored may be collected manually or automatically and may be used to measure exit criteria, such as coverage. Metrics may also be used to assess progress against the planned schedule and budget. Common test metrics are:

  • Dates of test milestones
  • Defect information (e.g., defect density, defects found and fixed, failure rate, and re-test results)
  • Percentage of work done in test case preparation (or percentage of planned test cases prepared)
  • Percentage of work done in test environment preparation
  • Subjective confidence of testers in the product
  • Test case execution (e.g., number of test cases run/not run, and test cases passed/failed)
  • Testing costs, including the cost compared to the benefit of finding the next defect or to run the next test
  • Test coverage of requirements, risks or code


5.3.2 Test Reporting

Test reporting is concerned with summarizing information about the testing endeavor, which includes:

  • Analyzed information and metrics to support recommendations and decisions about future actions, such as an assessment of defects remaining, the economic benefit of continued testing, outstanding risks, and the level of confidence in the tested software
  • What happened during a period of testing, such as dates when exit criteria were met

Metrics should be collected during and at the end of a test level in order to assess:

  • The adequacy of the test objectives for that test level
  • The adequacy of the test approaches taken
  • The effectiveness of the testing with respect to the objectives


5.3.3 Test Control

Test control describes any guiding or corrective actions taken as a result of information and metrics gathered and reported. Actions may cover any test activity and may affect any other software life cycle activity or task.

Examples of test control actions include:

  • Changing the test schedule due to availability or unavailability of a test environment
  • Making decisions based on information from test monitoring
  • Re-prioritizing tests when an identified risk occurs (e.g., software delivered late)
  • Setting an entry criterion requiring fixes to have been re-tested (conformation tested) by a developer before accepting them into a build


5.4 Configuration Management

The purpose of configuration management is to establish and maintain the integrity of the products (components, data and documentation) of the software or system throughout the project and product life cycle.

For testing, configuration management may involve the following:

  • All identified documents and software items are referenced unambiguously in test documentation
  • All items of testware are identified, version controlled, tracked for changes, related to each other and related to development items (test objects) so that traceability can be maintained throughout the test process

For the tester, configuration management helps to uniquely identify ( and to reproduce ) the tested item, test documents, the tests and the test harness(es).

During test planning, the configuration management procedures and infrastructure (tools) should be chosen, documented and implemented.


5.5 Risk and Testing

Risk can be defined as the chance of an event, hazard, threat or situation occurring and resulting in undesirable consequences or a potential problem. The level of risk will be determined by the likelihood of an adverse event happening and the impact (the harm resulting from that event).


5.5.1 Project Risks

Project risks are the risks that surround the project’s capability to deliver its objectives, such as:

Organizational factors:

  • Personnel issues
  • Skill, training and staff shortages
  • Improper attitude toward or expectations of testing (e.g., not appreciating the value of finding defects during testing)
  • Political issues, such as:
    • Problems with testers communicating their needs and test results
    • Failure by the team to follow up on information found in testing and reviews (e.g., not improving development and testing practices)

Supplier issues:

  • Contractual issues
  • Failure of a third party

Technical issues:

  • Late date conversion, migration planning and development and testing data conversion/migration tools
  • Low quality of the design, code, configuration data, test data and tests
  • Problems in defining the right requirements
  • Test environment not ready on time
  • The extent to which requirement cannot be met given existing constraints


5.5.2 Product Risks

Potential failure areas (adverse failure events or hazards) in the software or system are known as product risks, as they are a risk to the quality of the product. These include:

  • Failure-prone software delivered
  • Poor data integrity and quality (e.g., data migration issues, data conversion problems, data transport problems, violation of data standards)
  • Poor software characteristics (e.g., functionality, reliability, usability, and performance )
  • Software that does not perform its intended functions
  • The potential that the software/hardware could cause harm to an individual or company

Risks are used to decide where to start testing and where to test more; testing is used to reduce the risk of an adverse effect occurring, or to reduce the impact of an adverse effect.

Product risks are a special type of risk to the success of the project. Testing as a risk-control activity provides feedback about the residual risk by measuring the effectiveness of critical defect removal and of contingency plans.

A risk-based approach to testing provides proactive opportunities to reduce the levels of a product risk, starting in the initial stages of a project. It involves the identification of product risks and their use in guiding test planning and control, specification, preparation and execution of tests. In a risk-based approach the risks identified may be used to:

  • Determine the test techniques to be employed
  • Determine the extent of testing to be carried out
  • Determine whether any non-testing activities could be employed to reduce risk(e.g., providing training to inexperienced designers)
  • Prioritize testing in an attempt to find the critical defects as early as possible


5.6 Incident Management

Since one of the objectives of testing is to find defects, the discrepancies between actual and excepted outcomes need to be logged as incidents. An incident must be investigated and may turn out to be a defect. Appropriate actions to dispose incidents and defects should be defined. Incidents and defects should be tracked from discovery and classification to correction and confirmation of the solution. In order to manage all incidents to completion, an organization should establish an incident management process and rules for classification.

Incidents may be raised during development, review, testing or use of a software product. They may be raised for issues in code or the working system, or in any type of documentation including requirements, development documents, test documents, and user information such as “Help” or installation guides.

Incidents reports have the following objectives:

  • Provide developers and other parties with feedback about the problem to enable identification, isolation and correction as necessary
  • Provide ideas for test process improvement
  • Provide test leaders a means of tracking the quality of the system under test and the progress of the testing

Details of the incident report may include:

  • Change history, such as the sequence of actions taken by project team members with respect to the incident to isolate, repair, and conform it as fixed
  • Conclusions, recommendations and approvals
  • Date of issue, issuing organization, and author
  • Description of the incident to enable reproduction and resolution, including logs, database dumps or screenshots
  • Excepted and actual results
  • Global issues, such as other areas that may be affected by a change resulting from the incident
  • Identification of the test item (configuration item) and environment
  • References, including the identity of the test case specification that revealed the problem
  • Software or system life cycle process in which the incident was observed
  • Scope or degree of impact on stakeholder(s) interests
  • Severity of the impact on the system
  • Status of the incident (e.g., open, deferred, duplicate, waiting to be fixed, fixed awaiting re-test, closed)
  • Urgency/priority to fix


Practice Test on Chapter 5: Test Management


Chapter 5: Test Management - Practice Test

Test Management - Practice Test

Tuesday, 25 December 2018

Chapter 4: Test Design Techniques

Testing Throughout the software Life cycle

Chapter 4: Test Design Techniques

We will discuss the following topics in this chapter.

  • 4.1 The Test Development Process (Y)
  • 4.2 Categories of Test Design Techniques (U)
  • 4.3 Specification-Based or Black-box Techniques (Y)
  • 4.4 Structure-Based or White-Box Techniques (Z)
  • 4.5 Experience-Based Techniques (U)
  • 4.6 Choosing Test Techniques (U)


4.1 The Test Development Process

The test development process described in this section can be done in different ways, form very informal with little or no documentation, to very formal as described below. The level of formality depends on the context of the testing, including the maturity of testing and development processes, time constraints, safety or regulatory requirements, and the people involved.

During test analysis, the test basis documentation is analyzed in order to determine what to test, i.e., to identify the test conditions. A test condition is defined as an item or event that could be verified by one or more test cases. For example: a function, transaction, quality characteristics or structural element.

Establishing traceability from test conditions back to the specifications and requirements enables both effective impact analysis when requirements change, and determining requirements coverage for a set of tests. During test analysis the detailed test approach is implemented to select the test design techniques to use based on, among other considerations, the identified risks.

During test design the test cases and test data are created and specified. A test case consists of a set of input values, execution preconditions, expected results and execution post-conditions, defined to cover a certain test objective(s) or test condition(s).

Expected results should be produced as part of the specification of a test case and include outputs, changes to data and states, and any other consequences of the test. If expected results have not been defined, then a plausible, but erroneous, result may be interpreted as the correct one. Expected results should ideally be defined prior to test execution.

During test implementation the test cases are developed, implemented, prioritized and organized in test procedure specification. The test procedure specifies the sequence of actions for the execution of test. If tests are run using a test execution tool, the sequence of actions is specified in a test script which is an automated test procedure.

The various test procedures and automated test scripts are subsequently formed into a test execution schedule that defines the order in which the various test procedures, and possibly automated test scripts, are executed. The test execution schedule will take into account such factors as regression tests, prioritization, and technical and logical dependencies.


4.2 Categories of Test Design Techniques

The purpose of test design technique is to identify test conditions, test cases, and test data.

It is a classic distinction to denote test techniques as black-box or white-box. Black box test design techniques (also called specification-based techniques) are a way to derive and select test conditions, test cases, or test data based on an analysis of the test basis documentation. This includes both functional and non-functional testing. Black-box testing, by definition, does not use any information regarding the internal structure of the component or system to be tested. White-box test design techniques (also called structural or structure-based techniques) are based on an analysis of the structure of the component or system. Black-box and White-box testing may also be combined with experience-based techniques to leverage the experience of developers, testers and users to determine what should be tested.

Here we refer to specification-based test design techniques as black-box techniques and structure-based test design techniques as white-box techniques, In addition experience-based test design techniques are covered.

Common characteristics of specification-based test design techniques include:

  • Models, either formal or informal, are used for the specification of the problem to be solved, the software or its components
  • Test cases can be derived systematically form these models

Common characteristics of structure-based test design techniques include:

  • The extent of coverage of the software can be measured for existing test cases, and further test cases can be derived systematically to increase coverage
  • Information about how the software is constructed is used to derive the test cases For example code and detailed design information

Common characteristics of experience-based test design technique include:

  • The knowledge and experience of people are used to derive the test cases
  • Knowledge about likely defects and their distribution is also a source of information
  • The knowledge of testers, developers, users and other stakeholders about the software, its usage and its environment is another source of information


4.3 Specification-Based or Black-Box Techniques


4.3.1 Equivalence Partitioning

In equivalence partitioning, inputs to the software or system are divided into groups that are expected to exhibit similar behavior, so they are likely to be processed in the same way. Equivalence partitions (also called as classes) can be found for both valid data, i.e., values that should be accepted and invalid data, i.e., values that should be rejected. Partitions can also be identified for outputs, internal values, time-related values and for interface parameters. Tests can be designed to cover all valid and invalid partitions. Equivalence partitioning is applicable at all levels of testing.

Equivalence partitioning can be used to achieve input and output coverage goals. It can be applied to human input, input via interfaces to a system, or interface parameters in integration testing.

4.3.2 Boundary Value Analysis

Boundary value analysis can be applied at all test levels. It is relatively easy to apply and its defect-finding capability is high. Detailed specifications are helpful in determining the interesting boundary values. Behavior at the edge of each equivalence partition is more likely to be incorrect then behavior within the partition, so boundaries are an area where testing is likely to yield defects. The maximum and minimum values of a partition are its boundary values. A boundary value for a valid partition is a valid boundary value, the boundary of an invalid partition is an invalid boundary value. Tests can be designed to cover both valid and invalid boundary values. When designing test cases, a test for each boundary value is chosen.

This technique is often considered as an extension of equivalence partitioning or other black-box test design techniques.

4.3.3 Decision Table Testing

Decision tables are a good way to capture system requirements that contain logical conditions, and to document internal system design. They may be used to record complex business rules that a system is to implement. When creating decision tables, the specification is analyzed, and conditions and actions of the system are identified. The input conditions and actions are most often stated in such a way that they must be true or false (Boolean). The decision table contains the triggering conditions, often combinations of true and false for all input conditions, and the resulting actions for each combination of conditions. Each column of the table corresponds to a business rule that defines a unique combination of conditions and which result in the execution of the actions associated with that rule. The coverage standard commonly used with decision table testing is to have at least one test per column in the table, which typically involves covering all combinations of triggering conditions.

The strength of decision table testing is that it creates combinations of conditions that otherwise might not have been exercised during testing. It may be applied to all situations when the action of the software depends on several logical decisions.

4.3.4 State Transition Testing

A system may exhibit a different response depending on current conditions or previous history (its previous state). In this case, that aspect of the system can be shown with a state transaction diagram. It allows the tester to view the software in terms of its states, transactions between states, the inputs or events that trigger state changes (transactions) and the actions which may result from those transactions. State table shows the relationship between the states and inputs, and can highlight possible transactions that are invalid.

Tests can be designed to cover a typical sequence of states, to cover every state, to exercise every transition, to exercise specifies sequences of transactions or to test invalid transactions.

State transaction testing is much used within the embedded software industry and technical automation in general. However, the technique is also suitable for modeling a business object having specific states or testing screen-dialogue flows.

4.3.5 Use Case Testing

Tests can be derived from use cases. A use case describes interactions between actors (users and systems), which produce a result of value to a system user or the customer. Each use case has preconditions which need to be met for the use cases to work successfully. Each use case terminates with post-conditions which are the observable results and final state of the system after the use case has been completed. A use case usually has a mainstream scenario and alternative scenarios.

Use cases describe the “process flows” through a system based on its actual likely use. So the test cases derived from use cases are most useful in uncovering defects in the process flows during real-world use of the system. Use cases are very useful for designing acceptance tests with customer/user participation. They also help uncover integration defects caused by the interaction and interference of different components. Which individual component testing would not see. Designing test cases from use cases may be combined with other specification-based test techniques.

4.4 Structure-based or White-box Techniques

Structure-based or white-box testing is based on an identified structure of the software or the system, as given in the following examples:

  • Component level: the structure of a software component, i.e., statements, decisions, branches, and distinct paths
  • Integration level: the structure may be a call tree ( modules call other modules)
  • System level: the structure may be a business process, web page structure, menu structure

In this section, three code-related structural test design techniques for code coverage, based on statements, branches and decisions, are discussed.

4.4.1 Statement Testing and Coverage

In component testing, statement coverage is the assessment of the percentage of executable statements that have been exercised by a test case suite. The statement testing technique derives test cases to execute specific statements, normally to increase statement coverage.

Statement coverage is determined by the number of executable statements covered by test cases divided by the number of all executable statements in the code under test.

4.4.2 Decision Testing and Coverage

Decision coverage, related to branch testing, is the assessment of the percentage of decision outcomes (For example: True and False options of an IF statement) that have been exercised by a test case suite. The decision testing technique derives test cases to execute specific decision outcomes. Branches originate from decision points in the code and show the transfer of control to different locations in the code.

Decision coverage is determined by the number of all decision outcomes covered by test cases divided by the number of all possible decision outcomes in the code under test.

Decision testing is a form of control flow testing as it follows a specific flow of control through the decision points. Decision coverage is stronger than statement coverage; 100% decision coverage guarantees 100% statement coverage, but not vice versa.

4.4.3 Other Structure-based Techniques

There are stronger levels of structural coverage beyond decision coverage, for example, condition coverage and multiple condition coverage.

The concept of coverage can also be applied at other test levels For example, at the integration level the percentage of modules, components or classes that have been exercised by a test case suite could be expressed as module, component or classes coverage.

4.5 Experience-based Techniques

Experience-based testing is where tests are derived from the tester’s skill and intuition and their experience with similar applications and technologies. When used to augment systematic techniques, these techniques can be useful in identifying special tests not easily captured by formal techniques, especially when applied after more formal approaches. However, this technique may yield widely varying degrees of effectiveness, depending on the testers experience.

A commonly used experience-based technique is error guessing. Generally testers anticipate defects based on experience. A structured approach to the error guessing technique is to enumerate a list of possible defects and to design tests that attack these defects. These systematic approach is called fault attack. These defect and failure lists can be built based on experience, available defect and failure data, and from common knowledge about why software fails.

Exploratory testing is concurrent test design, test execution, test logging and learning, based on a test charter contacting test objectives, and carried out within time-boxes. It is an approach that is most useful where there are few or inadequate specifications and severe time pressure, or in order to augment or complement other, more formal testing. It can serve as a check on the test process, to help ensure that the most serious defects are found.

4.6 Choosing Test Techniques

The choice of which test techniques to use depends on a number of factors, including the type of system, regulatory, standards, level of risk, type of risk, test objective, documentation available, customer or contractual requirements, Knowledge of the testers, time and budget, development life cycle, use case modules and previous experience with types of defects found.

Some techniques are more applicable to certain situations and test levels; others are applicable to all test levels.

When creating test cases, testers generally use a combination of test techniques including process, rule and data-driven techniques to ensure adequate coverage of the object under test.

Sunday, 23 December 2018

Chapter 3: Static Techniques

Static Techniques

Chapter 3: Static Techniques

In this chapter we will discuss on the following topics.

  • 3.1 Static Techniques and the Test Process (U)
  • 3.2 Review Process (U)
  • 3.3 Static Analysis by Tools (U)

3.1 Static Techniques and the Test Process

Dynamic testing requires the execution of software, where as static testing techniques rely on the reviews(also called as manual examination) and static analysis(automated analysis) of the code or other project documentation without the execution of the code.

A review could be done entirely as a manual activity, but there is also tool support. The main manual activity is to examine a work product and make comments about it. Any software work product can be reviewed, including requirements specifications, design specifications, code, test, plans, test specifications, test cases, test scripts, user guides or web pages.

Reviews are a way of testing software work products (including software code) and can be performed well before dynamic test execution. Defects detected during reviews early in the software development life cycle are often much cheaper to remove then those detected by running tests on the executing code.

Reviews, static analysis and dynamic testing have the same objective-identifying defects. They are complementary; the different techniques can find different types of defects effectively and efficiently. Compared to dynamic testing, static techniques find causes of failures (defects) rather than the failures themselves.

Typical defects that are easier to find in reviews than in dynamic testing include: requirement defects, design defects, deviations from standards, incorrect interface specifications and insufficient maintainability.

Benefits of reviews include early defect detection and correction, development productivity improvements, reduced development timescales, reduced testing cost and time, lifetime cost reductions, fewer defects and improved communication. Reviews can find omissions, for example, in requirements, which are unlikely to be found in dynamic testing.

3.2 Review Process

The different types of reviews vary from informal, characterized by no written instructions for reviewers, to systematic, characterized by team participation, documented results of the review, and documented producers for conducting the review. The formality of a review process is related to factors such as the maturity of the development process, any legal or regulatory requirements or the need for an audit trail.

The way a review is carried out depends on the agreed objectives of the review. For example: to gain understanding, to educate new members, to find defects, to take decisions.


3.2.1 Activities of a Formal Review

A typical formal review has the main activities as given below:

1. Planning

  • Allocating roles
  • Checking entry criteria
  • Defining entry and exist criteria for more formal review types
  • Defining the review criteria
  • Selecting the personnel
  • Selecting which parts of documents to review

2. Kick-off

  • Explaining the objectives, process and documents to the participants
  • Distributing documents

3. Individual preparation

  • Preparing for the review meeting by reviewing the documents
  • Noting potential defects, Questions and comments

4. Examination, evaluation, recording of results (Review meeting)

  • Discussing or logging, with documented results or minutes
  • Examining/evaluating and recording issues during any physical meetings or tracking any group electronic communications
  • Nothing defects, making recommendations regarding handling the defects, making decisions about the defects

4. Rework

  • Fixing defects found
  • Recording updated status of defects

6. Follow-up

  • Gathering metrics
  • Checking that defects have been addressed
  • Checking on exist criteria

3.2.2 Roles and Responsibilities

A typical formal review will include the roles mentioned below:

  • Author: the writer or person with chief responsibility of the document(s) to be reviewed.
  • Manager: decides on the execution of reviews, allocates time in project schedules and determines if the review objectives have been met.
  • Moderator: the person who leads the review of the document or set of documents, including planning the review, running the meeting, and following-up after the meeting. If necessary, the moderator may mediate between the various points of view and is often the person upon whom the success of the review rests.
  • Reviewers: individuals with a specific technical or business background (also called checkers or inspectors) who, after the necessary preparation, identify and describe findings (e.g., defects) in the product under review. Reviewers should be chosen to represent different perspectives and roles in the review process, and should take part in any review meetings.
  • Scribe (or recorder): documents all the issues, problems and open points that were identified during the meeting.

Looking at software products or related work products from different perspectives and using checklists can make reviews more effective and efficient.

3.2.3 Types of Reviews

A single software product or related work product may be the subject of more than one review. If more than one type of review is used, the order may vary. For example, a technical review may be carried out before an informal review. The main purposes, characteristics and options of common review types are:

Informal Review

Main purpose: inexpensive way to get some benefit

Characteristics:

  • No formal process
  • May take the form of pair programming or a technical lead reviewing designs and code
  • Results may be documented
  • Varies in usefulness depending on the reviewers

Walkthrough

Main purpose: learning, gaining, understanding, finding defects

Characteristics:

  • Meeting led by author
  • May take the form scenarios, dry runs, peer group participation
  • Open-ended sessions
  • Optional pre-meeting preparation of reviewers
  • Optional preparation of a review report including list of findings
  • Optional scribe (who is not the author)
  • May very in practice from quite informal to very formal

Technical Review

Main purposes: discussing, making decisions, evaluating alternatives, finding defects, solving technical problems and checking conformance to specifications, plans, regulations, and standards.

Characteristics:

  • Documented, defined defect-detection process that includes peers and technical experts with optional management participation
  • May be performed as a peer review without management participation
  • Ideally led by trained moderator (not the author)
  • Pre-meeting preparation by reviewers
  • Optional use of checklists
  • Preparation of a review report which includes the list of findings, the verdict whether the software product meets its requirements and, where appropriate, recommendations related to findings
  • May very in practice form quite informal to very formal

Inspection

Main purpose: finding defects

Characteristics:

  • Led by trained moderator (not the author)
  • Usually conducted as a peer examination
  • Defined roles
  • Includes metrics gathering
  • Formal process based on rules and checklists
  • Specified entry and exist criteria for acceptance of the software product
  • Pre-meeting preparation
  • Inspection report including list of findings
  • Formal follow-up process (with optional process improvement components)
  • Optional reader

Inspections,technical reviews and Walkthroughs can be performed within a peer group, i.e., colleagues at the same organizational level. This type of review is called a “peer review”.

3.2.4 Success Factors for Reviews

Success factors for reviews include:

  • Checklists or roles are used if appropriate to effectiveness of defect identification
  • Defects found are welcomed and expressed objectively
  • Each review has clear predefined objectives
  • Management supports a good review process (e.g., incorporating adequate time for review activities in project schedules)
  • People issues and psychological aspects are dealt with
  • Review techniques are applied that are suitable to achieve the objectives and to the type and level of software work products and reviewers
  • Training is given in review techniques, especially the more formal techniques such as inspection
  • There is an emphasis on learning and process improvement
  • The right people for the review objectives are involved
  • Testers are valued reviewers who contribute to the review and also learn about the product which enables them to prepare tests earlier
  • The review is conducted in an atmosphere of trust; the outcome will not be used for the evaluation of the participants

3.3 Static Analysis by Tools

The objective of static analysis is to find defects in software source code and software models. Static analysis is performed without actually executing the software being examined by the tool; dynamic testing does execute the software code. Static analysis can locate defects that are hard to find in dynamic testing. As with reviews, Static analysis finds defects rather than failures. Static analysis tools analyze program code (example: control flow and data flow), as well as generated output such as HTML and XML.

The value of static analysis is:

  • Detecting dependencies and inconsistencies in software models such as links
  • Early detection of defects prior to test execution
  • Early warning about suspicious aspects of the code or design by the calculation of metrics, such as high complexity measure
  • Identification of defects not easily found by dynamic testing
  • Improved maintainability of code and design
  • Prevention of defects, if lessons are learned in development

Typical defects discovered by static analysis tools include:

  • Inconsistent interfaces between models and components
  • Missing and erroneous logic (such as potentially infinite loops)
  • Overly complicated constructs
  • Programming standards violations
  • Referencing a variable with an undefined value
  • Security vulnerabilities
  • Syntax violations of code and software models
  • Unreachable or dead code
  • Variables that are not used or are improperly declared

Static analysis tools are typically used by developers before and during component and integration testing or when checking-in code to configuration management tools, and by designers during software modeling. Static analysis tools may produce a large number of warning massages, which need to be well-managed to allow the most effective use of the tool. Many Compilers offer some support for static analysis, such as the calculation of metrics.

Practice Test on Chapter 3 : Static Techniques


Chapter 3: Static Techniques - Practice Test

Static Techniques - Practice Test

Sunday, 16 December 2018

Chapter 2 : Testing Throughout the software Life cycle

Testing Throughout the software Life cycle

Chapter 2: Testing Throughout the software Life cycle

We will cover the following topics in this chapter.

  • 2.1 Software Development Models (U)
  • 2.2 Test Levels (U)
  • 2.3 Test Types (U)
  • 2.4 Maintenance Testing(U)

2.1 Software Development Models

Testing does not exist in isolation;test activities are related to software development activities.Different development life cycle models need different approaches to testing.

2.1.1 V-model (Sequential Development Model

Generally V-model uses four test levels,corresponding to the four development levels. The four levels are:

  • Component (unit) testing
  • Integration testing
  • System testing
  • Acceptance testing

In real-time, a V-model may have more,fewer or different levels of development and testing,depending on the project and the software product.For example,there may be component integration testing after component testing,and system integration testing after system testing.

Software work products such as business scenarios or use cases,requirements specifications,design documents and code produced during development are often the basis of testing in one or more test levels.

2.1.2 Iterative-incremental Development Models

Iterative-incremental development is the process of establishing requirements, designing, building,and testing a system in a series of short development cycles. Examples for Iterative and incremental models are: prototyping,Rapid Application Development (RAD), Rational Unified Process (RUP) and agile development models.

A system that is produced using these models may be tested at several test levels during each iteration.An increment,added to others developed previously, forms a growing partial system,which should also be tested. Regression testing is increasingly important on all iterations after the first one. Verification and Validation can be carried out one each increment.

2.1.3 Testing Within a Life Cycle Model

In any life cycle model,there are several characteristics of good testing:

  • For every development activity there is a corresponding testing activity
  • Each test level has test objectives specific to that level
  • The analysis and design of tests for a given test level should begin during the corresponding development activity
  • Testers should be involved in reviewing documents as soon as drafts are available in the development life cycle

Test levels can be combined or reorganized depending on the nature of the project or the system architecture.

2.2 Test Levels

Based on the test objective( main purpose of testing) and test object(what is being tested) test levels can be classified as below.

  • 2.2.1 Component Testing (U)
  • 2.2.2 Integration Testing (U)
  • 2.2.3 System Testing (U)
  • 2.2.4 Acceptance Testing (U)

In this section, we will discussion on the each of the above test levels.

2.2.1 Component Testing

Component testing (also known as unit, module or program testing) searches for defects in, and verifies the functioning of, software modules, programs, objects, classes, etc; that are separately testable. It may be done in isolation from the rest of the system, depending on the context of the development life cycle and the system. Stubs, drivers and simulators may be used.

Component testing may include testing of functionality and specific non-functional characteristics, such as resource-behavior (ex: searching for memory leaks) or robustness testing, as well as structural testing (ex:, decision coverage). Test cases are derived from work products such as a specification of the component, the software design or the data model.

Typically, component testing occurs with access to the code being tested and with the support of a development environment, such as a unit test framework or debugging tool. In practice, component testing usually involves the programmer who wrote the code. Defects are typically fixed as soon as they are found, without formally managing these defects.

One approach to component testing is to prepare and automate test cases before coding. This is called a test-first approach or test –driven development. This approach is highly iterative and is based on cycles of developing test cases, then building and integrating small pieces of code, and executing the component tests correcting any issues and iterating until they pass.

Test basis(reference) for component testing are: Component requirements, design, code.

Typical test objects tested during component testing are: Components, Programs, Database modules.

2.2.2 Integration Testing

Integration testing tests interfaces between components, interactions with different parts of a system, such as the operating system, file system and hardware, and interfaces between systems.

There may be more than one level of integration testing and it may be carried out on test objects of varying size as follows:

  • Component integration testing tests the interactions between software components and is done after component testing.
  • System integration testing tests the interactions between different systems or between hardware and software and may be done after system testing.

The greater the scope of integration, the more difficult it becomes to isolate defects to a specific component or system, which may lead to increased risk and additional time for troubleshooting.

Systematic integration strategies may be based on the system architecture (such as top-down and bottom-up), functional tasks, transaction processing sequences, or some other aspect of the system or components. In order to ease fault isolation and detect defects early, integration should normally be incremental rather than “big bang”.

Testing of specific non-functional characteristics such as performance may be included in integration testing as well as function testing.

At each stage of integration, testers concentrate solely on the integration itself. For example, if they are integrating module A with module B they are interested in testing the communication between the modules, not the functionality of the individual module as that was done during component testing. Both function and structural approaches may be used.

Ideally, testers should understand the architecture and influence integration planning. If integration tests are planned before components or systems are built, those components can be built in the order required for most efficient testing.

Test basis(reference) for integration testing are: Software and system design, Architecture, Use cases, Workflows

Typical test objects tested during integration testing are: Subsystems, Infrastructure, Database implementation, Interfaces, System configuration, Configuration data

2.2.3 System Testing

System testing is concerned with the behavior of a whole system or product.

In system testing, the test environment should correspond to the final target or production environment as much as possible in order to minimize the risk of environment-specific failures not being found in testing.

System testing may include tests based on risks and/or on requirements specifications, business processes, use cases, or other high level test descriptions or modules of system behavior, interactions with the operating system, and system resources.

System testing should investigate functional and non functional requirements of the system, and data quality characteristics. Testers also need to deal with incomplete or undocumented requirements. System testing of functional requirements starts by using the most appropriate specification-based (black-box) techniques for the aspect of the system to be tested. For example, a decision table may be created for combinations of effects described in business rules. Structure-based techniques (white-box) may then be used to assess the thoroughness of the testing with respect to a structural element, such as menu structure or web page navigation. An independent test team often carries out system testing.

Test basis(reference) for System testing are: System and software requirement specification, Use cases, Functional specification, Risk analysis reports

Typical test objects tested during integration testing are: System, user and operation manuals, System configuration and configuration data

2.2.4 Acceptance Testing

Acceptance testing is often the responsibility of the customers or users of a system; other stakeholders may be involved as well.

The goal in acceptance testing is to establish confidence in the system, parts of the system or specific non-functional characteristics of the system. Finding defects is not the main focus in acceptance testing. Acceptance testing may assess the system’s readiness for deployment and use, although it is not necessarily the final level of testing.

Typical forms of acceptance testing include the following:

User acceptance testing

Typically verifies the fitness for use of the system by business users.

Operational (acceptance) testing

The acceptance of the system by the system administrators, including:

  • Maintenance tasks
  • Data load and migration tasks
  • Testing of backup/restore
  • Disaster recovery
  • User management
  • Periodic checks of security vulnerabilities

Contract and regulation acceptance testing

Contract acceptance testing is performed against a contract’s acceptance criteria for producing custom-developed software. Acceptance criteria should be defined when the parties agree to the contract. Regulation acceptance testing is performed against any regulations that must be adhered to, such as government, legal or safety regulations.

Alpha and beta (field) testing

Developers of market, or COTS, software often went to get feedback from potential or existing customers in their market before the software product is put up for sale commercially. Alpha testing is performed at the developing organization’s site but not by the developing team. Beta testing, or field-testing, is performed by customers or potential customers at their own locations.

Organization may use other terms as well, such as factory acceptance testing and site acceptance testing for systems that are tested before and after being moved to a customer’s site.

Test basis(reference) for Acceptance testing are: Use cases, User requirements, System requirements, Business processes, Risk analysis reports

Typical test objects tested during Acceptance testing are: Forms, Reports, User procedures, Business processes, Operational and maintenance processes

2.3 Test Types

A group of test activities can be aimed at verifying the software system (or part of a system) based on a specific reason or target for testing.

A test type is focused on a particular test objective, which could be any of the following:

  • A function to be performed by the software
  • A non-functional quality characteristic, such as reliability and usability
  • The structure or architecture of the software or system
  • Change related, i.e., confirming that defects have been fixed (confirmation testing) and looking for unintended changes (regression testing)

A model of the software may be developed and/or used in structural testing (e.g., a control flow model or menu structure model), non-function testing, (e.g., performance model, usability model security threat modeling), and function testing (e.g., a process flow model, a state transition model or a plain language specification).

2.3.1 Testing of Function (Functional Testing)

The functions that a system, subsystem or component are to perform may be described in work products such as a requirements specification, use cases, or a function specification, or they may be undocumented. The functions are “what the system does.

Functional tests are based on functions and features (described in documents or understood by the testers) and their interoperability with specific systems, and may be performed at all test levels (e.g., tests for components may be based on a component specification).

Specification-based techniques may be used to derive test conditions and test cases from the functionality of the software or system (see Chapter4). Function testing considers the external behavior of the software (black box testing).

A type of functional testing, security testing, investigates the functions (e.g., a firewall ) relating to detection of threats, such as viruses, from malicious outsiders. Another type of function testing , interoperability testing, evaluates the capability of the software product to interact with one or more specified components or systems.

2.3.2 Testing of Non-Functional Software Characteristics (Non-functional Testing)

Non-functional testing includes, but is not limited to, performance testing, load testing, stress testing, usability testing, maintainability testing, reliability testing, and portability testing, it is the testing of “how” the system works.

Non-function testing may be performed at all test levels. The term non-function testing describes the tests required to measure characteristics of systems and software that can be quantified on a varying scale, such as response times for performance testing. These tests can be referenced to a quality model such as the one defined in ‘Software Engineering-Software Product Quality’ (ISO 1926). Non-function testing considers the external behavior of the software and in most cases uses black-box test design techniques to accomplish that.

2.3.3 Testing of Software Structure/Architecture (Structural Testing)

Structural (white-box) testing may be performed at all test levels. Structural techniques are best used after specification-based techniques, in order to help measure the thoroughness of testing through assessment of coverage of a type of structure.

Coverage is the extent that a structure has been exercised by a test suite, expressed as a percentage of the items being covered. If coverage is not 100%, then more tests may be designed to test those items that were missed to increase coverage. Coverage techniques are covered in Chapter4.

At all test levels, but especially in component testing and component integration testing. Tools can be used to measure the code coverage of elements, such as statements or decisions. Structural testing may be based on the architecture of the system, such as a calling hierarchy.

Structural testing approaches can also be applied at a system, system integration or acceptance testing levels (e.g., to business models or menu structures).

2.3.4 Testing Related to Changes: Re-testing and Regression Testing

After a defect is detected and fixed, the software should be re-tested to confirm that the original defect has been successfully removed. This is called confirmation. Dubbing (locating and fixing a defect) is a development activity, not a testing activity.

Regression testing is the repeated testing of an already tested program. after modification, to discover any defects introduced or uncovered as a result of the change(s). These defects may be either in the software being tested, or in another related or unrelated software component. It is performed when the software, or its environment, is changed. The extent of regression testing is based on the risk of not finding defects in software that was working previously.

Tests should be repeatable if they are to be used for conformation testing and to assist regression testing.

Regression testing may be performed at all test levels, and includes functional, non-functional and structural testing. Regression test suites are run many times and generally evolve slowly, so regression testing is a strong candidate for automation

2.4 Maintenance Testing

Maintenance testing is a testing of the existing operational systems.

Once deployed, a software system is often in service for years or decades. During this time the system, its configuration data, or its environment are often corrected, changed or extended. The planning of releases in advance is crucial for successful maintenance testing. A distinction has to be made between planned releases and hot fixes. Maintenance testing is done on an existing operational system, and is triggered by modifications, migration, or retirement, of the software or system.

Modifications include planned enhancement changes, corrective and emergency changes, and changes of environment, such as planned operating system or database upgrades, planned upgrade of Commercial-Off-The-Shelf software, or patches to correct newly exposed or discovered vulnerabilities of the operating system.

Maintenance testing for migration (ex: form one platform to another) should include operational tests of the new environment as well as of the changed software. Migration testing (conversion testing) is also needed when data from another application will be migrated into the system being maintained.

Maintenance testing for the retirement of a system may include the testing of data migration or archiving if long data-retention periods are required.

In addition to testing what has been changed, maintenance testing includes regression testing to parts of the system that have not been changed. The scope of maintenance testing is related to the risk of the change, the size of the existing system and to the size of the change. Depending on the changes, maintenance testing may be done at any or all test levels and for any or all test types. Determining how the existing system may be affected by changes is called impact analysis, and is used to help decide how much regression testing to do. The impact analysis, may be used to determine the regression test suite.

Maintenance testing can be difficult if specifications are out of data or missing, or testers with domain knowledge are not available.


Practice Test on Chapter 2 : Testing Throughout the software Life cycle