Systems & Software Talk 

Visitors since August 14, 2007: Free  Web Counters
Free Hit Counters

Manual Data-driven Test Procedure Example

06:30, 2007-Sep-8  ..  Posted in Functional Testing  ..  0 comments  ..  Link

This is a simple manual data-driven test procedure. For you geeky-techie IT history buffs: Data-driven techniques were used long before the advent of tools geared toward test automation. Things to note:

  1. [ ] is used to enclose variable data or test cases.
  2. ( ) is used to enclose another operation, in this case a call to another test procedure.
  3. As an example, this assumes that a real-world procedure document would contain that information necessary to assure the tester is equipped with the correct version of procedure, application-under-test, and other information critical to test preparation and execution.
  4. For example purposes embedded calls to suggest other tests are included. Let us look at the Call (GUI_Standards) step. This suggests addional steps bundled separately where one might expect validation of button color, size, position, font, font color, default tab stop and focus, tab order, and hot key indicators, etc.
  5. You would need to add your own Expected Result column - OR - indicate that the role_buttons are also the Expected Results. The Expected Result column was intentionally omitted to allow a proper fit of the example on this page.
  6. As with all procedures, this should not be executed while under the influence of alcohol or other mind-altering substances.

BIG HUGE GINORMOUS NOTE!

This was cast in MS-Word as it was intended as an example only. One could easily put this into an MS-Excel file with the input data in a column separate from the actual steps. What does this do for you? It sets you up for usage by an automated test tool. If you take it that far, then you would of course add columns as necessary to fit within your automation strategy and framework. Also, if you are thinking about ways to implement and/or improve upon this whilst you are in the jaws of an alligator or you are making a dead-stick landing in your Cessna 172; then you might just be a real tester.

Test Number/Name

Spec Ref

Test Description

Test Steps/Data

Result

Pass/Fail

Date/Time

Remarks

Defect ID

Roles-001 Login

BUC-User Privileges - 001

Prove correct buttons are displayed for each user role.

For Each [role]

Login [role] to application

Verify [role_buttons]

Call (GUI_Standards)

Logout [role] from app.

Call (VerifyLogout)

End For Each

-------- DATA FOR ABOVE ------------

[role and role_buttons]:

Admin

Add

Modify

Delete

Assign Privileges

Reader/Writer

Add Account

Maintain Account

Delete Account

View Account Details

Transfer Account

Reader

View Account Details

Alert Account Service Rep

   

Roles-002 Login

BUC-User Privileges - 002

Prove role buttons operate correctly for each user role.

Left for you the reader!

   


Are both Blackbox and Whitebox testing necessary?

06:47, 2006-Oct-10  ..  Posted in Functional Testing  ..  0 comments  ..  Link

"Why do you go for White box testing, when Black box testing is available?" – from a post at SQAForums.

This is an excellent question with a vast domain of reasons why. I’ll venture some opinions and reasons.

ASSUMPTION:

Software development embodies more work than writing code. Software development includes debugging, unit, and unit-integration testing – at a minimum. Therefore, one can conclude that "white-box" testing is required and should not be a matter of choice or that one is optional as the original question might indicate.

IMO:

Omitted or neglected white box testing is simply deferred work; work remaining for others downstream in the life-cycle. Unfortunately in many organizations, where white box testing is neglected, it appears to management that development is further along than anticipated! When that happens, those forces that have the strongest influence on release dates will act to coerce a premature release based upon perceived progress – not real progress. In the interim, what typically will have happened? QC finds a large number of defects that should have been detected and corrected in development. This large number overwhelms the defect management process and people get crabby. R&D in some cases will tell the QC people to quit reporting so many defects. The product goes out the door. Waves of stupid questions arrive at the doorstep of QC. "Why did YOU let that bug get into production?" "Don’t YOU people test?" Then the QC people get really crabby and begin to commiserate at SQAForums.

     There are typically many areas of code untouchable by black box test engineers - if we say most of the testing executed by the black box test engineer is via the human interface. Here are a few examples of many of the possibilities:

  1. Retry loops
  2. Timing loops
  3. Poorly written queries (debatable of course!)
  4. Conversion of data with overlying formatting code

Here is a specific example from my past related to item 4. This example illustrates two defects, neither of which could be caught in black-box testing.

Context:

  • ANSI-FORTRAN/77 (contract required ANSI-compliance)
  • Back in the days when a numbered menu on a GUI was still vogue.
  • The menu had to display 12 items in the current context of the application.

What?

  • The developer used a library function to output the numeric list for the application context.
  • The display guy took the output and displayed it.
  • From a black-box point-of-view, "It" appeared to work great.

They did not unit test the code. I ended up doing the unit and unit integration testing for this piece. My original role was to develop software (before such software existed as it does today) to verify ANSI-compliance of project software source code. I found that the library function was non-ANSI and therefore in violation of the contract. This was thus an as-implemented bug undetectable via black-box testing. I concluded that there might be a fire under the smoke. I searched deeper. The code written by the display guy obscured a defect in the code (with the library call) that created the list. Apparently the display guy thought, "Oh well, that is how the non-ANSI function works." He took that output and formatted it properly for display. This layered defect was not detectable via black-box testing. Replacement of the non-ANSI library function call with custom code exposed the display-formatting defect.

LEARNINGS:

  • Black-box testing cannot expose all defects.
  • A robust test program requires testing in various categories and at many levels.
  • Development means much more than writing code.


Functional Test Estimating Guide

08:19, 2006-Mar-23  ..  Posted in Functional Testing  ..  5 comments  ..  Link

Of course the referenced doc is heavily caveated!  :)  I prepared it as a reaction to a manager (go figure) who was confrontationally wondering why my team needed "so much time" to test (go figure again).  This soothed the manager. So, at the very least it can be applied as an eOintment to soothe a manager.

Please leave a comment to this topic if you download this document. By all means, please feel free to critique it, use it, rant and rave, shred and use it for confetti, or pour beer on it. If you find it useful and would like your comments incorporated for the benefit of others, please inform me. I will be happy to maintain a master document accessible here.

UPDATE: 15-JAN-2007

I find it amazing how many times this has been downloaded and neither critique nor gratitude has been communicated. The only way this can get better is with a feedback loop! So, let me ask again... If you download it, please leave a comment. If you have suggestions for improvement, please communicate them to me! Thank you!

http://www.sqablogs.com/uploads/j/JakeBrake/296.doc

 



About Me

Home
My Profile
Archives
Friends
My Photo Album

Links

Corey Goldberg
Effective Testing?
Bj Rollison I.M. Testy Blog
Alan Page: Software Testing & Rants
Dmitry's LoadRunner and QTP Blog
Veterans History Project
Air Traffic Control Watch
Music Making Fun
My home 1972-1975

Categories

Functional Testing
Performance Horror
Development
Performance Testing
General
Tools Tips
Warped Humor
LoadRunner Tips and Tricks

Recent Entries

Introducing Testalis
Defect Report - Politically Correct
Performance Testing Vuser Personas – Part I
Happy Holidays 2007
Acceptance Testing (UAT) - Some Answers to Some Questions

Friends

LauraScharp
philk10
richardw100
aalhait
jimhazen
strazzerj
Lynnem
bru
EklecticTester
jgottlieb
leakybrain
michaeljf
prainbow
rajeshmathur
rstens
Yury
zeeslo
whollymindless

Syndication

RSS Site Feed