|Functional Testing||Non-Functional Testing|
|Definition||Testing the individual functions of a software||Testing the non-functional aspects of a software|
|Focus||Ensures that the software meets specified requirements||Evaluates performance, usability, reliability, etc.|
|Examples||Testing user interfaces, database interactions, etc.||Performance testing, security testing, usability testing, etc.|
|Goal||Validates if the software functions as intended||Checks if the software meets quality attributes|
|Requirement||Derived from functional requirements||Derived from non-functional requirements|
|Test Cases||Based on use cases, user stories, or functional specs||Based on quality attributes and performance metrics|
|Outcome||Pass/fail based on expected functionality||Metrics and performance measurements|
Functional testing focuses on validating the individual functions and features of the software, ensuring that it meets the specified requirements. This type of testing typically involves testing user interfaces, database interactions, and other functional aspects.
Non-functional testing, on the other hand, evaluates the non-functional aspects of the software, such as performance, usability, reliability, security, and scalability. It aims to check if the software meets the desired quality attributes and performance metrics. Examples of non-functional testing include performance testing, security testing, and usability testing.
The test cases for functional testing are derived from use cases, user stories, or functional specifications, while non-functional test cases are based on quality attributes and performance metrics defined for the software.
The outcome of functional testing is determined by whether the software functions as intended or not, with pass or fail results. Non-functional testing focuses on gathering metrics and performance measurements rather than pass/fail outcomes.
I hope this table provides a clear overview of the differences between functional and non-functional testing. Let me know if you have any further questions!