Hubbry Logo
Software testingSoftware testingMain
Open search
Software testing
Community hub
Software testing
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Contribute something
Software testing
Software testing
from Wikipedia

TestingCup – Polish Championship in Software Testing, Katowice, May 2016

Software testing is the act of checking whether software satisfies expectations.

Software testing can provide objective, independent information about the quality of software and the risk of its failure to a user or sponsor.[1]

Software testing can determine the correctness of software for specific scenarios but cannot determine correctness for all scenarios.[2][3] It cannot find all bugs.

Based on the criteria for measuring correctness from an oracle, software testing employs principles and mechanisms that might recognize a problem. Examples of oracles include specifications, contracts,[4] comparable products, past versions of the same product, inferences about intended or expected purpose, user or customer expectations, relevant standards, and applicable laws.

Software testing is often dynamic in nature; running the software to verify actual output matches expected. It can also be static in nature; reviewing code and its associated documentation.

Software testing is often used to answer the question: Does the software do what it is supposed to do and what it needs to do?

Information learned from software testing may be used to improve the process by which software is developed.[5]: 41–43 

A commonly suggested approach to automated testing is the "test pyramid," wherein most of the tests are unit tests, followed by a smaller set of integration tests and finally a few end-to-end (e2e) tests.[6][7][8]

Economics

[edit]

A study conducted by NIST in 2002 reported that software bugs cost the U.S. economy $59.5 billion annually. More than a third of this cost could be avoided if better software testing was performed.[9][dubiousdiscuss]

Outsourcing software testing because of costs is very common, with China, the Philippines, and India being preferred destinations.[10]

History

[edit]

Glenford J. Myers initially introduced the separation of debugging from testing in 1979.[11] Although his attention was on breakage testing ("A successful test case is one that detects an as-yet undiscovered error."[11]: 16 ), it illustrated the desire of the software engineering community to separate fundamental development activities, such as debugging, from that of verification. Software testing typically includes handling software bugs – a defect in the code that causes an undesirable result.[12]: 31  Bugs generally slow testing progress and involve programmer assistance to debug and fix.

Not all defects cause a failure. For example, a defect in dead code will not be considered a failure.

A defect that does not cause failure at one point in time may lead to failure later due to environmental changes. Examples of environment change include running on new computer hardware, changes in data, and interacting with different software.[13]

Goals

[edit]

Software testing is typically goal driven.

Finding bugs

[edit]

Software testing typically includes handling software bugs – a defect in the code that causes an undesirable result.[12]: 31  Bugs generally slow testing progress and involve programmer assistance to debug and fix.

Not all defects cause a failure. For example, a defect in dead code will not be considered a failure.

A defect that does not cause failure at one point in time may lead to failure later due to environmental changes. Examples of environment change include running on new computer hardware, changes in data, and interacting with different software.[14]

A single defect may result in multiple failure symptoms.

Ensuring requirements are satisfied

[edit]

Software testing may involve a Requirements gap – omission from the design for a requirement.[5]: 426  Requirement gaps can often be non-functional requirements such as testability, scalability, maintainability, performance, and security.

Code coverage

[edit]

A fundamental limitation of software testing is that testing under all combinations of inputs and preconditions (initial state) is not feasible, even with a simple product.[3]: 17–18 [15] Defects that manifest in unusual conditions are difficult to find in testing. Also, non-functional dimensions of quality (how it is supposed to be versus what it is supposed to do) – usability, scalability, performance, compatibility, and reliability – can be subjective; something that constitutes sufficient value to one person may not to another.

Although testing for every possible input is not feasible, testing can use combinatorics to maximize coverage while minimizing tests.[16]

Categories

[edit]

Testing can be categorized many ways.[17]

Automated testing

[edit]
Test automation is the use of software (separate from the software being tested) for controlling the execution of tests and comparing actual outcome with predicted.[18] Test automation supports testing the system under test (SUT) without manual interaction which can lead to faster test execution and testing more often. Test automation is key aspect of continuous testing and often for continuous integration and continuous delivery (CI/CD).[19]

Levels

[edit]

Software testing can be categorized into levels based on how much of the software system is the focus of a test.[20][21][22][23]

Unit testing

[edit]
Unit testing, a.k.a. component or module testing, is a form of software testing by which isolated source code is tested to validate expected behavior.[24]

Integration testing

[edit]
Integration testing is a form of software testing in which multiple software components, modules, or services are tested together to verify they work as expected when combined. The focus is on testing the interactions and data exchange between integrated parts, rather than testing components in isolation.

System testing

[edit]
System testing, a.k.a. end-to-end (E2E) testing, is testing conducted on a complete software system.

Static, dynamic, and passive testing

[edit]

There are many approaches to software testing. Reviews, walkthroughs, or inspections are referred to as static testing, whereas executing programmed code with a given set of test cases is referred to as dynamic testing.[25][26]

Static testing is often implicit, like proofreading, plus when programming tools/text editors check source code structure or compilers (pre-compilers) check syntax and data flow as static program analysis. Dynamic testing takes place when the program itself is run. Dynamic testing may begin before the program is 100% complete in order to test particular sections of code and are applied to discrete functions or modules.[25][26] Typical techniques for these are either using stubs/drivers or execution from a debugger environment.[26]

Static testing involves verification, whereas dynamic testing also involves validation.[26]

Passive testing means verifying the system's behavior without any interaction with the software product. Contrary to active testing, testers do not provide any test data but look at system logs and traces. They mine for patterns and specific behavior in order to make some kind of decisions.[27] This is related to offline runtime verification and log analysis.

Exploratory

[edit]
Exploratory testing is an approach to software testing that is concisely described as simultaneous learning, test design and test execution. Cem Kaner, who coined the term in 1984,[28] defines exploratory testing as "a style of software testing that emphasizes the personal freedom and responsibility of the individual tester to continually optimize the quality of his/her work by treating test-related learning, test design, test execution, and test result interpretation as mutually supportive activities that run in parallel throughout the project."[29]

Preset testing vs adaptive testing

[edit]

The type of testing strategy to be performed depends on whether the tests to be applied to the IUT should be decided before the testing plan starts to be executed (preset testing[30]) or whether each input to be applied to the IUT can be dynamically dependent on the outputs obtained during the application of the previous tests (adaptive testing[31][32]).

Black/white box

[edit]

Software testing can often be divided into white-box and black-box. These two approaches are used to describe the point of view that the tester takes when designing test cases. A hybrid approach called grey-box that includes aspects of both boxes may also be applied to software testing methodology.[33][34]

White-box testing

[edit]
White Box Testing Diagram
White box testing diagram

White-box testing (also known as clear box testing, glass box testing, transparent box testing, and structural testing) verifies the internal structures or workings of a program, as opposed to the functionality exposed to the end-user. In white-box testing, an internal perspective of the system (the source code), as well as programming skills are used to design test cases. The tester chooses inputs to exercise paths through the code and determines the appropriate outputs.[33][34] This is analogous to testing nodes in a circuit, e.g., in-circuit testing (ICT).

While white-box testing can be applied at the unit, integration, and system levels of the software testing process, it is usually done at the unit level.[35] It can test paths within a unit, paths between units during integration, and between subsystems during a system–level test. Though this method of test design can uncover many errors or problems, it might not detect unimplemented parts of the specification or missing requirements.

Techniques used in white-box testing include:[34][36]

  • API testing – testing of the application using public and private APIs (application programming interfaces)
  • Code coverage – creating tests to satisfy some criteria of code coverage (for example, the test designer can create tests to cause all statements in the program to be executed at least once)
  • Fault injection methods – intentionally introducing faults to gauge the efficacy of testing strategies
  • Mutation testing methods
  • Static testing methods

Code coverage tools can evaluate the completeness of a test suite that was created with any method, including black-box testing. This allows the software team to examine parts of a system that are rarely tested and ensures that the most important function points have been tested.[37] Code coverage as a software metric can be reported as a percentage for:[33][37][38]

  • Function coverage, which reports on functions executed
  • Statement coverage, which reports on the number of lines executed to complete the test
  • Decision coverage, which reports on whether both the True and the False branch of a given test has been executed

100% statement coverage ensures that all code paths or branches (in terms of control flow) are executed at least once. This is helpful in ensuring correct functionality, but not sufficient since the same code may process different inputs correctly or incorrectly.[39]

Black-box testing

[edit]
Black box diagram

Black-box testing (also known as functional testing) describes designing test cases without knowledge of the implementation, without reading the source code. The testers are only aware of what the software is supposed to do, not how it does it.[40] Black-box testing methods include: equivalence partitioning, boundary value analysis, all-pairs testing, state transition tables, decision table testing, fuzz testing, model-based testing, use case testing, exploratory testing, and specification-based testing.[33][34][38]

Specification-based testing aims to test the functionality of software according to the applicable requirements.[41] This level of testing usually requires thorough test cases to be provided to the tester, who then can simply verify that for a given input, the output value (or behavior), either "is" or "is not" the same as the expected value specified in the test case. Test cases are built around specifications and requirements, i.e., what the application is supposed to do. It uses external descriptions of the software, including specifications, requirements, and designs, to derive test cases. These tests can be functional or non-functional, though usually functional. Specification-based testing may be necessary to assure correct functionality, but it is insufficient to guard against complex or high-risk situations.[42]

Black box testing can be used to any level of testing although usually not at the unit level.[35]

Component interface testing

Component interface testing is a variation of black-box testing, with the focus on the data values beyond just the related actions of a subsystem component.[43] The practice of component interface testing can be used to check the handling of data passed between various units, or subsystem components, beyond full integration testing between those units.[44][45] The data being passed can be considered as "message packets" and the range or data types can be checked for data generated from one unit and tested for validity before being passed into another unit. One option for interface testing is to keep a separate log file of data items being passed, often with a timestamp logged to allow analysis of thousands of cases of data passed between units for days or weeks. Tests can include checking the handling of some extreme data values while other interface variables are passed as normal values.[44] Unusual data values in an interface can help explain unexpected performance in the next unit.

Visual testing
[edit]

The aim of visual testing is to provide developers with the ability to examine what was happening at the point of software failure by presenting the data in such a way that the developer can easily find the information he or she requires, and the information is expressed clearly.[46][47]

At the core of visual testing is the idea that showing someone a problem (or a test failure), rather than just describing it, greatly increases clarity and understanding. Visual testing, therefore, requires the recording of the entire test process – capturing everything that occurs on the test system in video format. Output videos are supplemented by real-time tester input via picture-in-a-picture webcam and audio commentary from microphones.

Visual testing provides a number of advantages. The quality of communication is increased drastically because testers can show the problem (and the events leading up to it) to the developer as opposed to just describing it, and the need to replicate test failures will cease to exist in many cases. The developer will have all the evidence he or she requires of a test failure and can instead focus on the cause of the fault and how it should be fixed.

Ad hoc testing and exploratory testing are important methodologies for checking software integrity because they require less preparation time to implement, while the important bugs can be found quickly.[48] In ad hoc testing, where testing takes place in an improvised impromptu way, the ability of the tester(s) to base testing off documented methods and then improvise variations of those tests can result in a more rigorous examination of defect fixes.[48] However, unless strict documentation of the procedures is maintained, one of the limits of ad hoc testing is lack of repeatability.[48]

Grey-box testing

[edit]

Grey-box testing (American spelling: gray-box testing) involves using knowledge of internal data structures and algorithms for purposes of designing tests while executing those tests at the user, or black-box level. The tester will often have access to both "the source code and the executable binary."[49] Grey-box testing may also include reverse engineering (using dynamic code analysis) to determine, for instance, boundary values or error messages.[49] Manipulating input data and formatting output do not qualify as grey-box, as the input and output are clearly outside of the "black box" that we are calling the system under test. This distinction is particularly important when conducting integration testing between two modules of code written by two different developers, where only the interfaces are exposed for the test.

By knowing the underlying concepts of how the software works, the tester makes better-informed testing choices while testing the software from outside. Typically, a grey-box tester will be permitted to set up an isolated testing environment with activities, such as seeding a database. The tester can observe the state of the product being tested after performing certain actions such as executing SQL statements against the database and then executing queries to ensure that the expected changes have been reflected. Grey-box testing implements intelligent test scenarios based on limited information. This will particularly apply to data type handling, exception handling, and so on.[50]

With the concept of grey-box testing, this "arbitrary distinction" between black- and white-box testing has faded somewhat.[35]

Installation testing

[edit]

Most software systems have installation procedures that are needed before they can be used for their main purpose. Testing these procedures to achieve an installed software system that may be used is known as installation testing.[51]: 139  These procedures may involve full or partial upgrades, and install/uninstall processes.

  • A user must select a variety of options.
  • Dependent files and libraries must be allocated, loaded or located.
  • Valid hardware configurations must be present.
  • Software systems may need connectivity to connect to other software systems.[51]: 145 

Compatibility testing

[edit]

A common cause of software failure (real or perceived) is a lack of its compatibility with other application software, operating systems (or operating system versions, old or new), or target environments that differ greatly from the original (such as a terminal or GUI application intended to be run on the desktop now being required to become a Web application, which must render in a Web browser). For example, in the case of a lack of backward compatibility, this can occur because the programmers develop and test software only on the latest version of the target environment, which not all users may be running. This results in the unintended consequence that the latest work may not function on earlier versions of the target environment, or on older hardware that earlier versions of the target environment were capable of using. Sometimes such issues can be fixed by proactively abstracting operating system functionality into a separate program module or library.

Smoke and sanity testing

[edit]

Sanity testing determines whether it is reasonable to proceed with further testing.

Smoke testing consists of minimal attempts to operate the software, designed to determine whether there are any basic problems that will prevent it from working at all. Such tests can be used as build verification test.

Regression testing

[edit]

Regression testing focuses on finding defects after a major code change has occurred. Specifically, it seeks to uncover software regressions, as degraded or lost features, including old bugs that have come back. Such regressions occur whenever software functionality that was previously working correctly, stops working as intended. Typically, regressions occur as an unintended consequence of program changes, when the newly developed part of the software collides with the previously existing code. Regression testing is typically the largest test effort in commercial software development,[52] due to checking numerous details in prior software features, and even new software can be developed while using some old test cases to test parts of the new design to ensure prior functionality is still supported.

Common methods of regression testing include re-running previous sets of test cases and checking whether previously fixed faults have re-emerged. The depth of testing depends on the phase in the release process and the risk of the added features. They can either be complete, for changes added late in the release or deemed to be risky, or be very shallow, consisting of positive tests on each feature, if the changes are early in the release or deemed to be of low risk.

Acceptance testing

[edit]

Acceptance testing is system-level testing to ensure the software meets customer expectations.[53][54][55][56]

Acceptance testing may be performed as part of the hand-off process between any two phases of development.[citation needed]

Tests are frequently grouped into these levels by where they are performed in the software development process, or by the level of specificity of the test.[56]

  • User acceptance testing (UAT)
  • Operational acceptance testing (OAT)
  • Contractual and regulatory acceptance testing
  • Alpha and beta testing

Sometimes, UAT is performed by the customer, in their environment and on their own hardware.

OAT is used to conduct operational readiness (pre-release) of a product, service or system as part of a quality management system. OAT is a common type of non-functional software testing, used mainly in software development and software maintenance projects. This type of testing focuses on the operational readiness of the system to be supported, or to become part of the production environment. Hence, it is also known as operational readiness testing (ORT) or operations readiness and assurance (OR&A) testing. Functional testing within OAT is limited to those tests that are required to verify the non-functional aspects of the system.

In addition, the software testing should ensure that the portability of the system, as well as working as expected, does not also damage or partially corrupt its operating environment or cause other processes within that environment to become inoperative.[57]

Contractual acceptance testing is performed based on the contract's acceptance criteria defined during the agreement of the contract, while regulatory acceptance testing is performed based on the relevant regulations to the software product. Both of these two tests can be performed by users or independent testers. Regulation acceptance testing sometimes involves the regulatory agencies auditing the test results.[56]

Alpha testing

[edit]

Alpha testing is simulated or actual operational testing by potential users/customers or an independent test team at the developers' site. Alpha testing is often employed for off-the-shelf software as a form of internal acceptance testing before the software goes to beta testing.[58]

Beta testing

[edit]

Beta testing comes after alpha testing and can be considered a form of external user acceptance testing. Versions of the software, known as beta versions, are released to a limited audience outside of the programming team known as beta testers. The software is released to groups of people so that further testing can ensure the product has few faults or bugs. Beta versions can be made available to the open public to increase the feedback field to a maximal number of future users and to deliver value earlier, for an extended or even indefinite period of time (perpetual beta).[59]

Functional vs non-functional testing

[edit]

Functional testing refers to activities that verify a specific action or function of the code. These are usually found in the code requirements documentation, although some development methodologies work from use cases or user stories. Functional tests tend to answer the question of "can the user do this" or "does this particular feature work."

Non-functional testing refers to aspects of the software that may not be related to a specific function or user action, such as scalability or other performance, behavior under certain constraints, or security. Testing will determine the breaking point, the point at which extremes of scalability or performance leads to unstable execution. Non-functional requirements tend to be those that reflect the quality of the product, particularly in the context of the suitability perspective of its users.

Continuous testing

[edit]

Continuous testing is the process of executing automated tests as part of the software delivery pipeline to obtain immediate feedback on the business risks associated with a software release candidate.[60][61] Continuous testing includes the validation of both functional requirements and non-functional requirements; the scope of testing extends from validating bottom-up requirements or user stories to assessing the system requirements associated with overarching business goals.[62][63]

Destructive testing

[edit]

Destructive testing attempts to cause the software or a sub-system to fail. It verifies that the software functions properly even when it receives invalid or unexpected inputs, thereby establishing the robustness of input validation and error-management routines.[citation needed] Software fault injection, in the form of fuzzing, is an example of failure testing. Various commercial non-functional testing tools are linked from the software fault injection page; there are also numerous open-source and free software tools available that perform destructive testing.

Software performance testing

[edit]

Performance testing is generally executed to determine how a system or sub-system performs in terms of responsiveness and stability under a particular workload. It can also serve to investigate, measure, validate or verify other quality attributes of the system, such as scalability, reliability and resource usage.

Load testing is primarily concerned with testing that the system can continue to operate under a specific load, whether that be large quantities of data or a large number of users. This is generally referred to as software scalability. The related load testing activity of when performed as a non-functional activity is often referred to as endurance testing. Volume testing is a way to test software functions even when certain components (for example a file or database) increase radically in size. Stress testing is a way to test reliability under unexpected or rare workloads. Stability testing (often referred to as load or endurance testing) checks to see if the software can continuously function well in or above an acceptable period.

There is little agreement on what the specific goals of performance testing are. The terms load testing, performance testing, scalability testing, and volume testing, are often used interchangeably.

Real-time software systems have strict timing constraints. To test if timing constraints are met, real-time testing is used.

Usability testing

[edit]

Usability testing is to check if the user interface is easy to use and understand. It is concerned mainly with the use of the application. This is not a kind of testing that can be automated; actual human users are needed, being monitored by skilled UI designers. Usability testing can use structured models to check how well an interface works. The Stanton, Theofanos, and Joshi (2015) model looks at user experience, and the Al-Sharafat and Qadoumi (2016) model is for expert evaluation, helping to assess usability in digital applications.[64]

Accessibility testing

[edit]

Accessibility testing is done to ensure that the software is accessible to persons with disabilities. Some of the common web accessibility tests are

  • Ensuring that the color contrast between the font and the background color is appropriate
  • Font Size
  • Alternate Texts for multimedia content
  • Ability to use the system using the computer keyboard in addition to the mouse.

Common standards for compliance

[edit]

Security testing

[edit]

Security testing is essential for software that processes confidential data to prevent system intrusion by hackers.

The International Organization for Standardization (ISO) defines this as a "type of testing conducted to evaluate the degree to which a test item, and associated data and information, are protected so that unauthorised persons or systems cannot use, read or modify them, and authorized persons or systems are not denied access to them."[65]

Internationalization and localization

[edit]

Testing for internationalization and localization validates that the software can be used with different languages and geographic regions. The process of pseudolocalization is used to test the ability of an application to be translated to another language, and make it easier to identify when the localization process may introduce new bugs into the product.

Globalization testing verifies that the software is adapted for a new culture, such as different currencies or time zones.[66]

Actual translation to human languages must be tested, too. Possible localization and globalization failures include:

  • Some messages may be untranslated.
  • Software is often localized by translating a list of strings out of context, and the translator may choose the wrong translation for an ambiguous source string.
  • Technical terminology may become inconsistent, if the project is translated by several people without proper coordination or if the translator is imprudent.
  • Literal word-for-word translations may sound inappropriate, artificial or too technical in the target language.
  • Untranslated messages in the original language may be hard coded in the source code, and thus untranslatable.
  • Some messages may be created automatically at run time and the resulting string may be ungrammatical, functionally incorrect, misleading or confusing.
  • Software may use a keyboard shortcut that has no function on the source language's keyboard layout, but is used for typing characters in the layout of the target language.
  • Software may lack support for the character encoding of the target language.
  • Fonts and font sizes that are appropriate in the source language may be inappropriate in the target language; for example, CJK characters may become unreadable if the font is too small.
  • A string in the target language may be longer than the software can handle. This may make the string partly invisible to the user or cause the software to crash or malfunction.
  • Software may lack proper support for reading or writing bi-directional text.
  • Software may display images with text that was not localized.
  • Localized operating systems may have differently named system configuration files and environment variables and different formats for date and currency.

Development testing

[edit]

Development testing is a software development process that involves the synchronized application of a broad spectrum of defect prevention and detection strategies in order to reduce software development risks, time, and costs. It is performed by the software developer or engineer during the construction phase of the software development lifecycle. Development testing aims to eliminate construction errors before code is promoted to other testing; this strategy is intended to increase the quality of the resulting software as well as the efficiency of the overall development process.

Depending on the organization's expectations for software development, development testing might include static code analysis, data flow analysis, metrics analysis, peer code reviews, unit testing, code coverage analysis, traceability, and other software testing practices.

A/B testing

[edit]

A/B testing is a method of running a controlled experiment to determine if a proposed change is more effective than the current approach. Customers are routed to either a current version (control) of a feature, or to a modified version (treatment) and data is collected to determine which version is better at achieving the desired outcome.

Concurrent testing

[edit]

Concurrent or concurrency testing assesses the behaviour and performance of software and systems that use concurrent computing, generally under normal usage conditions. Typical problems this type of testing will expose are deadlocks, race conditions and problems with shared memory/resource handling.

Conformance testing or type testing

[edit]

In software testing, conformance testing verifies that a product performs according to its specified standards. Compilers, for instance, are extensively tested to determine whether they meet the recognized standard for that language.

Output comparison testing

[edit]

Creating a display expected output, whether as data comparison of text or screenshots of the UI,[3]: 195  is sometimes called snapshot testing or Golden Master Testing unlike many other forms of testing, this cannot detect failures automatically and instead requires that a human evaluate the output for inconsistencies.

Property testing

[edit]

Property testing is a testing technique where, instead of asserting that specific inputs produce specific expected outputs, the practitioner randomly generates many inputs, runs the program on all of them, and asserts the truth of some "property" that should be true for every pair of input and output. For example, every output from a serialization function should be accepted by the corresponding deserialization function, and every output from a sort function should be a monotonically increasing list containing exactly the same elements as its input.

Property testing libraries allow the user to control the strategy by which random inputs are constructed, to ensure coverage of degenerate cases, or inputs featuring specific patterns that are needed to fully exercise aspects of the implementation under test.

Property testing is also sometimes known as "generative testing" or "QuickCheck testing" since it was introduced and popularized by the Haskell library QuickCheck.[67]

Metamorphic testing

[edit]

Metamorphic testing (MT) is a property-based software testing technique, which can be an effective approach for addressing the test oracle problem and test case generation problem. The test oracle problem is the difficulty of determining the expected outcomes of selected test cases or to determine whether the actual outputs agree with the expected outcomes.

VCR testing

[edit]

VCR testing, also known as "playback testing" or "record/replay" testing, is a testing technique for increasing the reliability and speed of regression tests that involve a component that is slow or unreliable to communicate with, often a third-party API outside of the tester's control. It involves making a recording ("cassette") of the system's interactions with the external component, and then replaying the recorded interactions as a substitute for communicating with the external system on subsequent runs of the test.

The technique was popularized in web development by the Ruby library vcr.

Teamwork

[edit]

Roles

[edit]

In an organization, testers may be in a separate team from the rest of the software development team or they may be integrated into one team. Software testing can also be performed by non-dedicated software testers.

In the 1980s, the term software tester started to be used to denote a separate profession.

Notable software testing roles and titles include:[68] test manager, test lead, test analyst, test designer, tester, automation developer, and test administrator.[69]

Processes

[edit]

Organizations that develop software, perform testing differently, but there are common patterns.[2]

Waterfall development

[edit]

In waterfall development, testing is generally performed after the code is completed, but before the product is shipped to the customer.[70] This practice often results in the testing phase being used as a project buffer to compensate for project delays, thereby compromising the time devoted to testing.[11]: 145–146 

Some contend that the waterfall process allows for testing to start when the development project starts and to be a continuous process until the project finishes.[71]

Agile development

[edit]

Agile software development commonly involves testing while the code is being written and organizing teams with both programmers and testers and with team members performing both programming and testing.

One agile practice, test-driven software development (TDD), is a way of unit testing such that unit-level testing is performed while writing the product code.[72] Test code is updated as new features are added and failure conditions are discovered (bugs fixed). Commonly, the unit test code is maintained with the project code, integrated in the build process, and run on each build and as part of regression testing. Goals of this continuous integration is to support development and reduce defects.[73][72]

Even in organizations that separate teams by programming and testing functions, many often have the programmers perform unit testing.[74]

Sample process

[edit]

The sample below is common for waterfall development. The same activities are commonly found in other development models, but might be described differently.

  • Requirements analysis: testing should begin in the requirements phase of the software development life cycle. During the design phase, testers work to determine what aspects of a design are testable and with what parameters those tests work.
  • Test planning: test strategy, test plan, testbed creation. Since many activities will be carried out during testing, a plan is needed.
  • Test development: test procedures, test scenarios, test cases, test datasets, test scripts to use in testing software.
  • Test execution: testers execute the software based on the plans and test documents then report any errors found to the development team. This part could be complex when running tests with a lack of programming knowledge.
  • Test reporting: once testing is completed, testers generate metrics and make final reports on their test effort and whether the software tested is ready for release.
  • Test result analysis: or defect analysis, is done by the development team usually along with the client, in order to decide what defects should be assigned, fixed, rejected (i.e. found software working properly) or deferred to be dealt with later.
  • Defect retesting: once a defect has been dealt with by the development team, it is retested by the testing team.
  • Regression testing: it is common to have a small test program built of a subset of tests, for each integration of new, modified, or fixed software, in order to ensure that the latest delivery has not ruined anything and that the software product as a whole is still working correctly.
  • Test closure: once the test meets the exit criteria, the activities such as capturing the key outputs, lessons learned, results, logs, documents related to the project are archived and used as a reference for future projects.

Quality

[edit]

Software verification and validation

[edit]

Software testing is used in association with verification and validation:[75]

  • Verification: Have we built the software right? (i.e., does it implement the requirements).
  • Validation: Have we built the right software? (i.e., do the deliverables satisfy the customer).

The terms verification and validation are commonly used interchangeably in the industry; it is also common to see these two terms defined with contradictory definitions. According to the IEEE Standard Glossary of Software Engineering Terminology:[12]: 80–81 

Verification is the process of evaluating a system or component to determine whether the products of a given development phase satisfy the conditions imposed at the start of that phase.
Validation is the process of evaluating a system or component during or at the end of the development process to determine whether it satisfies specified requirements.

And, according to the ISO 9000 standard:

Verification is confirmation by examination and through provision of objective evidence that specified requirements have been fulfilled.
Validation is confirmation by examination and through provision of objective evidence that the requirements for a specific intended use or application have been fulfilled.

The contradiction is caused by the use of the concepts of requirements and specified requirements but with different meanings.

In the case of IEEE standards, the specified requirements, mentioned in the definition of validation, are the set of problems, needs and wants of the stakeholders that the software must solve and satisfy. Such requirements are documented in a Software Requirements Specification (SRS). And, the products mentioned in the definition of verification, are the output artifacts of every phase of the software development process. These products are, in fact, specifications such as Architectural Design Specification, Detailed Design Specification, etc. The SRS is also a specification, but it cannot be verified (at least not in the sense used here, more on this subject below).

But, for the ISO 9000, the specified requirements are the set of specifications, as just mentioned above, that must be verified. A specification, as previously explained, is the product of a software development process phase that receives another specification as input. A specification is verified successfully when it correctly implements its input specification. All the specifications can be verified except the SRS because it is the first one (it can be validated, though). Examples: The Design Specification must implement the SRS; and, the Construction phase artifacts must implement the Design Specification.

So, when these words are defined in common terms, the apparent contradiction disappears.

Both the SRS and the software must be validated. The SRS can be validated statically by consulting with the stakeholders. Nevertheless, running some partial implementation of the software or a prototype of any kind (dynamic testing) and obtaining positive feedback from them, can further increase the certainty that the SRS is correctly formulated. On the other hand, the software, as a final and running product (not its artifacts and documents, including the source code) must be validated dynamically with the stakeholders by executing the software and having them to try it.

Some might argue that, for SRS, the input is the words of stakeholders and, therefore, SRS validation is the same as SRS verification. Thinking this way is not advisable as it only causes more confusion. It is better to think of verification as a process involving a formal and technical input document.

Software quality assurance

[edit]

In some organizations, software testing is part of a software quality assurance (SQA) process.[3]: 347  In SQA, software process specialists and auditors are concerned with the software development process rather than just the artifacts such as documentation, code and systems. They examine and change the software engineering process itself to reduce the number of faults that end up in the delivered software: the so-called defect rate. What constitutes an acceptable defect rate depends on the nature of the software; a flight simulator video game would have much higher defect tolerance than software for an actual airplane. Although there are close links with SQA, testing departments often exist independently, and there may be no SQA function in some companies.

Software testing is an activity to investigate software under test in order to provide quality-related information to stakeholders. By contrast, QA (quality assurance) is the implementation of policies and procedures intended to prevent defects from reaching customers.

Measures

[edit]

Quality measures include such topics as correctness, completeness, security and ISO/IEC 9126 requirements such as capability, reliability, efficiency, portability, maintainability, compatibility, and usability.

There are a number of frequently used software metrics, or measures, which are used to assist in determining the state of the software or the adequacy of the testing.

Artifacts

[edit]

A software testing process can produce several artifacts. The actual artifacts produced are a factor of the software development model used, stakeholder and organisational needs.

Test plan

[edit]

A test plan is a document detailing the approach that will be taken for intended test activities. The plan may include aspects such as objectives, scope, processes and procedures, personnel requirements, and contingency plans.[53] The test plan could come in the form of a single plan that includes all test types (like an acceptance or system test plan) and planning considerations, or it may be issued as a master test plan that provides an overview of more than one detailed test plan (a plan of a plan).[53] A test plan can be, in some cases, part of a wide "test strategy" which documents overall testing approaches, which may itself be a master test plan or even a separate artifact.

Traceability matrix

[edit]
In software development, a traceability matrix (TM)[76]: 244  is a document, usually in the form of a table, used to assist in determining the completeness of a relationship by correlating any two baselined documents using a many-to-many relationship comparison.[76]: 3–22  It is often used with high-level requirements (these often consist of marketing requirements) and detailed requirements of the product to the matching parts of high-level design, detailed design, test plan, and test cases.

Test case

[edit]

A test case normally consists of a unique identifier, requirement references from a design specification, preconditions, events, a series of steps (also known as actions) to follow, input, output, expected result, and the actual result. Clinically defined, a test case is an input and an expected result.[77] This can be as terse as "for condition x your derived result is y", although normally test cases describe in more detail the input scenario and what results might be expected. It can occasionally be a series of steps (but often steps are contained in a separate test procedure that can be exercised against multiple test cases, as a matter of economy) but with one expected result or expected outcome. The optional fields are a test case ID, test step, or order of execution number, related requirement(s), depth, test category, author, and check boxes for whether the test is automatable and has been automated. Larger test cases may also contain prerequisite states or steps, and descriptions. A test case should also contain a place for the actual result. These steps can be stored in a word processor document, spreadsheet, database, or other common repositories. In a database system, you may also be able to see past test results, who generated the results, and what system configuration was used to generate those results. These past results would usually be stored in a separate table.

Test script

[edit]

A test script is a procedure or programming code that replicates user actions. Initially, the term was derived from the product of work created by automated regression test tools. A test case will be a baseline to create test scripts using a tool or a program.

Test suite

[edit]
In software development, a test suite, less commonly known as a validation suite, is a collection of test cases that are intended to be used to test a software program to show that it has some specified set of behaviors.[78] A test suite often contains detailed instructions or goals for each collection of test cases and information on the system configuration to be used during testing. A group of test cases may also contain prerequisite states or steps and descriptions of the following tests.

Test fixture or test data

[edit]

In most cases, multiple sets of values or data are used to test the same functionality of a particular feature. All the test values and changeable environmental components are collected in separate files and stored as test data. It is also useful to provide this data to the client and with the product or a project. There are techniques to generate Test data.

Test harness

[edit]

The software, tools, samples of data input and output, and configurations are all referred to collectively as a test harness.

Test run

[edit]

A test run is a collection of test cases or test suites that the user is executing and comparing the expected with the actual results. Once complete, a report or all executed tests may be generated.

Certifications

[edit]

Several certification programs exist to support the professional aspirations of software testers and quality assurance specialists. A few practitioners argue that the testing field is not ready for certification, as mentioned in the controversy section.

Controversy

[edit]

Some of the major software testing controversies include:

Agile vs. traditional
Should testers learn to work under conditions of uncertainty and constant change or should they aim at process "maturity"? The agile testing movement has received growing popularity since the early 2000s mainly in commercial circles,[79][80] whereas government and military[81] software providers use this methodology but also the traditional test-last models (e.g., in the Waterfall model).[citation needed]
Manual vs. automated testing
Some writers believe that test automation is so expensive relative to its value that it should be used sparingly.[82] The test automation then can be considered as a way to capture and implement the requirements. As a general rule, the larger the system and the greater the complexity, the greater the ROI in test automation. Also, the investment in tools and expertise can be amortized over multiple projects with the right level of knowledge sharing within an organization.
Is the existence of the ISO 29119 software testing standard justified?
Significant opposition has formed out of the ranks of the context-driven school of software testing about the ISO 29119 standard. Professional testing associations, such as the International Society for Software Testing, have attempted to have the standard withdrawn.[83][84]
Some practitioners declare that the testing field is not ready for certification
[85] No certification now offered actually requires the applicant to show their ability to test software. No certification is based on a widely accepted body of knowledge. Certification itself cannot measure an individual's productivity, their skill, or practical knowledge, and cannot guarantee their competence, or professionalism as a tester.[86]
Studies used to show the relative expense of fixing defects
There are opposing views on the applicability of studies used to show the relative expense of fixing defects depending on their introduction and detection. For example:

It is commonly believed that the earlier a defect is found, the cheaper it is to fix it. The following table shows the cost of fixing the defect depending on the stage it was found.[87] For example, if a problem in the requirements is found only post-release, then it would cost 10–100 times more to fix than if it had already been found by the requirements review. With the advent of modern continuous deployment practices and cloud-based services, the cost of re-deployment and maintenance may lessen over time.

Cost to fix a defect Time detected
Requirements Architecture Construction System test Post-release
Time introduced Requirements 5–10× 10× 10–100×
Architecture 10× 15× 25–100×
Construction 10× 10–25×

The data from which this table is extrapolated is scant. Laurent Bossavit says in his analysis:

The "smaller projects" curve turns out to be from only two teams of first-year students, a sample size so small that extrapolating to "smaller projects in general" is totally indefensible. The GTE study does not explain its data, other than to say it came from two projects, one large and one small. The paper cited for the Bell Labs "Safeguard" project specifically disclaims having collected the fine-grained data that Boehm's data points suggest. The IBM study (Fagan's paper) contains claims that seem to contradict Boehm's graph and no numerical results that clearly correspond to his data points.

Boehm doesn't even cite a paper for the TRW data, except when writing for "Making Software" in 2010, and there he cited the original 1976 article. There exists a large study conducted at TRW at the right time for Boehm to cite it, but that paper doesn't contain the sort of data that would support Boehm's claims.[88]

See also

[edit]

References

[edit]

Further reading

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
Software testing is the process consisting of all life cycle activities, both static and dynamic, concerned with planning, preparation, and evaluation of software products and related work products to determine that they satisfy specified requirements, to demonstrate that they are implemented correctly, and to help detect defects. This practice is essential in software engineering to ensure product quality, reduce risks associated with software failure, and verify that the software meets user needs and performs as intended. According to international standards, software testing plays a critical role in quality management by identifying defects early, thereby lowering development costs and enhancing reliability across the software development lifecycle. Software testing encompasses two primary forms: static testing, which involves reviewing software artifacts such as requirements, design documents, and code without execution to find defects and ensure completeness; and dynamic testing, which requires executing the software with test cases to observe behavior and compare it against expected outcomes. These approaches are applied at various test levels, including component (unit) testing to verify individual modules, integration testing to check interactions between components, system testing to evaluate the complete integrated system against requirements, and acceptance testing to confirm readiness for operational use by end-users or stakeholders. The process is guided by fundamental principles, such as testing showing the presence of defects (not their absence), exhaustive testing being impossible, and early testing saving both time and money. In modern software development, testing integrates with methodologies like Agile and DevOps, where continuous testing supports rapid iterations and automated tools enhance efficiency. Despite advancements, challenges persist, including the ad hoc nature of some testing practices and the need for skilled professionals to address complex systems. Overall, software testing remains a cornerstone of delivering high-quality, dependable software products.

Fundamentals

Definition and Scope

Software testing is defined as the process of evaluating a test item by learning about it through experimentation, which includes to some extent the planning, preparation, execution, and reporting of all test activities, test analyses, and test designs. More precisely, it consists of a set of activities aimed at discovering defects and evaluating the quality of software work products, such as code, documentation, or configurations. This process helps verify that the software meets specified requirements and identifies discrepancies between expected and actual behavior. The scope of software testing extends across the entire software development lifecycle (SDLC), from requirements analysis through design, implementation, deployment, and maintenance. It includes static activities, like reviewing requirements or code without execution, and dynamic activities, such as running the software to observe outputs. Within this scope, testing focuses on defect detection to prevent failures, risk reduction by prioritizing high-impact areas, and overall quality improvement by ensuring conformance to standards and user needs. Key concepts in software testing include defects, also known as bugs, which are flaws in a component or system that can cause it to fail to perform its required function, such as an incorrect data definition or logical error. Requirements traceability refers to the ability to link requirements to their origins, related design elements, and test cases, ensuring that all specified needs are addressed and verified. Software testing integrates into the SDLC by aligning test activities with development phases, adapting to models like waterfall or agile to provide continuous validation. Testing is distinct from debugging, as the former identifies and reports failures or defects without resolving them, while the latter involves analyzing and removing the root causes of those issues, typically performed by developers. This separation ensures that testing remains an independent evaluation process, free from bias in fault correction.

Objectives and Benefits

The primary objectives of software testing include detecting defects in the software, verifying that it satisfies specified requirements, and evaluating its overall quality to ensure reliable operation. By systematically executing the software under controlled conditions, testing identifies bugs that could lead to failures, thereby reducing potential risks associated with deployment. Another key goal is achieving adequate code coverage, which measures the extent to which the source code is exercised during testing, helping to confirm that critical parts of the program have been validated. These objectives collectively aim to mitigate risks by uncovering issues early in the development lifecycle, preventing them from escalating into costly production problems. Software testing yields significant benefits, such as enhanced software quality through the identification and resolution of defects, leading to more robust and dependable systems. It improves user satisfaction by delivering products that perform as expected, minimizing unexpected errors that could erode trust. Additionally, testing ensures compliance with industry standards and regulatory requirements, which is essential in sectors like healthcare and finance where failures can have legal or safety implications. By preventing defects from reaching production, it avoids downtime, data loss, and reputational damage, ultimately contributing to more efficient maintenance and longer system longevity. Code coverage serves as a quantitative measure of testing thoroughness, indicating the proportion of the codebase exercised by test cases. Common metrics include statement coverage, which tracks the percentage of executable statements executed; branch coverage, which assesses the execution of decision points like if-else branches; and path coverage, which evaluates the completeness of execution paths through the code. These metrics are calculated using basic formulas, such as for statement coverage: Statement Coverage=(Number of executed statementsTotal number of statements)×100%\text{Statement Coverage} = \left( \frac{\text{Number of executed statements}}{\text{Total number of statements}} \right) \times 100\% Similar formulas apply to branch and path coverage, replacing the numerator and denominator accordingly to reflect executed branches or paths versus totals. While higher coverage correlates with greater confidence in software reliability, it is not a guarantee of defect-free code, as it does not assess the quality of the tests themselves. Achieving comprehensive objectives like high code coverage involves trade-offs between thoroughness and practical constraints such as time and cost. Extensive testing increases defect detection but demands more resources, potentially delaying release schedules or inflating budgets. Developers must balance these factors by prioritizing critical paths and risks, ensuring that testing efforts yield sufficient benefits without exhaustive coverage that may not justify the additional expense.

Historical Development

Early Origins

The origins of software testing trace back to the pre-1950s era, when computing was dominated by hardware-centric approaches drawn from electrical engineering practices. Early electronic computers, such as the ENIAC completed in 1945, required extensive validation of physical circuits, wiring panels, and vacuum tube configurations to ensure operational reliability, mirroring techniques used in testing electrical systems like relay networks and analog devices. These methods involved manual inspections and trial runs to detect faults in hardware interconnections, as software was not yet distinct but embedded in plugboard setups and switch settings. Alan Turing's 1949 report, "Checking a Large Routine," marked an early theoretical shift by proposing systematic verification procedures for computational processes, including postmortem analysis and automated checks, to confirm program correctness beyond mere hardware functionality. In the 1950s and 1960s, software testing emerged more distinctly amid the first programmable computers, though it remained largely ad-hoc and intertwined with debugging. The symbolic "first bug" incident occurred on September 9, 1947, when a team working on the Harvard Mark II computer discovered a moth trapped in a relay, causing a malfunction; the insect was taped into the logbook with the notation "First actual case of bug being found," highlighting the era's reliance on physical troubleshooting. Projects like ENIAC and the UNIVAC I (delivered in 1951) employed informal testing through iterative manual executions, punched-card validations, and operator-led simulations to identify errors in calculations and data flows, often without predefined test cases. These practices focused on demonstrating functionality for military and scientific applications, such as ballistic computations, rather than comprehensive validation. Key figures like Grace Hopper played pivotal roles in advancing error detection during this period. As part of the Harvard Mark II team, Hopper contributed to diagnosing and resolving faults, later advocating for reusable subroutines and compilers to reduce manual error-prone coding, which indirectly supported more reliable testing. Her experiences underscored the need for diagnostic tools in early computing environments. Initial challenges in software testing stemmed from the absence of formal methodologies, with practitioners relying heavily on manual checks, visual inspections, and exhaustive trial-and-error to isolate issues in rudimentary code or configurations. This approach was labor-intensive and prone to oversight, as there was little separation between development, debugging, and verification, leading to prolonged cycles for even simple programs.

Modern Evolution

The late 1970s and 1980s marked the transition from ad-hoc debugging to structured software testing approaches, driven by the growing complexity of software systems and the need for standardized practices. In 1979, the IEEE Technical Committee on Software Engineering initiated work on a standard for software test documentation, which laid the groundwork for formalizing test processes and artifacts. This effort culminated in the publication of IEEE Standard 829-1983, the first comprehensive guideline for software test documentation, specifying formats for test plans, designs, cases, procedures, logs, and reports to ensure consistency and traceability in testing activities. Concurrently, the rise of structured programming paradigms in the 1970s emphasized modular code design, fostering early concepts of unit testing as a method to verify individual components in isolation, thereby improving code reliability and maintainability. The 1990s and early 2000s saw significant advancements in testing practices, spurred by external pressures and methodological shifts. The Y2K crisis, a widespread concern over date-handling flaws in legacy systems, prompted unprecedented global investments in software remediation and rigorous testing, with billions spent on compliance efforts that highlighted the critical role of thorough validation in averting potential failures. This era also witnessed the emergence of automated testing tools, evolving from basic record-and-playback mechanisms in the 1980s to more sophisticated script-based frameworks in the 1990s, enabling repeatable execution of tests for graphical user interfaces and APIs. The 2001 Agile Manifesto further transformed testing by advocating for iterative development and continuous feedback, integrating testing directly into sprints rather than as a post-development phase, which emphasized collaboration between developers and testers to deliver working software frequently. From the 2010s onward, software testing evolved in tandem with broader DevOps practices, emphasizing speed, automation, and integration. The adoption of continuous integration/continuous delivery (CI/CD) pipelines became central to DevOps workflows, automating build, test, and deployment processes to enable rapid iterations and early defect detection, with tools like Jenkins and GitLab CI facilitating this shift starting around 2010. Cloud-based testing platforms, such as BrowserStack and Sauce Labs, gained prominence during this period, allowing scalable, on-demand execution of tests across diverse devices and environments without local infrastructure, which accelerated adoption in the 2010s and 2020s by reducing costs and enabling parallel testing at scale. In the 2020s, artificial intelligence and machine learning have revolutionized test generation, with tools like GitHub Copilot leveraging large language models to automatically suggest and create unit tests, integration tests, and even debugging code based on natural language prompts or existing implementations, thereby enhancing test coverage and developer productivity. These innovations continue to integrate testing more seamlessly into the software lifecycle, adapting to the demands of cloud-native and AI-driven applications as of 2025.

Economics

Cost Factors

Software testing incurs both direct and indirect costs that can significantly impact project budgets. Direct costs encompass the tangible expenses directly attributable to testing activities, while indirect costs arise from broader consequences such as inefficiencies and downstream effects. These costs are influenced by various project-specific factors, and understanding them is essential for effective resource allocation in software development. Direct costs primarily include personnel expenses, which form the largest portion of testing budgets. Testing personnel, such as quality assurance engineers and testers, typically command annual salaries ranging from $90,000 to $105,000 as of 2025, with labor accounting for the majority of testing expenditures across sectors. Infrastructure costs involve hardware for test environments and software licenses for testing tools, often comprising a notable share of pre-release expenses alongside external services from consultants. Training for testers on methodologies and tools adds to these direct outlays, ensuring competency but increasing upfront investments. Tools, such as automated testing suites, represent another direct expense, with their acquisition and maintenance contributing to overall testing infrastructure needs. Indirect costs stem from opportunity losses and rework due to inadequate or delayed testing. Delayed releases in competitive markets can result in revenue shortfalls and market share erosion, as seen in cases where product introduction lags lead to substantial financial penalties. Rework from late defect detection amplifies expenses; for instance, fixing bugs post-release can cost significantly more than addressing them during requirements analysis. These indirect burdens often exceed direct testing outlays, particularly in complex systems where undetected defects propagate. Several factors influence the magnitude of testing costs, including project size and complexity, which can cause expenses to escalate nonlinearly as scale increases. Testing scope also plays a key role, with total testing typically consuming 15-40% of development costs depending on rigor and methodology. A basic cost model for testing breaks down as the product of effort hours and hourly rates for personnel, plus fixed costs for tools and infrastructure, providing a foundational framework for estimation.

Return on Investment

The return on investment (ROI) in software testing quantifies the financial value derived from testing activities by comparing the net benefits against the associated costs, often expressed through the formula ROI = (benefits - costs) / costs × 100%. Benefits primarily arise from defect prevention and early detection, which reduce downstream expenses such as rework and production fixes. Empirical data indicate that investing in testing, particularly automation, can yield positive ROI through cost savings over project cycles. A core benefit of software testing lies in avoiding the escalating costs of defect remediation, where fixing issues during requirements or design phases costs approximately 1 unit, while addressing them in production can escalate to 100 units or more due to factors like system downtime and user impact. This 1:10:100 cost progression, derived from studies of software development lifecycles, underscores how testing shifts defect resolution to earlier, less expensive stages, potentially saving organizations millions in large-scale projects. Beyond immediate savings, software testing delivers sustained financial returns by bolstering organizational reputation, averting regulatory penalties in sectors like healthcare and finance—where non-compliance can incur fines exceeding $1 million per incident—and enhancing customer retention rates through dependable product performance. Such outcomes stem from reduced public outages and improved trust, as evidenced in enterprise surveys linking quality assurance to higher market share and revenue stability. Key metrics for evaluating ROI include the defect leakage rate, computed as (number of defects found post-release / total defects identified) × 100, which ideally remains below 5% to signify robust testing coverage and minimal escaped issues. Additionally, the cost of quality (CoQ) model breaks down expenditures into prevention costs (e.g., training and process design), appraisal costs (e.g., execution and tools), and failure costs (internal rework and external liabilities), with high-ROI strategies emphasizing prevention and appraisal to cap failure costs at under 20% of total CoQ. As of 2025, test automation has been shown to reduce overall testing costs by 20-50% in many projects.

Testing Processes

Roles and Teamwork

Software testing teams typically comprise several core roles, each contributing to the overall quality assurance process. The test manager is responsible for planning, coordinating, and overseeing testing activities, including resource allocation, risk assessment, and reporting progress to stakeholders to ensure alignment with project objectives. Test analysts focus on designing test cases, analyzing requirements, and identifying potential defects based on specifications and user needs. Test engineers handle the execution of tests, documenting results, and verifying fixes, often employing tools for automation and manual verification. Developers play a key role in unit testing, creating initial tests for their code and collaborating on defect resolution to maintain code quality from the outset. Entry-level quality assurance (QA) engineers and test engineers require foundational competencies in software testing theory and practice. This includes understanding key testing types such as functional testing, which verifies that the application meets specified business requirements by evaluating outputs against inputs without examining internal code; regression testing, which ensures that recent changes have not adversely affected existing functionalities; smoke testing, a preliminary set of tests to check basic application stability and core features; and integration testing, which validates interactions between different modules or services. Essential techniques encompass test design methods like equivalence partitioning and boundary value analysis, as well as writing test cases, developing test plans, and preparing bug reports or incident reports to document defects with details on reproduction steps, expected versus actual results, and severity. Proficiency with common tools is also critical, including JIRA for task tracking and issue management, Postman for API testing to validate endpoints and responses, basics of Git for version control to manage test scripts and collaborate on changes, and fundamental SQL skills for database queries to verify data integrity during backend testing. Additionally, knowledge of testing web and mobile applications is necessary, covering compatibility across various browsers (e.g., Chrome, Firefox, Safari) and mobile operating systems (e.g., iOS, Android) to ensure consistent user experience across platforms. These competencies align with industry standards such as those outlined by the International Software Testing Qualifications Board (ISTQB). Team structures in software testing vary by organization and project demands, with two primary models: dedicated quality assurance (QA) teams that operate independently to provide objective oversight, and embedded teams integrated within development groups for closer alignment and faster feedback. Dedicated QA teams offer specialized expertise and independence, reducing developer bias, while embedded structures promote agility and shared responsibility but may risk conflicts of interest. Collaboration across these structures is facilitated by tools such as Jira, which enables issue tracking, test case management, and real-time progress sharing among testers, developers, and stakeholders. Effective teamwork in software testing emphasizes cross-functional communication to bridge gaps between roles and ensure comprehensive coverage. Shift-left testing, a principle advocating early involvement of testing in the development lifecycle, encourages testers to engage during requirements gathering and design phases, enabling defect detection before coding and reducing downstream costs. This approach fosters collaboration by integrating quality practices from project inception, promoting a shared ownership of quality among all team members. Despite these benefits, software testing teams face challenges such as skill gaps, where team members may lack expertise in emerging areas like automation or security testing, necessitating targeted training. Role overlaps, particularly in smaller teams, can lead to duplicated efforts or unclear accountability, complicating coordination and efficiency. Addressing these requires clear role definitions and ongoing professional development to sustain effective collaboration.

Methodologies

Software testing methodologies describe the integration of testing activities within broader software development lifecycles, ensuring quality assurance aligns with project constraints and goals. Traditional approaches emphasize sequential execution, while modern paradigms promote iterative and automated practices to accelerate delivery and reduce risks. These methodologies adapt testing to varying degrees of flexibility, from rigid phase-based models to continuous, collaborative processes. In the Waterfall model, testing occurs in dedicated sequential phases following requirements analysis, design, and implementation, typically culminating in verification and validation before deployment. This structure allows for comprehensive documentation and clear milestones but often results in late defect detection, as issues accumulate undetected until the testing phase, potentially increasing remediation costs. Despite these drawbacks, Waterfall remains suitable for projects with stable requirements and regulatory needs, where upfront planning minimizes changes. Agile methodologies, including Scrum, integrate testing iteratively within short sprints—time-boxed periods of 1-4 weeks—enabling continuous feedback and adaptation to evolving requirements. In Scrum, testing contributes to the Definition of Done for each sprint's increment, ensuring potentially shippable product elements through practices like Test-Driven Development (TDD), where developers write failing tests before code implementation to drive functionality, and Behavior-Driven Development (BDD), which uses natural language scenarios to align testing with user behaviors. These approaches foster collaboration among cross-functional teams, reducing silos and enhancing early defect resolution via frequent reviews. DevOps extends Agile by emphasizing automated testing within continuous integration/continuous delivery (CI/CD) pipelines, where tests execute automatically on code commits to enable frequent, reliable releases. This shift supports shift-left testing, embedding verification early in development, and promotes infrastructure as code for reproducible environments. As of 2025, trends like GitOps are gaining prominence in DevOps testing, using Git repositories as the single source of truth for declarative configurations, with automated tools reconciling changes to ensure consistent test deployments and rollbacks. A typical software testing process, adaptable across methodologies, includes high-level steps: planning and control to define objectives and resources; analysis and design to identify test conditions and create specifications; implementation and execution to prepare and run tests; evaluating exit criteria with reporting to assess coverage and outcomes; and test closure activities to collect data on test completion, archive testware and documentation, and capture lessons learned. In Waterfall, these steps occur sequentially post-development; in Agile/Scrum, they iterate per sprint with team involvement; and in DevOps, automation streamlines execution for ongoing cycles.

Testing Classifications

By Development Level

Software testing classified by development level organizes activities according to the stages of the software development lifecycle, starting with isolated components and progressing to the complete, deployed system. This approach ensures defects are identified and resolved early, reducing costs and risks as development advances. The primary levels include unit testing, integration testing, system testing, and acceptance testing, each building on the previous to verify increasing scopes of functionality. Unit testing, also known as component testing, focuses on verifying the functionality of individual software components or modules in isolation from the rest of the system. Developers typically perform this level using test harnesses or frameworks to simulate dependencies, such as mocks and stubs, which replace external elements to isolate the unit under test. Mocks record interactions for verification of behavior, while stubs provide predefined responses to calls without asserting outcomes. This isolation allows for rapid feedback on code correctness before integration. Integration testing examines the interactions and interfaces between integrated units or components to detect defects in data flow and control issues that emerge only when modules combine. It employs strategies such as top-down, where higher-level modules are tested first using stubs for lower ones; bottom-up, starting with lower-level modules and using drivers for upper ones; or big-bang, integrating all at once. Component integration testing targets internal module interactions, while system integration testing verifies connections with external systems, often requiring environments mimicking production. These approaches ensure seamless collaboration across the application's architecture. System testing evaluates the entire integrated system against specified requirements, assessing both functional and non-functional aspects in an environment resembling production. Conducted after integration, it verifies end-to-end behavior, including workflows and quality attributes like usability or security, to confirm the system meets overall objectives. This level uncovers issues in system-wide interactions that lower-level tests might miss. Acceptance testing validates whether the system fulfills user needs and business requirements, demonstrating readiness for deployment. Performed by end-users or stakeholders, it includes variants like alpha testing, conducted internally by developers or testers in a controlled environment to simulate operational use; and beta testing, involving external users in real-world settings to identify usability issues. Other forms encompass user acceptance testing for business fit, operational acceptance for supportability, contractual for agreement compliance, and regulatory for legal standards. This final validation ensures stakeholder satisfaction before release. The progression across these levels follows the testing pyramid model, where unit tests form the broad base with the highest number due to their speed and low cost, tapering to fewer integration and system tests, and the narrow top of acceptance tests that are more comprehensive but resource-intensive. This structure promotes efficient coverage, with automated unit tests enabling frequent execution and manual acceptance tests reserved for critical validation.

By Technique

Software testing techniques are categorized by their execution methods and the extent of knowledge regarding the system's internal structure, enabling testers to select approaches suited to specific verification needs. These classifications emphasize how tests are conducted—whether without code execution or during runtime—and the degree to which internal details inform test design. This distinction allows for complementary strategies that address different aspects of software quality, from early defect detection to behavioral validation. Static testing encompasses methods that analyze software artifacts without running the code, focusing on prevention of defects through inspection. According to the International Software Testing Qualifications Board (ISTQB), static testing is defined as testing that does not involve the execution of a test item. Primary techniques include reviews and inspections, such as formal code reviews where developers collaboratively examine source code for logical errors, adherence to standards, and potential vulnerabilities prior to integration. These activities, often guided by checklists, identify issues like incomplete requirements or inconsistent documentation early in development, thereby reducing downstream rework costs by up to 100 times compared to post-execution fixes. In contrast, dynamic testing requires executing the software to evaluate its runtime behavior under controlled conditions. The ISTQB defines dynamic testing as testing that involves the execution of the test item. Some approaches further distinguish dynamic testing into passive (monitoring system operation without direct intervention, such as logging performance during normal use to detect anomalies) and active (actively stimulating the system with inputs to verify responses, like simulating user interactions to confirm functionality) variants. This execution-based approach is crucial for uncovering defects that manifest only during operation, such as race conditions or resource leaks. Dynamic techniques are further delineated by the tester's visibility into internals: black-box, white-box, and grey-box. Black-box testing treats the system as opaque, emphasizing functional conformance to specifications without regard to implementation details. The ISTQB describes black-box testing as testing based on an analysis of the specification of the component or system. Core methods include equivalence partitioning, a black-box technique that divides input domains into equivalence classes where the software is expected to exhibit uniform behavior, with tests selecting one representative value per class to optimize coverage. Boundary value analysis extends this by targeting values at partition edges (e.g., minimum, maximum, and adjacent points), as defects frequently cluster there—for instance, testing ages 17, 18, 19, and 65 for an age-validation field ranging 18–65. White-box testing, conversely, leverages knowledge of the code's structure to ensure comprehensive path traversal. Per the ISTQB, white-box testing is testing based on an analysis of the internal structure of the component or system. Prominent metrics are statement coverage, which measures the proportion of executable statements invoked by tests (e.g., aiming for 100% to verify all lines run at least once), and branch coverage (or decision coverage), which requires testing both true and false outcomes of control structures like if-statements to confirm logical branches. For example, in a conditional block, tests must execute both the if-true and if-false paths to achieve full branch coverage, revealing issues like unhandled edge decisions. Grey-box testing bridges these by incorporating partial internal knowledge, such as architecture diagrams or database schemas, while still executing the system. In the ISTQB Security Test Engineer syllabus, grey-box testing is characterized as a methodology assuming some knowledge of the internal structure and implementation details of the assessment object. It proves valuable in web application security testing, where testers use limited source insights to craft penetration tests targeting vulnerabilities like SQL injection at integration points, balancing efficiency with realism. Additional techniques transcend traditional structure-based categories, emphasizing flexibility or relational properties. Exploratory testing adopts an unscripted, adaptive style where testers simultaneously design, execute, and learn from tests in real-time. The ISTQB defines exploratory testing as a test approach in which tests are dynamically designed and executed based on the tester's knowledge, exploration of a test item, and previous test results. This contrasts with scripted (or preset) testing, which adheres to predefined sequences of steps documented in test scripts for reproducibility. Exploratory methods excel in ambiguous requirements scenarios, such as agile sprints, by uncovering unanticipated defects through intuitive probing. Property-based and metamorphic testing prioritize abstract input-output relations over scripted assertions, ideal for oracle-challenged domains like numerical computations. Property-based testing requires specifying invariant properties (e.g., "reversing a list twice yields the original") that must hold for randomly generated inputs, with tools auto-generating thousands of cases to falsify them; this paradigm originated with QuickCheck for Haskell. Metamorphic testing builds on this by defining metamorphic relations—transformations of inputs where output relations are predictable (e.g., sorting a permuted list yields the same result)—to detect inconsistencies without exact oracles. Introduced by Chen et al. in 1998, it has been applied to verify compilers and machine learning models, with surveys confirming its efficacy in revealing faults in over 50% more cases than traditional methods in oracle-absent settings. These techniques foster robust validation by focusing on behavioral invariants rather than exhaustive enumeration.

By Objective

Software testing can be classified by objective to focus on the specific aspects of the system under verification, such as its functional behavior, non-functional attributes, or specialized capabilities. This classification emphasizes the goals of testing, like ensuring requirements are met or quality characteristics are achieved, rather than the techniques or development stages involved. Functional testing verifies that the software fulfills specified requirements by evaluating its behavior against expected inputs and outputs. It checks the completeness, correctness, and appropriateness of system functions, such as confirming that a login feature processes credentials as defined in the requirements. Regression testing, a subset of functional testing, re-executes previous tests after code changes to confirm no unintended defects are introduced, ensuring system stability post-modifications. Smoke testing performs basic checks to verify major features operate without crashing, serving as an initial gate before deeper testing, while sanity testing conducts quick validations of specific functionalities after fixes to determine if further comprehensive testing is warranted. Non-functional testing assesses quality attributes beyond core functionality, drawing from standards like ISO/IEC 25010 to evaluate characteristics such as performance efficiency, usability, accessibility, and security. Performance testing measures system responsiveness under various conditions, including load testing to simulate peak usage and assess metrics like response time, and stress testing to identify breaking points beyond normal capacity. Usability testing evaluates how intuitively users interact with the software, applying heuristics to check navigation and task completion ease. Accessibility testing ensures the software is usable by people with disabilities, adhering to Web Content Accessibility Guidelines (WCAG) 2.2, which outline principles like perceivability, operability, understandability, and robustness through success criteria at levels A, AA, and AAA. Security testing identifies vulnerabilities to protect against threats, often guided by the OWASP Top 10, a consensus list of critical web application risks including broken access control, injection, and cryptographic failures, using methods like vulnerability scans and penetration testing. Specialized testing addresses niche objectives to validate specific system behaviors or environments. Compatibility testing confirms the software operates correctly across diverse platforms, devices, and browsers, ensuring interoperability in heterogeneous setups. Internationalization and localization testing verify adaptability to different languages, regions, and cultural formats, such as date handling or text rendering, to support global deployment. Installation testing evaluates the deployment process, checking that the software installs, configures, and uninstalls without issues on target operating systems. Destructive testing intentionally pushes the system to failure to uncover limits and recovery mechanisms, such as overloading resources to observe crash handling. A/B testing compares two variants of a feature to determine which performs better in terms of user engagement or conversion, often used in iterative development. Conformance testing checks adherence to external standards or regulations, like ISO norms, to ensure regulatory compliance. Output comparison testing matches actual results against expected ones to verify accuracy, commonly applied in data processing validation. VCR testing, involving recorded interactions (e.g., HTTP requests via tools like cassettes), replays predefined scenarios for reliable integration checks without external dependencies. Concurrent testing examines multi-user scenarios to ensure stability under simultaneous access, detecting issues like race conditions. Continuous testing integrates automated tests into continuous integration/continuous delivery (CI/CD) pipelines to provide rapid feedback throughout the development lifecycle, enabling frequent validation of builds and deployments. It shifts testing left by executing suites like unit, integration, and end-to-end tests automatically with every code commit, reducing defect accumulation and supporting agile practices. Development testing occurs ongoing in the development environment, where developers perform early defect detection through practices like unit testing to guide coding and prevent issues from propagating. This approach synchronizes testing with development activities, fostering a defect-prevention mindset from the outset.

Testing Artifacts

Planning Documents

Planning documents in software testing serve as foundational artifacts that outline the strategy, scope, and organization of testing efforts to align with overall project objectives and ensure comprehensive coverage of requirements. These documents provide a structured framework for coordinating resources, schedules, and risks, facilitating communication among stakeholders and enabling traceability from requirements to test activities. By defining clear processes upfront, they help mitigate uncertainties and support efficient execution of testing phases. Note that traditional documentation standards like IEEE 829-2008 have been superseded by the ISO/IEC/IEEE 29119 series, with ISO/IEC/IEEE 29119-3:2021 providing current templates for test documentation. The test plan is a core planning document that prescribes the scope, approach, resources, and schedule for testing activities. Per ISO/IEC/IEEE 29119-3:2021, the test plan includes an identifier, test items specifying the software components under test, including features to be verified. It details the approach by outlining testing methods, such as manual or automated techniques, and includes references to standards or tools used. Additionally, the test plan addresses responsibilities, assigning roles for test execution and review, and outlines training needs for the team. Suspension criteria define conditions under which testing halts, such as critical defects, with resumption requirements specifying steps to restart. A traceability matrix is a tabular artifact that links requirements to corresponding test cases, ensuring complete coverage and verifying that all specified functionalities are tested. It maps each requirement to design elements, code, and tests, allowing teams to track changes and assess impact during development iterations. In software testing, the matrix typically includes columns for requirement ID, description, associated test cases, and status, helping to identify gaps in coverage early. This tool supports bidirectional traceability, from requirements forward to tests and backward from defects to origins, as emphasized in object-oriented verification practices. Test design documents refine the high-level test approach by specifying features, attributes, and test identification for detailed coverage. Per ISO/IEC/IEEE 29119-3:2021, a test design specification includes input and output specifications for each test item, along with pass/fail criteria based on expected results. It incorporates risk analysis to prioritize testing efforts on high-risk areas, such as complex algorithms or security features, and outlines the stimulus for test execution, like user inputs or environmental conditions. This document groups related test items to streamline design and ensures alignment with the overall test plan strategy. Entry and exit criteria are essential components that define prerequisites for initiating testing phases and conditions for completion, ensuring quality gates are met before progression. Entry criteria might require approved requirements documents and a stable build, while exit criteria could include achieving 95% test coverage or resolving high-severity defects, as outlined in ISO/IEC/IEEE 29119-3:2021-compliant plans. These criteria prevent premature testing starts and avoid incomplete phases, promoting disciplined progression. The defect management process in planning documents establishes protocols for identifying, logging, tracking, and resolving anomalies discovered during testing. It specifies tools for defect reporting, severity classifications (e.g., critical, major, minor), and workflows for triage and assignment, integrated with the test plan's responsibilities section. According to ISO/IEC/IEEE 29119-1:2022, this process includes prevention strategies, such as root cause analysis from prior defects, to improve future testing efficiency and overall software quality.

Execution Elements

Execution elements in software testing encompass the practical components and artifacts employed during the actual performance of tests, enabling the verification of software behavior against specified requirements. These elements include test cases, scripts, suites, fixtures, data, and runs, which collectively facilitate structured, repeatable, and traceable testing activities. They form the operational backbone of testing, translating high-level plans into executable actions and capturing outcomes for analysis. A test case consists of a set of input values, execution preconditions, expected results, and postconditions designed to achieve a specific testing objective, such as exercising a particular code path or confirming adherence to a requirement. According to ISO/IEC/IEEE 29119-3:2021, a test case specification includes identifiers, objectives, inputs, outputs, environmental needs, procedural requirements, dependencies, pass/fail criteria, and rationale to ensure comprehensive coverage of test items. Test cases can be manual, requiring human intervention to apply inputs and observe outputs, or serve as the basis for automation. A test script provides detailed, step-by-step instructions for executing one or more test cases, often in a scripting language to enable automation. In the ISTQB glossary, it is defined as a test procedure specification, especially an automated one. For instance, in web application testing, tools like Selenium allow test scripts to be written in languages such as Python or Java, simulating user interactions like clicking buttons or entering form data via code commands. ISO/IEC/IEEE 29119-3:2021 describes test procedure specifications as sequences of actions for setup, execution, measurement, and wrap-up, including inputs, outputs, and tracing to requirements. Scripts ensure consistency and efficiency, particularly in regression testing where repeated executions are necessary. A test suite is a collection of test cases or scripts organized for execution in a particular sequence or context, often grouped by functionality, module, or priority to streamline testing efforts. The ISTQB defines it as a set of several test cases for a component or system under test, where the postcondition of one may serve as the precondition for the next. Synonyms include test set or test case suite. Suites enable modular testing, allowing selective runs—for example, a regression suite might include all critical path tests—while supporting integration with continuous integration pipelines for automated deployment validation. Test fixtures and data refer to the preparatory elements that establish the necessary conditions for test execution, including setup data, environmental configurations, and supporting structures. A test fixture comprises preconditions or minimal environmental components like hardware, software, data, and settings required to enable a test, commonly used in unit testing frameworks such as JUnit. Test data is predefined information, such as database entries or input files, that influences or is altered by the software under test. A related concept, the test harness, provides the runtime environment with stubs and drivers to simulate dependencies, ensuring isolated and controlled execution. These elements minimize variability, as seen in unit testing frameworks like JUnit, where fixtures initialize objects before each test to maintain independence. A test run represents a single instance of executing a test, suite, or procedure against a specific version of the software, generating logs and results for evaluation. ISTQB describes it as the execution of a test on a particular version of the test object. The test execution process involves running the tests to produce actual results, while the test log—a chronological record of details like procedures performed, environmental conditions, observed outcomes, and anomalies—documents the run. Under ISO/IEC/IEEE 29119-3:2021, the test log captures event entries, results, and discrepancies, serving as evidence of compliance or deviation. Incident reports may arise from runs to detail anomalies, their impacts, and resolutions, facilitating defect tracking.

Quality Assurance

Verification and Validation

Verification and validation (V&V) are essential disciplines in software engineering that ensure the quality and reliability of software products by confirming adherence to specifications and alignment with user expectations. According to IEEE Std 1012-2024, verification determines whether the development products of a given activity conform to the requirements of that activity, while validation confirms whether the software satisfies its intended use and user needs. This distinction, popularized by Barry Boehm, can be summarized as verification asking, "Are we building the product right?" and validation asking, "Are we building the right product?" Verification focuses on the correctness of the development process through static techniques that examine artifacts without executing the software. Common methods include reviews, walkthroughs, and inspections, which identify defects early in the lifecycle. Walkthroughs involve informal peer discussions led by the author to gather feedback on design or code, fostering understanding and error detection. Inspections, formalized by Michael Fagan in 1976, are rigorous, structured peer reviews of documents or code using checklists to systematically uncover issues, often reducing defects by up to 80% in applied cases. Validation, in contrast, evaluates the software's fitness for purpose by assessing its behavior against user requirements, typically through dynamic techniques like execution-based testing. This ensures the final product meets stakeholder needs in real-world scenarios, bridging the gap between specified features and practical utility. V&V processes are integrated throughout software lifecycle models, such as the V-model introduced by Boehm, where verification activities occur during the downward development phases (e.g., requirements to implementation via static analysis), and validation occurs during the upward integration and testing phases (e.g., dynamic testing to confirm end-to-end functionality). This structured approach ensures continuous quality checks aligned with project phases. Software quality assurance (SQA) encompasses V&V as part of broader processes to establish and maintain quality standards, including planning, process control, and audits to verify compliance with defined procedures. IEEE Std 730-2014 outlines SQA requirements for software projects, emphasizing audits to assess adherence to plans and detect deviations early. These mechanisms collectively support reliable software delivery by embedding quality into every stage.

Metrics and Standards

Software testing employs various quantitative metrics to evaluate the effectiveness, efficiency, and quality of testing processes, enabling teams to assess progress, identify risks, and improve software reliability. Defect density, a fundamental metric, measures the number of defects per thousand lines of code (KLOC), calculated as Number of defectsSize of software in KLOC\frac{\text{Number of defects}}{\text{Size of software in KLOC}}, providing insight into code quality and testing thoroughness. Test coverage, which quantifies the proportion of code, branches, or requirements exercised by tests (e.g., statement coverage as a percentage), helps ensure comprehensive validation but must be balanced with other metrics to avoid false confidence. Pass/fail rates track the percentage of test cases that succeed or fail upon execution, with the pass rate computed as Number of passed testsTotal executed tests×100\frac{\text{Number of passed tests}}{\text{Total executed tests}} \times 100; high pass rates (e.g., above 95%) signal stable builds, while failures prompt immediate investigation. Defect escape rate, or leakage, represents the percentage of defects undetected during testing that reach production, defined as Defects found post-releaseTotal defects×100\frac{\text{Defects found post-release}}{\text{Total defects}} \times 100, highlighting gaps in test design and helping prioritize risk-based testing strategies. International standards guide the application of these metrics within structured testing frameworks. The ISO/IEC/IEEE 29119 series, particularly Part 1 (2022), establishes general concepts and processes for software testing, emphasizing traceable metrics like coverage and defect tracking to support consistent, auditable practices across organizations and projects. For accessibility testing, the Web Content Accessibility Guidelines (WCAG) 2.2, published by the W3C in 2023 and approved as ISO/IEC 40500:2025, outlines 87 testable success criteria under four principles (perceivable, operable, understandable, robust), enabling metrics such as conformance levels (A, AA, AAA) to measure inclusivity in web-based software. Professional certifications validate expertise in applying these metrics and standards. The International Software Testing Qualifications Board (ISTQB) offers tiered certifications, including the Foundation Level (CTFL) for core concepts and advanced levels for specialized skills, benefiting professionals by standardizing terminology, enhancing career mobility, and fostering global collaboration among over 1 million certified individuals. Similarly, the Certified Software Tester (CSTE) from PeopleCert (formerly QAI) focuses on testing principles and project management, while the Certified Software Quality Analyst (CSQA) emphasizes quality assurance processes; both provide skill validation, demonstrating competency in metrics-driven evaluation and improving employability in rigorous QA roles. By 2025, software testing metrics have evolved to incorporate AI-driven measures, addressing modern challenges in automated environments. Test flakiness rates, which quantify non-deterministic test failures (e.g., as a percentage of total runs), are increasingly analyzed using AI pipelines to triage logs and predict instability, reducing maintenance overhead and enhancing reliability in continuous integration pipelines. This shift integrates machine learning for proactive defect prediction, complementing traditional metrics to support agile and DevOps workflows.

Challenges

Controversies

One prominent debate in software testing centers on the misconception that testing can prove the absence of defects in a program. In reality, testing primarily demonstrates the presence of bugs when they are encountered, but it cannot exhaustively verify correctness due to the infinite possible inputs and states in complex software systems. This principle was articulated by Edsger W. Dijkstra in his 1970 notes, emphasizing that program testing serves to reveal errors rather than certify bug-free operation, a view that underscores the limitations of empirical validation in software engineering. Another ongoing controversy involves over-reliance on test automation, which some argue diminishes the role of exploratory testing essential for uncovering unanticipated issues. Automated tests excel at repetitive validation of predefined scenarios but often fail to adapt to evolving requirements or human intuition-driven discovery, leading to incomplete coverage if manual exploration is sidelined. A systematic review of 25 studies and a survey of 115 practitioners found that while automation offers efficiency gains, 80% of respondents rejected the idea that it could fully replace manual testing, highlighting risks like false positives and overlooked edge cases when automation is prioritized excessively. Ethical concerns have intensified in the 2020s with the integration of AI into testing tools, particularly biases arising from underrepresented data in training sets. AI-driven test case generation and defect prediction can perpetuate systemic inequalities if datasets lack diversity, such as insufficient representation of edge cases from varied user demographics or global contexts, resulting in skewed test priorities that miss critical vulnerabilities for certain populations. For instance, biases in regression test selection tools may favor patterns from dominant data sources, exacerbating fairness issues in software validation, as identified in a 2025 analysis of AI ethics in test automation. Resource allocation between testing and development remains a contentious issue, with testing often underfunded relative to coding efforts despite evidence of its long-term value. Industry surveys indicate that quality engineering budgets typically comprise only 20-30% of development expenditures, yet inadequate funding leads to rushed testing phases and higher post-release costs from defects. This tension arises from perceptions that testing is a non-strategic overhead, prompting debates on integrating QA earlier in agile processes to justify greater investment without expanding overall budgets. Historically, the Y2K remediation efforts exemplified critiques of over-testing and hype in the late 1990s. While necessary fixes addressed date-handling flaws, expenditures exceeded $300 billion globally, with detractors arguing that widespread testing and compliance audits were disproportionate to the actual risks, as most legacy systems were remediated preemptively without major incidents on January 1, 2000. Post-event analyses labeled much of the response as an overreaction driven by fear and litigation risks, though it arguably elevated software quality standards industry-wide. Artificial intelligence and machine learning are revolutionizing software testing by enabling automated test case generation and predictive defect analysis. AI-driven tools leverage generative models to create diverse test scenarios from requirements or code, reducing manual effort and improving coverage in complex systems. For instance, advancements in large language models have facilitated the automatic synthesis of test scripts that adapt to evolving software architectures, as demonstrated in studies showing efficiency gains in test automation pipelines. Predictive analytics, powered by machine learning algorithms, forecast potential defects by analyzing historical data, code metrics, and runtime behaviors, allowing teams to prioritize high-risk areas early in development. Tools like Testim utilize AI for self-healing tests that dynamically adjust to UI changes, while Applitools employs visual AI to detect anomalies in user interfaces with near-human accuracy, incorporating 2024 enhancements in neural network training for faster execution. The shift-left approach, integrated with DevSecOps practices, emphasizes incorporating security testing into continuous integration/continuous deployment (CI/CD) pipelines from the outset. This paradigm moves vulnerability scans and compliance checks upstream, enabling developers to address issues during coding rather than post-deployment, which has been shown to reduce remediation costs by 30-50% in enterprise environments. In DevSecOps, automated tools embed static application security testing (SAST) and dynamic analysis directly into IDEs and build processes, fostering a culture of shared responsibility for security. Recent implementations, such as those using infrastructure-as-code for secure pipeline configurations, have accelerated release cycles while maintaining robust threat modeling. Cloud and edge computing are driving new testing paradigms for scalable IoT and microservices architectures, with a growing focus on sustainability metrics. Testing in cloud environments now prioritizes elasticity and fault tolerance across distributed systems, using containerized setups to simulate real-world loads for microservices. Edge testing addresses latency-sensitive IoT deployments by validating data processing at the network periphery, ensuring reliability in bandwidth-constrained scenarios. Sustainability considerations include energy-efficient test execution, where optimized cloud resource allocation during testing phases can reduce carbon footprints, aligning with green software engineering principles. Tools for these environments emphasize automated orchestration to handle hybrid cloud-edge workflows. Emerging areas like quantum-safe testing, low-code/no-code platform validation, and blockchain smart contract verification are addressing gaps in traditional methodologies. Quantum-safe testing involves evaluating cryptographic implementations against potential quantum attacks, with frameworks adopting post-quantum algorithms such as lattice-based signatures to secure software ecosystems. For low-code and no-code platforms, testing focuses on generated code quality and integration points, using AI-assisted oracles to verify citizen-developed applications without deep programming knowledge. Blockchain smart contract verification employs formal methods and fuzzing techniques to detect reentrancy vulnerabilities, with 2025 advancements in automated auditing tools for exploit detection. Key challenges in these trends include ensuring test data privacy under regulations like GDPR and managing non-deterministic behaviors in AI systems. Privacy-compliant testing requires synthetic data generation and differential privacy techniques to anonymize sensitive information, preventing re-identification risks during AI model training. For non-deterministic AI, testing strategies incorporate probabilistic assertions and robustness checks to validate outputs across multiple runs, addressing variability in generative models. These practices are critical for compliant deployment in regulated sectors.

References

Add your contribution
Related Hubs
Contribute something
User Avatar
No comments yet.