Search

Friday, July 24, 2009

White-Box Testing Techniques


1) Control Flow

Statement Coverage: To write test cases such that every statement is executed at least once, it is a weak criteria, it will not test the validity of logical operators

Decision (Branch) Coverage: Decision Coverage (also called Branch Coverage) states that test cases must be written such that each decision has a True and False outcome at least once, Decision Coverage emphasizes that each branch direction must be executed at least once, It usually satisfies Statement Coverage

Condition Coverage: Condition Coverage technique states that test cases must be written such that every condition in a decision takes all possible outcomes at least once, Condition Coverage technique may not cover all decision outcomes


Decision/Condition Coverage: Decision/Condition coverage technique states that each condition should take on all possible outcomes at least once and each decision must take on all possible outcomes at least once


Multiple Condition Coverage: Multiple Condition coverage technique states that test cases must be written such that all possible combinations of conditions in each decision are taken at least once

Loop Coverage: Loop coverage technique states that test cases must be written to test the loop counters

2) Data Flow

All Definitions
All Predicates Uses
All Computation Uses
All P-uses/some C-uses
All Uses



Walkthrough - Main purpose: understanding
  • Author guides the group through a document, so all understand the same thing, concensus on changes to make

Review - Main purpose: decision-making

  • Group discusses document and makes a decision about the content, e.g. how something should be done, go or no-go decision

Inspection - Main purpose: find defects

  • Formal individual and group checking, using sources and standards, according to detailed and specific rules
  • Inspection is a well-defined process

Thursday, June 18, 2009

QTP (Quick Test Professional)

QTP (Quick Test Professional)

Quick Test Professional is software from Mercury Interactive. It is a Graphical User Interface functional testing tool that basically allows user actions to be automated on a client or web based computer application. QTP makes use of Visual Basic Script in order to allow the testing tool and the controls and objects of the application being tested to interact.

What is Smart Identification in QTP

Smart Identification is applicable for web application only. Record one object from application and modify the object property and execute your script. You will get one warning message in result. Navigate to working message in result file and read the note for smart identification.
Smart Identification is nothing but, if any property of test object is not matching with run time object property, it will write a warning to result and execute rest of the steps.Note: In the result Cap symbol will added for smart identification. (By looking in to this we can say that properties of test object is not matching with run-time object)


How to increase the execution speed of QTP scripts?


Go to Tools>Options>Run>select Fast
with using descriptive programming also u can do fast the execution

Reduce the lines of script. Writing the good test case means which is finding the correct error. Without using the object repository i.e. descriptive programming. its the optimization we call just decreasing the input and producing the quality


What is Key Word driven Testing?
Software test scripts are conventionally composed ad hoc by a coder. Some software development tools help automate testing by recording tests that are run, allowing "playback" of the test routines. However, an entire test routine is rarely, if ever, applicable to more than one release of one application. Data-driven testing adds some modularity by keeping test input and output values separate from the test procedure, but the procedure itself is still in a monolithic script. Keyword-driven testing breaks the test procedure into logical components that can then be used repeatedly in the assembly of new test scripts.