ABDUL S.
asked 05/22/25Software quality assurance
tell me about test cases why are these important and what aspects to add i test cases. why they are important to create ??
1 Expert Answer
Daniel B. answered 05/22/25
PhD in Computer Science with 42 years in Computer Research
There are two ways to achieve software quality -- statically and dynamically.
Test cases are used in the dynamic approach.
A test case consists of two parts: input and expected behavior.
The given software is then executed on the input and the resulting
behavior is compared with the expected behavior.
There are several types of test cases:
1. Unit test cases are used to test individual modules of the software.
The expected behavior is written by the programmer.
2. System test is conducted after all the modules are integrated.
System test cases target several aspects:
2.1 Reliability
The input of the test case are data that a user is likely to submit,
and the expected behavior is what the user would expect.
2.2 Robustness
The input of the test case are data that user is unlikely to submit,
and the expected behavior usually specifies that nothing bad happens.
2.3 Security
The input of the test case are data that user would never submit.
It is what a malicious attacker might use to extract sensitive information, or to damage the system.
Expected behavior specifies that such attacks should fail.
2.4 Compliance
The input are data specified by the government or regulatory agency,
and the expected behavior is also provided by them.
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
ABDUL S.
urgently required05/22/25