Uncovering Defects And Finding Important Problems Computer Science Essay

Published:

This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.

Ivars Peterson, author of Fatal Defect: Chasing Killer Computer Bugs. As he concludes in his book, "The fact that we can never be sure that a computer system will function flawlessly constitutes a fatal defect. It limits what we can hope to achieve by using computers as our servants and surrogates. As computer-controlled systems become more complex and thoroughly entwined in the fabric of our lives, their potential for costly, life-threatening failures keeps growing."

Basic Testing purpose.

Uncovering defects and finding important problems

Assessing quality and risk

Certifying to standards.

Fulfilling process mandates.

Blocking premature releases.

Minimizing safety-related lawsuit risks.

Minimizing technical support costs

Maximizing efficiency

Verifying correctness.

Assessing conformance to specification or regulations.

[IBM Software Group, p17 system testing, 24th may, 2007]

Scope of testing:

The scope of testing software is defined in the test case itself. This includes user interaction, procedures, coding error, logical bugs, User interfaces, and performance.

Test the entire functionality of the system in accordance of use case.

Test the usability of the system by testing controls, icons, menus, controls.

Test to insure the integration of the modules of the system.

Testing the efficiency by evaluating input and output.

Testing methods:

Testing will be done throughout all the phases in the RUP methodology especially after inception phase. This will help save time and ensures that the system will function properly even before the all the modules are implemented. They test plan for 'Digital Watermarking System' is follows:

Testing reference:

Test plan:

Use cases:

Test design specification:

Test cases, Test Scripts and programs:

Test Procedures:

Test data files:

Defect Report:

Test status:

Final Test report:

Unit Testing

Unit Testing is done at the source or code level for language-specific programming errors such as bad syntax, logic errors, or to test particular functions or code modules. For unit testing for Digital image protector TYPEMOCK® a unit testing software for visual Studio ® has been used in specific classes.

Project name: DIGITAL IMAGE PROTECTOR

Type of Testing: Black Box

Test Case Name: Import image and video module

Test Case: Version1.1

Time Taken: 2 day

Written By: ABHINAV VERMA

Approved By: Project Developer

Testers:

Mr. Virendra Srivastava(Faculty)

Mr. Aatish Raj (Student)

Mr. Manish Shankar (Student)

Mr. Anup Kumar(Student)

Mr. Abhishek Kumar (Student)

Objectives: To test the working of the image watermarking Module.

Scenario

Preconditions

Function To Test

Input

Expected Result

Actual Result

Status

1.

-

To Import a image file

Browse Image.

Imported image preview

Image displayed in preview box

Pass

2

To Import a Video file

Browse Video

Imported image preview

First Frame displayed in preview box

Pass

3

-

To select destination path

Click the Customized path to browse

Display the customized path.

Path displayed.

Pass

4

-

Type text to water mark

Text input.

Displayed input text

Text preview on image.

Pass

Error Report: No errors

Measures taken: None

Conclusion: The import functionality of the system is working fine.

Project name: DIGITAL IMAGE PROTECTOR

Type of Testing: Black Box N WHITE BOX

Test Case Name: TEXT EDITOR

Test Case: Version1.2

Time Taken: 2 day

Written By: ABHINAV VERMA

Approved By: Project Developer

Testers:

Mr. Virendra Srivastava(Faculty)

Mr. Aatish Raj (Student)

Mr. Manish Shankar (Student)

Mr. Anup Kumar(Student)

Mr. Abhishek Kumar (Student)

Objectives: To test the working of the image watermarking Module.

1

-

Underline Test.

Click the Underline Icon.

Underline The Input Text.

Change to Underline text

Pass

2

-

Strike out text

Click Strike Icon.

Strike The Input Text.

change to Strike text

Pass

3

-

Italics Text

Click the Italics icon.

Italics the Input Text.

change to Italics text

Pass

4

-

To get different text color option

Click the color option

Text color change.

Text changed to defined color.

Fail

5

To change the font style

Drop down & select font style

Change font style

Font style changed

Pass

6

Size change of text

Select the font size from drop down box

Change in font size

Font size changed

Pass

7

Position Change of Text

Click Position icon

Change in position of the text

Position changed

Pass

8

Icon instead of text

Check Icon check box

Browse window popup to import icon

Icon imported

fail

REPORTED ERRORS:

Test property No. 4.

While changing the color, system get static on color white after gain clicking of the change color icon its jumps on the code and shows the Break point on cmdcolor() color function.

MEASURES TAKEN:

Developer came to know about the rechecking the cmdcolor function and get to the there is wrong passing of the value Function applychanges().

Private Sub Applychanges()

Dim f As Font = w1.getfont()

fs = w1.Getfonts()

If w1.Color1 = Nothing Then

w1.Dstimage = e1.Selected_Image(w1.Srcimage, f, w1.Text1, w1.Alignment, fs, Color.White, w1.Transparency1, w1.UseImageOnImage, w1.ImageOnImagePath)

Else

'w1.Dstimage = e1.Selected_Image(picoriginal.Image, f, txtdisplay.Text, mode, fs, w1.Color1)

w1.Dstimage = e1.Selected_Image(w1.Srcimage, f, w1.Text1, w1.Alignment, fs, Color.White, w1.Transparency1, w1.UseImageOnImage, w1.ImageOnImagePath)

End If

w1.Updated1 = w1.Dstimage

picedit.Image = w1.Dstimage

End Sub

Change of code in the else part of the function applychanges()

Int the else part of the ayatem.w1.Dstimage = e1.Selected_Image(w1.Srcimage, f, w1.Text1, w1.Alignment, fs, w1.Color1, w1.Transparency1, w1.UseImageOnImage, w1.ImageOnImagePath)

Test property No 8.

There is image problem in drawing icon on the image as watermark, while checking the icon check box, it browses the images but somehow it throws the exception.

Private Sub chUseImage_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chUseImage. CheckedChanged

If (chUseImage.Checked) Then

Me.ResetImage()

Else

w1.UseImageOnImage = true

w1.ImageOnImagePath = String.Empty

Measures taken

Private Sub chUseImage_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chUseImage.CheckedChanged

If (chUseImage.Checked) Then

Me.ResetImage()

Else

w1.UseImageOnImage = False

w1.ImageOnImagePath = String.Empty

CONCLUSION:

After changing above mentioned code then, system is able to change the color as well as draw image over image. Hence after, going through amendment of source code the editor is running fine and without errors

Stress Testing

Stress testing is subjecting a system to an unreasonable load while denying it the resources (e.g., RAM, disc, chips, interrupts, etc.) needed to process that load. The idea is to stress a system to the breaking point in order to find bugs that will make that break potentially harmful. The system is not expected to process the overload without adequate resources, but to behave (e.g., fail) in a decent manner (e.g., not corrupting or losing data). Bugs and failure modes discovered under stress testing may or may not be repaired depending on the application, the failure mode, consequences, etc. The load (incoming transaction stream) in stress testing is often deliberately distorted so as to force the system into resource depletion.

Resource: http://www.faqs.org/faqs/software-eng/testing-faq/section-15.html#ixzz0lFqj2tdj.

Project name: DIGITAL IMAGE PROTECTOR

Type of Testing: STRESS TESTING

Test Case Name: Different Image and video size

Test Case: Version1.1

Time Taken: 1day

Written By: ABHINAV VERMA

Approved By: Project Developer

Testers:

Mr. Virendra Srivastava(Faculty)

Mr. Aatish Raj (Student)

Mr. Manish Shankar (Student)

Mr. Anup Kumar(Student)

Mr. Abhishek Kumar (Student)

Objectives: To test the limitation and processing speed of the system.

The stress testing has been done on the development environment and resource on which developer has developed the system.

System: Microsoft Windows Xp® Professional service pack 2, Version 2002.

Computer configuration: INTEL(R) Core(TM) 2 CPU,T5200@1.60Ghz.0.99GB of RAM.

It differs system to system configuration and operating system wise.

Preconditions

Function To Test

Input

Expected Result

Level OF stress

Status

1.

-

image file Sized Below 512 KB

Browse Image.

Processing of image without any interruption at normal speed and time

Memory usages and page loads

Are normal

Pass

2

Image sized between 512 kb to 1 MB.

Browse Image.

Memory usages and page loads

are little normal

Pass

3

-

Image sized between 1MB to 2MB.

Browse Image.

System process

At standard speed and took little bit more time.

Pass

4

-

Image sized between 2MB to 5MB.

Browse Image.

System got very much slow and page load, memory usages are high.

Pass

Video Files.

5

Video file Sized Below 512 KB

@ 24 frame /sec

Browse Video

Processing of Video without any interruption at normal speed and time

Normal

Pass

6

Video sized between 512 kb to 1 MB/24 frame /sec

Browse Video

Normal

Pass

7

Video sized between 1MB to 2MB.

@ 30fps

Browse Video

Little poor

Pass

8

Video sized between 2MB to 5MB.

30 fps

Browse Video

Poor

Pass

Observation:

Error Report: No error has been detected although processing 3rd and 4th condition system got slow but rendered Flawless output. Although large files takes more time and resources in comparison to images as system has to dissemble the each frame and watermark then it has to repack into format on which it was input.

Measure Taken:

The test has been performed on the high configuration system. The results are more satisfactory and acceptable. User should have to increase the paging and physical memory in the system to gain the processing speed.

Graphics User Interface:

Test Case Name: Image and video watermarking

Written By: Abhinav Verma

Item

Question

Yes

No

Menu

Are the Menu icons are meaningful?

Oder of menu of the system.

Buttons

Meaningful Buttons names

Button placement and grouping

Colors

Colors are Appropriate

Colors are relevant with functionality

Colors are eye straining

Combo Boxes

Correct values in combo boxes.

Combo boxes offers only single selection

Form Labels

Form name are correct

Size of the form label.

Text Boxes

The size of the text data is correct.

Message and message boxes

The message box pop-up at right place.

The message in message box is relevant and understood.

Message box pop up sequence and timing are correct.

Screen Layouts

Visibility, size and arrangement of the screen are correct?

Is graphics and Text are in perfect manner?

Fonts

The fonts used are consistent?

Is the text easy to read?

Reported Errors:

The users are uncomfortable with the color of the interface and graphics and text are not well suited and soothing.

Measures Taken: Colors have been changed and graphics & text are made calming.

Conclusion:

Acceptance Testing

The system will be shown to actual users (The people who are dealing with images and videos in the internet) of the system and their comments will be considered.

Tester = Students of APIIT

Size of test data = Full system

No of times = 2

Combining module testing and integration testing

Integration testing takes as its input modules that have been unit tested, groups them in larger aggregates, applies tests defined in an integration test plan to those aggregates, and delivers as its output the integrated system ready for system testing.

Tester = Students of APIIT

Size of test data = Full system

No of times = 1

Writing Services

Essay Writing
Service

Find out how the very best essay writing service can help you accomplish more and achieve higher marks today.

Assignment Writing Service

From complicated assignments to tricky tasks, our experts can tackle virtually any question thrown at them.

Dissertation Writing Service

A dissertation (also known as a thesis or research project) is probably the most important piece of work for any student! From full dissertations to individual chapters, we’re on hand to support you.

Coursework Writing Service

Our expert qualified writers can help you get your coursework right first time, every time.

Dissertation Proposal Service

The first step to completing a dissertation is to create a proposal that talks about what you wish to do. Our experts can design suitable methodologies - perfect to help you get started with a dissertation.

Report Writing
Service

Reports for any audience. Perfectly structured, professionally written, and tailored to suit your exact requirements.

Essay Skeleton Answer Service

If you’re just looking for some help to get started on an essay, our outline service provides you with a perfect essay plan.

Marking & Proofreading Service

Not sure if your work is hitting the mark? Struggling to get feedback from your lecturer? Our premium marking service was created just for you - get the feedback you deserve now.

Exam Revision
Service

Exams can be one of the most stressful experiences you’ll ever have! Revision is key, and we’re here to help. With custom created revision notes and exam answers, you’ll never feel underprepared again.