Knowee
Questions
Features
Study Tools

Outline two tests that you carried out on your program and how you debugged any errors you discovered during your tests.

Question

Outline two tests that you carried out on your program and how you debugged any errors you discovered during your tests.

🧐 Not the exact question you are looking for?Go ask a question

Solution

  1. Unit Testing: The first test I carried out was a unit test. This is a type of software testing where individual components of a software are tested. The purpose is to validate that each unit of the software performs as designed. I used a unit testing framework specific to my programming language.

    Debugging: During this test, I discovered that one of the functions was not returning the expected output. To debug this, I isolated this function and input some test data. I found that there was an off-by-one error in a loop within the function. I corrected the loop's range, and the function then produced the correct output.

  2. Integration Testing: After unit testing, I performed integration testing. This is a level of software testing where individual units are combined and tested as a group. The purpose of this level of testing is to expose faults in the interaction between integrated units.

    Debugging: During integration testing, I found that the program was not able to correctly process data when it was passed from one function to another. I used a debugger tool to step through the program's execution and found that a data type mismatch caused the error. I was passing an integer where the function expected a float. After correcting the data type, the program worked as expected.

This problem has been solved

Similar Questions

What does the term 'debug' mean?*1 pointIdentify errors and fix them.Making a calculationA set of instructionsLooking at code

Describe Debugging and how it is used by programmers when designing programming solutions

What types of errors might you encounter while debugging code? Select three answers.1 分IterativesSyntax errorsExceptionsLogic errors

Identify the testing which cannot be performed on the first build of the software?(1 Point)Sanity Testing Regression Testing RetestingAll a, b and c

Data that have been clearly identified for use in tests, usually of a computer program isknown as ____________.

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.