Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.

Similar presentations


Presentation on theme: "Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time."— Presentation transcript:

1 Chapter 6 Testing and running a solution

2 Errors X Three types Syntax Logic Run-time

3 Syntax errors are simply written errors in the code. Logic: This is usually a mathematical error when calculations or selections are involved. Run-Time: Any error caused when a program runs.

4 Testing Strategies Black Box Testing: Testing the program without caring if the program going to work Black Box Testing White box testing: Beta testing: User testing/consumer

5 Valid Data: correct Invalid Data: incorrect Borderline Data: incorrect but the data output is valid

6 Debugging Tools Translator Diagnostics: When the translator (the part of the programming interface that converts the high-level source code to low-level machine code) Breakpoints: is a marker added to a line of code requesting that the program stops running when it gets to that line. Stepping: Stepping involves moving through a program one line at a time after a breakpoint. Dry Runs: Going through the source code manually noting down variable values so to find any errors.

7 Installation and Execution So when you compile a program you take the source code and convert it to object code. Great, now what? As all of you should know, installing a program means to copy all of the files to a hard-drive so that it can run and be of some use to the end user. Many programming languages have some functionality that can create a.exe file from the object code that can be sent to any computer of that type. For example, a.exe file created on a mac will not run on a pc and vice versa.


Download ppt "Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time."

Similar presentations


Ads by Google