© PureTesting 2007Testing Thought Leadership Creating Real-World Test Cases using Extension to Noun and Verb technique.

Slides:



Advertisements
Similar presentations
Microsoft ® Office OneNote ® 2007 Training Using your Notebook to its fullest potential Kent School District presents:
Advertisements

© PureTesting 2008Testing Thought Leadership Extension to Noun and Verb Technique for writing better test cases.
ADABAS to RDBMS UsingNatQuery. The following session will provide a high-level overview of NatQuerys ability to automatically extract ADABAS data from.
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
SAM 2007 v3.0 The Student Experience Including SAM Projects and Course Assess assignments.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
GALVESTON COUNTY, TX P-CARD TRAINING GALVESTON COUNTY.
Tutorial 6 Creating a Web Form
Copyright © 2008 Pearson Prentice Hall. All rights reserved Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
About Links in Dreamweaver. Creating Links A link has 2 parts: –The URL (Uniform Resource Locator)= the name and path of the file you want to link –The.
Word Lesson 8 Increasing Efficiency Using Word
Lesson 13 PROTECTING AND SHARING DOCUMENTS
© by Pearson Education, Inc. All Rights Reserved.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
Quark QuarkXPress 4 Foundation Level Course. What is QuarkXPress? This courseware teaches the fundamentals of QuarkXPress 4.1. It is a page layout application.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you manage a database?
Lesson 46: Using Information From the Web copy and paste information from a Web site print a Web page download information from a Web site customize Web.
Lesson 46: Using Information From the Web copy and paste information from a Web site print a Web page download information from a Web site customize Web.
Windows Tutorial 9 Maintaining Hardware and Software
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Microsoft Office Word 2013 Expert Microsoft Office Word 2013 Expert Courseware # 3251 Lesson 5: Setting Up Global Accessibility.
Digital Logic and State Machine Design Installing Xilinx WebPACK 12.4 CS 2204 Digital Hardware.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Introducing Dreamweaver MX 2004
Getting Started with Application Software
Inspire students to develop ideas & organize thinking
CTS130 Spreadsheet Lesson 3 Using Editing and Formatting Tools.
COMPREHENSIVE Windows Tutorial 9 Maintaining Hardware and Software.
Project 1: Creating a Dreamweaver Web Page and Local Site 1 Project Objectives Add a background image Open and close panels Display and describe the Property.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
IE 411/511: Visual Programming for Industrial Applications
Creating a Web Site to Gather Data and Conduct Research.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
Exploring Microsoft Office Prerequisites: Essentials of Windows Prerequisites Essentials of Windows® 2000 By Robert T. Grauer Maryann Barber.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Downloading and Installing Autodesk Revit 2016
Chapter 1 Creating a Dreamweaver Web Page and Local Site
Prachi Chitnis.  The CSS feel  SDS – Synoptic Display Studio  ADL Converter  PV table, Probe…
ITCS373: Internet Technology Lecture 5: More HTML.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
1 HTML Forms
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Introduction to JavaScript CS101 Introduction to Computing.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
Creating and Editing a Web Page
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Thanapoom Boondee M.2/2 No.22. Pattawan Tangpattananon M.2/2No.5 Tuchatham Tosakul M.2/2No.13 Thanapoom Boondee M.2/2No.22 Suvit Pathomthanasarn M.2/2No.30.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Desktop Publishing Lesson 1 — Working with Documents.
Lesson 13 PROTECTING AND SHARING DOCUMENTS
Computer Literacy BASICS
Getting Started with Application Software
Prerequisites Essentials of Windows® 2000 By Robert T. Grauer
Practical Office 2007 Chapter 10
Lesson 13 PROTECTING AND SHARING DOCUMENTS
Microsoft FrontPage 2003 Illustrated Complete
Lesson 9 Windows Management
Managing Files and Folders
Windows Tutorial 9 Maintaining Hardware and Software
Zip file is also known as “Archive File ”. Transportation and storage are the purpose to use the Zip file. It compress the data. It saves the file With.
Presentation transcript:

© PureTesting 2007Testing Thought Leadership Creating Real-World Test Cases using Extension to Noun and Verb technique

© PureTesting 2007Testing Thought Leadership Is This A Lesson in English? Time to work on Nouns and Verbs and Adjectives and Adverbs Were we not supposed to discuss testing?

© PureTesting 2007Testing Thought Leadership Noun and Verb Technique

© PureTesting 2007Testing Thought Leadership ***Nouns and Verbs, Adjectives and Adverbs Some software systems exist to manipulate specific kinds of data The kinds of data sets are the nouns The manipulations are the verbs Adjectives and adverbs affect the manipulation Identify these items Write test in sentences Even trace coverage For example, an ATM system should Accept deposits Process withdrawals Answer inquiries Kinds of deposits, withdrawals, inquiries? Quickly? Securely? This test design technique comes from Elisabeth Hendrickson. ***Rex Black: Effective and Efficient Testing Course

© PureTesting 2007Testing Thought Leadership Extending Noun and Verb Technique Challenges in using the technique Often Requirements are not sufficiently detailed Extracting enough Noun and Verbs is difficult Writing complex scenario based tests from this technique is difficult The technique has been extended at PureTesting and used successfully Next few slides will present the extension with the help of an example…

© PureTesting 2007Testing Thought Leadership Extension Extract the nouns and verbs Use 5W1H to extract adjectives, adverbs and more information Use pre and post conditions to extract more nouns and verbs Enumerate properties of every noun Break down these properties to base elements Use boundary values, equivalence classes on the base elements Write tests for individual properties Combine operations (verbs) to write scenario based test cases of arbitrary complexity Create test cases using pre and post conditions

© PureTesting 2007Testing Thought Leadership Applying the Extended Technique

© PureTesting 2007Testing Thought Leadership Example: File Open Requirement fragment: The application allows users to open supported files. With the given requirement fragment Very few meaningful test cases can be written using any test design technique Using out extension to noun & verb technique we plan to write extensive test cases

© PureTesting 2007Testing Thought Leadership Extracting the Nouns and Verbs The application allows users to open supported files Extracting Nouns Extracting Verbs Extracting Adjectives and Adverbs

© PureTesting 2007Testing Thought Leadership File open… Noun Look for properties of this noun Also ask What, Why, When, Where, Who, Which, How, How much/many Verb Look for properties of this verb Also ask What, Why, When, Where, Who, Which, How, How much/many

© PureTesting 2007Testing Thought Leadership File: Properties Enumerate all the properties of FILE File has Name Size Location Extension Metadata Creation date Accessing date Modification date State

© PureTesting 2007Testing Thought Leadership File: Properties Type Access Control Password protection Attributes Compression Support Encryption Support Creating application version

© PureTesting 2007Testing Thought Leadership Breaking Down the Properties: Name Name - is a string String - is a SEQUENCE of Characters Sequence = Length of string Characters are elements of some valid character set (THUS) Name Has a length Has a set of allowed characters And some characters are not allowed (/ or \ in file name on windows, spaces on Linux/Unix platforms)

© PureTesting 2007Testing Thought Leadership Applying Boundary Values Name/String Has a length (maximum and minimum) Has a set of allowed characters (valid equivalence class) And some characters are not allowed (invalid equivalence class)

© PureTesting 2007Testing Thought Leadership Properties: Location Location Is a string Has a length (maximum and minimum) Has a set of allowed characters (valid equivalence class) And some characters are not allowed (invalid equivalence class) Also denotes physical location On a locally connected drive (HDD, CD, Floppy…) On the LAN Using UNC path Other operating systems (e.g. Linux connected using samba) On a web page as a link

© PureTesting 2007Testing Thought Leadership Properties: State State in use/not in use Saved/unsaved In use/open Unmodified Modified New New/Modified Without data With data

© PureTesting 2007Testing Thought Leadership Properties: Type Type: Supported/not supported by the application Binary or Text Valid/invalid (corrupt)

© PureTesting 2007Testing Thought Leadership Properties: Extension With extension Without extension Correct extension Incorrect extension

© PureTesting 2007Testing Thought Leadership Properties: Attributes Read only Writable Archive Hidden …

© PureTesting 2007Testing Thought Leadership Dealing with the Verb(s) Applying 5W1H Open What? File with various properties Supported and unsupported files … Open Where? Supported Operating Systems Application under test Browser plug-ins, if supported

© PureTesting 2007Testing Thought Leadership Dealing with the Verb(s)… Open how? Open in various ways double click drag and drop command line application menu open with … Open how many? Open one (minimum number of) file Many files Max. number of files that can be opened simultaneously… How fast How much time does it take to open the file?

© PureTesting 2007Testing Thought Leadership Some Simple Positive Test Cases Open a (supported) file Minimum size Maximum size Minimum name length Maximum name length Located on a network drive/web With and without appropriate extension Created using older/newer version of creating application Password protected Read-only …

© PureTesting 2007Testing Thought Leadership Some Simple Negative Tests Open file(s) of Unsupported type Changed extensions Corrupt file Invalid/non-existent name …

© PureTesting 2007Testing Thought Leadership Scenario Based Tests Open a new file. Open another existing but closed file. Open an already open file. Open an existing file. Modify it. Open the same file again. Open an existing file. Modify it. Open another file. Open a local file. Open another file on the web. Open multiple files together. Check performance Open a very large file on the network. Check performance. Repeat the Open operation a number of times (repetitive tests for resource leaks…)

© PureTesting 2007Testing Thought Leadership Pre-Conditions Before the operation is performed on the nouns think what conditions should be satisfied? For example, before file can be opened File should exists Application to open the file should be installed Activation of the software is required? Permissions need to be checked? Preprocessing needs to be done? Anything else?

© PureTesting 2007Testing Thought Leadership Post-Conditions OK, I have performed the action. Now what?

© PureTesting 2007Testing Thought Leadership Expanding the requirement What (after file open)? File is opened Where in the application window What are properties of application window? Location on the screen Size of the window State of GUI elements such as menus/buttons (enabling/disabling etc.) What are the properties of OPEN FILE? Cursor location Zoom level …

© PureTesting 2007Testing Thought Leadership Writing more Tests What is the position of application once file is opened What is the cursor position after opening the file At what zoom level does the file open? …

© PureTesting 2007Testing Thought Leadership Food for Thought A string needs to be displayed What is the encoding? What is the font for display? Default font? Size? Color? …

© PureTesting 2007Testing Thought Leadership Family of Nouns Are Nouns related to each other?

© PureTesting 2007Testing Thought Leadership Summary Using the extended N&V technique testers can Write effective set of test cases Reduce the impact of bad/missing requirements Raise important questions about software behavior Bring more uniformity in the coverage even when different testers write tests cases

© PureTesting 2007Testing Thought Leadership Q & A