Total Testing Meterial

  • Upload
    reet26

  • View
    231

  • Download
    0

Embed Size (px)

Citation preview

  • 7/30/2019 Total Testing Meterial

    1/97

    Soft WareTesting:

    Why did you choose this Course?* 1. Scope of getting job is very high.

    2. No need to depend up on any technologies.3. Testing remains forever4. I want to be consistent through out my life

    Why explicitly the s/w companies arerecruited the test engineers?

    1. One person cannot efficiently perform two tasks at a time2. Sentimental attachment.

    Who can do the course?Any graduate can do this course at this point of time

    What exactly we require to get a job?1. Stuff2. Communication skills3. Confidence4. Dynamism

    Project:Project is some thing that is developed based on the particularcustomers requirements and used by that customer only ( E.g.:Marriage laddu)

    Product:It is some thing that is developed based on the companies specification and

    used by the multiple customers (e.g.: Thirupathi laddu)Quality:Classical definition for quality: - Quality is defined as justification of all therequirements of customer in a product.

    NOTE: Quality is not defined in the product; it is defined in the customers mind

    Defect: - Defect is defined as deviation from the requirements

    [email protected] 1

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    2/97

    Latest definition for quality: - quality is defined as not only the justification ofrequirements but also the presence of value (User friendliness) Testing:

    Testing is processes, in which the defects are identified, isolated, subjected

    for rectification & ensure that the product is defect free. In order to produce the

    quality product in the end and hence customer satisfaction.

    Bidding the Project:Bidding the project is defined as request for proposal, estimation and signing

    off (Official agreement).

    Kick Off Meeting:It is an initial meeting conducted in the soft ware company soon after the

    project is signed off. In order to discuss the overview of the project and to select a

    project manager for the project.

    Usually high level management, Project managers, team managers, quality

    managers, team leads and quality leads will be involved in this meeting.

    PIN (Project Initiation Note):-It is a mail prepared by the project manager and sent to the CEO of the soft

    ware company in order to get the permission to start the project developments.

    Software Development Life Cycle (SDLC):-SDLC contains six phases they are

    1. Initial phase or requirements phase.

    2. Analysis phase

    3. Design phase

    4. Coding Phase

    5. Testing Phase

    6. Delivery & Maintenance Phase.

    I. Initial Phase or Requirements Phase :(a) Tasks: Interaction with the customer and gathering the requirements.

    (b) Roles: Business Analyst (B.A), Engagement Manager (E.M)

    Process: First of all the business analyst will take an appointment from thecustomer, collects the templates from the company, meets the customer on

    appointed day, gathers the requirements with the help of template and comes back

    to the company with the requirements documents.

    [email protected] 2

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    3/97

    Once the requirement document has come to the company the

    engagement manager will check whether the customer gives any extra requirements

    or confused requirements. In case of extra requirements he deals the excess cost of

    the project. In case of confused requirements he is the responsible for prototype

    demonstration and gathering the clear requirements.

    Proof: The proof document of this phase is Requirements Document. This iscalled with different names in different companies.

    1. FRS (Functional Requirements Specification)

    2. CRS (Customer Requirement Specification)

    3. URS (User Requirement Specification)

    4. BDD (Business Design Document)

    5. BD (Business Document)

    6. BRS (Business Requirement Specification)

    Some companies may maintain the over all business flow information in one

    document and the detailed functional requirement information in the other

    document

    Templates: It is a pre defined format, which contains the predefined fields, andused for preparing a document in an easy, comfort and perfect manner.

    Prototype: -Defined as a roughly & Rapidly developed model which is used fordemonstrating to the client, In order to gather the clear requirements and to win the

    confidence of a customer.

    II. Analysis Phase:

    (a) Tasks:

    1. Feasibilty Study

    2. Tentative planning

    3. Technology Selection

    4. Requirement Analysis

    (b) Roles: System Analyst, Project Manager, and Team Manager.

    Process

    1. Feasibility Study: - It is detailed study of the requirements in order tocheck weather the requirements are possible or not.

    2. Tentative Planning: In this section the resource planning and the timeplanning (scheduling) is done temporarily.

    [email protected] 3

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    4/97

    3. Technology Selection: - The list of all the technologies that are requiredto accomplish this project. Successfully will be analyzed and listed out in this

    section.

    4. Requirement Analysis: - The list of all the requirements that arerequired to accomplish this project. Successfully will be analyzed and listed

    out here in this section.

    SRC- System requirement specification

    Proof: - The proof of this phase is system Requirement specification.

    III. Design Phase: -

    Tasks:

    1. High level designing

    2. Low level designing

    Roles: High-level designing is done by the chief Architect & Low leveldesigning is done by the Technical Lead

    Process: The Chief architect will be drawing some diagrams using unifiedmodeling language in order to divide the whole project in to modules.

    The Technical lead will also draw some diagrams in order to divide the

    modules in to sub modules.

    The technical lead will also develop the PSEUDO code in order to make

    developers comfortable while de3veloping the actual code.

    Proof: The proof document of this phase is Technical design document.

    IV. Coding phase:

    (a) Task: Developing or Programming

    (b) Roles: Developers or Programmers

    Process: Developers will develop the actual code by using the technical designdocument as well as following the coding standards like Proper indentation, color

    coding, proper commenting and etc..,

    Proof: The proof document of this phase is source code Document.

    E.g.: The programmer will develop some programs every one will develop his

    program in different colors but the soft ware companies will ask the developers to

    develop the program according to the company standards using proper color,

    coding, commenting. So as to understand it [email protected] 4

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    5/97

    V. Testing Phase:

    (a) Task: Testing

    (b) Roles: Test engineers

    Process:

    1. First of all the test engineers will collect the requirements

    document and try to understand all the requirements

    2. While understanding it at all they get any doubts they will

    list out all of them in a review report.

    3. They will send the review report to the author of the

    requirements document for clarifications.

    4. Once the clarifications are given and after understanding

    all the requirements clearly, they will take the test casetemplate and writes the test cases.

    5. Once the first build is released then they will execute the

    test cases

    6. If at all any defects are found. They will list out all of them

    in a defect profile template then

    7. They will sent the defect profile document to the

    development department and then will be waiting for the

    next build to be released.

    8. Once the next build is released then they re-execute the test

    cases.

    9. If at all any defects are found they will update the profile

    document and sent it to the development department and

    will be waiting fro the next build to be released.

    10. This process continuous till the product is defect free.

    Proof: The proof of the testing phase is Quality Product.

    Test Case: (def) Test case is an idea of a test engineer based on the customersrequirements in order to test a particular feature or a function.

    [email protected] 5

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    6/97

    VI. Delivery & Maintenance Phase:

    Delivery:

    (a) Task: - Installing the application in the clients environment

    (b) Rolls: -Deployment engineer or senior test engineers.

    Process: - The senior test engineer or deployment engineer will be going to the

    clients place and install the application in their environment with the help of the

    guidelines provide in the deployment document.

    Maintenance:

    After delivering the soft ware while using if at all any problem occurs

    then that problem becomes a task, based on that problem corresponding roles will

    be appointed, the roles will defined the process and solve that problem.

    Some clients may request for the continuous maintenance in such situations a

    group of people from the software company will be continuously working on the

    clients place and taking care of the soft ware.

    ************************^^^^^^^^^^^^^^^^^^^************************

    Where exactly the testing comes in to picture?Which sort of testing you are expecting?How many sorts of testing are there? There are two sorts of testing.

    1. Un-conventional testing

    2. Conventional testing

    1.Un-conventional Testing: -Unconventional testing is a sort of testing done bythe quality assurance people, in which they test each and every out come document

    right from initial phase of the SDLC (Soft ware development life cycle)

    2. Conventional Testing: It is sort of testing done by the test engineers on theapplication in the testing phase of SDLC.

    [email protected] 6

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    7/97

    Testing Methodology or Testing techniques:There are three methods of testing

    (a) Black-Box Testing

    (b) White-Box Testing

    (a) Grey-Box Testing

    (a) Black-Box Testing: If one performs testing only on the functional part ofan application with out having any structural knowledge then tat method of

    testing is known as Black-Box testing, usually the test engineers perform it.

    (b) White-Box Testing: If one performs testing on the structural part of anapplication then that method of testing is known as white box testing, usually

    the developers or white box testers perform it.

    (c) Grey-Box Testing: If one performs testing on both the functional part aswell as the structural part of an application then that method of testing as

    known as gray box testing using the test engineers who have structural

    knowledge will perform gray- box testing.

    Levels of Testing:There are five levels of testing

    1. Unit Level Testing

    2. Module Level Testing

    3. Integration Level Testing

    4. System Level Testing

    5. User Acceptance Testing (U.A.B)

    1. Unit Level Testing: -

    It is a level of testing in which one will perform testing on the units. It is a

    white box testing and usually developers or white box testers will perform.

    2. Module Level Testing: -

    Module: Module is defined as a group of related functionalities to perform a majortask

    [email protected] 7

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    8/97

    It is a level of testing in which one will perform testing on the modules. It is a black

    box testing and usually test engineers perform it.

    3. Integration Level Testing: -

    It is a level of testing in which the developers will develop some interfaces tointegrate the modules and test whether the interfaces are working fine or not. It is a

    white box testing usually developers or white box tasters perform.

    The developers may follow one of the following approaches while integrating

    the modules.

    1. Top-down approach

    2. Bottom up approach

    3. Hybrid or Sandwich approach

    4. Bigbang approach

    1. Top-down approach: - In this approach one will develop the parent modulesfirst and then integrate them with the related child modules

    2. Bottom-up approach: - In this approach one will develop the child modulesfirst and integrate them to the parent modules

    3. Hybrid approach Or Sandwich approach:- This is a mixed approach ofboth the top down and bottom up approaches

    4. Big bang approach:-In this approach one will wait till all the modules areready and finally they will integrate all the modules at a time

    STUB: - While integrating the modules in top down approach if at all anymandatory module is missing then that module is replace with a temporary

    program known as STUB

    DRIVER: -While integrating the modules in bottom up approach. If at all anymandatory module is missing then that module is replaced with a temporary

    program known as DRIVER

    4. System Level Testing:

    It is a level of testing in which one will install the complete application in to

    the environment and then perform testing on it. At this level different types of

    testing will be done one among those is system integration testing.

    5. System integration Testing: -

    It is a type of testing in which once the complete application is developed one

    will perform an action at one module and checks for the reflections at the

    [email protected] 8

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    9/97

    corresponding modules. It is a black box testing and usually test engineers

    perform.

    6. User- Acceptance Testing: -

    It is the level of testing in which one will perform the same system testing inthe presence of the user in order to make him accept the application. It is a black

    box testing and usually Test engineer performs it.

    Environment: - Environment is a combination of three layers (e.g.: Yahoo)

    a. Presentation layer

    b. Business layer

    c. Data base Layer

    System: The application installed in to an environment combinable called as system.

    a. Presentation Logic: The logic that is used for viewing application isknown as presentation logic

    b. Business Logic: - The logic that is used for performing the operations onthe application is known as business logic.

    c. Data Base Logic: - The logic that is used for sharing and retrieving thedata is known as database logic.

    Types of Environment: - There are four types of environments

    a. Stand alone environment or One-tier environment

    b. Client server environment or Two-tier Architecture

    c. Web environment or Three-tier Architecture

    d. Distributed environment or N-tier Architecture

    a. Stand Alone environment: -

    In this type of environment all the three layers that is presentation

    layer, Business layer& Database layer will be present in al single tier.

    This type of environment is suitable for single user application.

    One-Tier Architecture

    PL

    BL One tier ArchitectureDBL

    [email protected] 9

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    10/97

    b. Client server environment:

    In this type of environments there will be two tiers, one tier is for

    clients and other tier is for database servers. The presentation layer

    and the business layer will be present in each and every client . The

    database layer will be present in the database server. This type of

    environment is suitable for multi user application in a single or a

    limited area.

    Two tier Architecture

    PL+BL DBL

    PL+BL

    PL+BL

    Clients Server

    c. Web environment: - In his type of environment three tiers will be there. One is

    for clients the middle one is for application server and the other one is for

    database servers. Presentation layer will be present at clients, Business layer

    will be present in the application server, and database layer will be present at

    the database servers. This type of environment is suitable for the applications

    that are used all over the world by limited number users

    Three-tier Architecture:

    PLDBL

    BLPL

    DBLPL

    [email protected] 10Clients Appl Server Database server

    mailto:[email protected]:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    11/97

    Web server: -It is software, which provides web services to the clients.

    E.g.: - Internet Information service (IIS).

    Example for Application servers: Tom pact, Web logic, web sphere etc..,

    d. Distributed environment: -It is similar to the web environment but the number of application

    servers are increased and represented in individual tiers in order to

    distribute the business logic so that the logic will be distributed.

    N-tier Architecture:

    PL DBL

    BL BL BLPL

    PL

    PL

    ******************^^^^^^^^^^^^^^^^^^^^^^^********************************

    [email protected] 11

    Clients Apl server1 Apl server2 Apl server2 Database serv

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    12/97

    Software Development Models: -

    1.Water Falling Model

    Advantages:It is a simple model

    Project monitoring & maintenance is very easy

    Drawbacks:[email protected] 12

    INITIAL

    ANALYSIS

    DESIGN

    CODING

    TESTING

    DEL&MAINT

    Sys.design

    S/w design

    Implementation

    Black box testing

    Delivery toclient

    Req.gathering BRS

    SRS

    TDD, GUI

    Unit testInt. test

    Mod Test

    Sys.Test.UAT

    UTR

    UTR

    UTR

    UTR

    UTR

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    13/97

    Con not accept the new requirements in the middle of the project

    (b) Prototype Model: -

    Advantages: -Whenever the customer is not clear with the requirements this is the best

    suitable model for gathering the clear requirements.

    Drawbacks: - It is not a complete model Prototype has to be built on companies cost User may limit his requirements by sticking to the prototype.

    (B) Evolutionary Model: -

    Advantages: -Whenever the customer is evolving the requirements this is the best

    Suitable model.

    Drawbacks: - Cannot define the dead lines

    Project monitoring & maintenance is very difficult

    No Transparency (No clear)

    [email protected] 13

    Unclear Req

    Prototype

    SRS Doc

    Base lined

    Client environment

    confirmation

    H/W rotot e

    S/WProtote e

    BRS DOC

    H/W rotot e

    H/W rotot e

    REQ.are

    Refined

    Initial Req

    Dev.

    Application User

    validation

    Useraccept

    Appl is Base lined

    Feed back with

    new Req.

    N

    Y

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    14/97

    Spiral Model: -

    Advantages: -This is the best suitable for developing the highly risk based project

    (scientific projects)

    Drawbacks: - Risk analysis and estimation is not an easy task

    It is a costly model

    It is a time consuming model

    (C) Fish Model: -

    Advantages: -This is the best suitable for developing the highly risk based project(scientific projects)

    Drawbacks: -o Time consuming Model

    o Costly model

    [email protected] 14

    Risk Root cause

    analysisEstimation

    Contingencies

    Defining the objectives/WA/Constraints

    Refining &

    planning for thenext cycle

    Implementation

    SRS HLD

    LLD SCD

    eq. Gathering

    RS Review

    SRS Review TDD Review White boxtesting

    Black Box

    testing

    Analysis Design Coding

    Delivery &

    Maintenance

    Test S/W

    Changes

    Sys testing

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    15/97

    Verification: -It is a process of checking conducted on each and every role of the organization in order to

    check whether they are working according to the guidelines or not right from the starting

    of the process till the ending of the process

    Validation: -

    It is a process of checking conducted on the developed product in order to check whether it

    is working according to the requirements or not.

    (D) V-Model: -

    BRS Preparing proj plan

    SRS Preparing Test plan

    Req.Phase testing

    Design Phase testing

    TDD Program phase testing

    Test SCD

    S/W Build System testing

    Test management ProcessTesting User acceptance testing

    Port Testing

    S/W efficiency

    DRE=A/A+BDRE=A/A+BDelivery & Maintenance Test S/W changer

    Advantages; -AS verification and validation as well as test management process is done the out

    come will be a quality product.

    Drawbacks: -o Time consuming mode

    [email protected] 15

    Initial& design

    Phase

    Design &

    coding

    Verification

    Validation

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    16/97

    o Costly model

    DRE: Defects removal efficiency

    End of the Basic part

    Testing part to be continued.

    1. Build Acceptance Testing Or Build Verification Testing Or Sanity

    Testing: -

    It is a types of testing in which one will conduct over all testing on the released build

    in order to check whether it is proper for further detailed testing or not. Even some

    companies call it as smoke testing, but some companies says that just before releasing the

    build the developers will conduct the overall testing on the build that is known as smoke

    testing and once the build is released what ever the test engineers do in order to accept thebuild is known as B.A.T or B.V.T or Sanity Testing.

    2. Regression Testing: -

    It is a type of testing in which one will perform testing on the already tested

    functionalities again and again.

    It is usually done in two scenarios.

    1. Whenever the testers has raised the defects, rectified by the developers and next

    build is released to the testing department then the test engineers will test the

    defect functionality as well as the related functionality once again.

    2. When ever some new features are incorporated by the developers, next build is

    released to the testing department then the test engineers will once again test the

    related functionalities of the new features in order to confirm that they are

    working same as previous.

    Note: - Testing the new functionalities for the first time is known as new testing but notRegression Testing.

    [email protected] 16

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    17/97

    3. Re-Testing: -

    It is a type of testing in which one will test the same functionality again and again

    with different sets of values in order to come to a conclusion whether it is working or not.

    4. - Testing (Alpha Testing): -It is a type of user acceptance testing in which the test engineers will test theapplication in our company, in the presence of the customer.

    Advantage: - If at all any defects are found then there is a chance of rectifying themimmediately.

    5. -Testing (Beta): -It is a type of user acceptance testing done in the clients place either by the end-

    users or by the third party testing experts before actual implementation.

    Drawback: If at all any defects are found then there is no chance of rectifying them

    immediately.

    6. Static Testing: -

    It is a type of testing in which one will perform testing on the application or

    application related factors with out performing any action.

    Eg:- Documentary testing, GUI testing, Code reviews and etc.,

    7. Dynamic Testing: -

    It is a type of testing in which one will perform in the application or its related

    factors by doing some actions

    Eg: - Functionality testing.

    8. Installation Testing: -

    It is a type of testing in which one will install the application in to the environmentby following the guide lines provided in the installation document and if the installation is

    successful then he will come a conclusion that the given guide lines are correct other wise he

    will come to a conclusion that the given guidelines are not correct.

    9. Compatibility Testing: -

    It is a type of testing in which one may have to deploy the application in to the

    multiple number of environments prepared with different combinations of environmental

    components in order to check whether the application is compatible with all that

    environments. This type of testing is usually done to products.

    [email protected] 17

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    18/97

    10. Monkey Testing: -

    It is a type of testing in which one will perform abnormal action on the application

    intentionally in order to check the stability of the application.

    11. Usability Testing: -

    It is a type of testing in which one will check whether the application is user friendly

    or not and it can be comfortably used by the end user or not.

    12. Exploratory Testing: -

    It is a type of testing in which one (Domain Experts) will perform testing on the

    application with out having the knowledge of requirements but by exploring the

    functionality.

    13.End-To- End Testing: -

    It is a type of testing in which one will perform testing on all the end- to-end

    scenarios of the application.

    14. Port Testing:-

    It is a type of testing in which one will deploy the application in to the clients

    environment and check whether it is compatible with that environment or not.

    15. Reliability Testing: -It is a type of testing I which one will perform testing on the applicationcontinuously for long period of time in order to check the stability of the application

    16. Security Testing: -Its is a type of testing in which one will concentrate on the following areas of the

    application

    a. Authentication Testingb. Direct URL Testing (Uniform Resource Location)c. Fire Wall Leakage Testing.

    (a) Authentication Testing: -It is a type of testing in which one will enter different combinations of usernames

    and passwords and try to access the home page in order to check whether only the

    authorized persons are accessing the application or not.

    (b) Direct URL Testing: -

    [email protected] 18

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    19/97

    It is a type of testing in which one will enter the URL of an unauthorized page

    directly in the browser and try to access that page in order to check whether it is been

    accessed or not.

    (c) Firewall Leakage Testing : -It is a type of testing in which one will enter as one level of user and try to access the

    other level of unauthorized pages in order to check whether the firewalls are working

    properly or not.

    17. Mutation Testing: -

    It is a type of testing in which one will perform testing on some thing by doing some

    changes to it.

    18. ADHOC Testing: -

    It is a type of testing in which one will perform testing on the application in his ownstyle after understanding the requirements clearly.

    The Soft Ware Testing Life Cycle Contains SixPhases

    They are

    Test Planning

    Test Development

    Test Execution

    Result Analysis

    Bug Tracking

    Reporting

    [email protected] 19

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    20/97

    Plan: -It is a strategic document, which describes how to perform a task in an effective,

    efficient and optimized way.

    Test Plan: -It is a strategic document, which describes how to perform testing on an application

    in an effective, efficient and optimized way.

    Optimization: -Optimization is a process of utilizing the available input resources to their max and

    getting maximum possible out put.

    1.0 Introduction1.1 Objective

    1.2 Reference Document

    2.0 Coverage Of Testing2.1 Features To Be Testing2.2 Features Not To Be Testing

    3.0 Test Strategy3.1 Levels Of Testing

    3.2 Types of testing3.3 Test design techniques3.4 Configuration management3.5 Test metrics3.6 Terminology3.7 Automation Plan3.8 List of automated tools

    [email protected] 20

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    21/97

    4.0 Base criteria4.1 Acceptance criteria4.2 Suspension criteria

    5.0 Test Deliverable

    6.0 Test Environment

    7.0 Resource Planning

    8.0 Scheduling

    9.0 Staffing& Training

    10.0 Risks & Contingencies

    11.0 Assumptions

    12.0 Approval Information

    1.0 Introduction: -

    1.1 Objective: -The Purpose of the document is clearly described here in this section

    1.2 Reference Document: -The list of all the documents that are refereed to prepare the test plan will be

    listed out her in the section.

    2.0 Coverage Of Testing: -

    2.1 Features to be tested: -The list of all the features that are to be tested in this phase will be clearly

    mentioned here in this section.

    2.2 Features not to be tested: -The list of all the features that are not planned for testing based on the

    following criteria will be listed out here in this section

    a. Out of scope features

    b. Low risk features

    c. The functionalities that are planned to be incorporated in [email protected] 21

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    22/97

    d. The features that are to be skipped based on the time constraints.

    3.0 Test Strategy: -

    Test strategy is defined as an organizational level term, which is used for

    testing all the projects in the organization.

    Test Plan: -It is defined as a project level term, which is used for testing a particular

    project in the organization.

    Note: - Test strategy is common for all the projects but the test plan isspecific for a particular project

    3.1 Levels of Testing: -The list of all the levels of testing that are followed by that company are listed

    out here in this section

    3.2 Types of Testing: -The list of all the types of testing that are followed in that company will be

    listed out here in this section.

    3.3 Test Design Techniques: -Technique: -

    Technique is some thing i.e., used for accomplishing a complex task in an

    easy manner.

    A list of all the techniques that are used by that company while developing

    the test cases will be listed out here in this section.

    Eg: - BVA (Banded value analysis)

    ECP (Equivalence Class Partition)

    3.4 Configuration Management:- To be discussed later

    3.5 Test Metrics: -The list of all the metrics that are maintained in that company will be listed

    out here in this section

    3.6 Terminology: -The list of all the terms and the meaning that are used in that company will

    be listed out here in this section

    3.7 Automation Plan: -The list of all the areas that are plan for automation in that company will be

    listed out here in this section.

    3.8 List Of Automated Tools: -

    [email protected] 22

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    23/97

    The list of all the automated tools that are used in that company will be listed

    out here in this section.

    4.0 Base Criteria: -

    4.1 Acceptance Criteria: -When to stop testing feeling that enough testing has been done on the

    application is clearly described here in this section.

    4.1 Suspension Criteria: -When to suspend testing suddenly (abruptly) will be clearly mentioned here

    in this section.

    5.0 Test Deliverable: -

    The list of all the documents that are to be prepared during the testing phase

    will be listed out here in this section.

    Eg: Test case, defects profile document.

    6.0 Test Environment: -

    The customer specified environment would be clearly described here in this

    section. The same environment will be simulated in the company and will be used

    for testing purpose.

    7.0 Resource Planning: -

    Who has to do what is clearly described here in this section.

    8.0 Scheduling: -

    The starting dates and the ending data of the each and every task is clearly

    planned here in this section.

    9.0 Staffing& Training: -

    How much staff is to be recruited and what kind of training is to be providedis clearly described here in this section.

    10.0 Risks & contingencies (Solution Plans): -

    The list of all the potential risks and the corresponding solution plans will be

    listed out here in this section.

    Example:

    Risks:

    i. Unable to deliver the soft ware with in dead [email protected] 23

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    24/97

    ii. Employees may leave the organization in the middle of the

    project

    iii. Customer may impose the dead lines.

    iv. Unable to test all the features with in the time.

    v. Lack of expertisation

    Contingencies (solution Plans):

    i. Proper plan ensurance.

    ii. Employees need to be maintained on the bench.

    iii. What not to be tested has to be planned in case of imposed

    dead lines.

    iv. Severity & Priority based testing.

    v. Proper Training needs to be provided.

    11.0 Assumptions: -

    The list of all the assumptions that are to be assumed by the test engineer will

    be listed out here in this section.

    12.0 Approval Information: -

    Who has to approve what is clearly described here in this section.

    USE CASES

    Use Cases:Use case is a description of functionality of certain features of an application

    in terms of actors, actions& responses

    Input information required for preparing the use case Document: -

    i. Screen shot

    [email protected] 24

    Screen Shots

    LLI (Low-levelInformation)

    HLI (High levelInformation)

    FRS (Functional Requirement Specification)

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    25/97

    ii. Functional requirements

    iii. Special requirement/Business rules/Validation

    iv. Template

    i. Screen Shot: -

    User name

    Password

    Connect to

    ii. Functional Requirements: -

    a. Login screen should contain username, password, Connects To fieldsand login, clear, cancel buttons.

    b. Connect to is not a mandatory field but when ever user requires itshould allow him to select a data base option.

    c. Up on entering valid username, valid password and clicking on loginbutton corresponding page must be displayed.

    d. Up on clicking on the clear button the information present in all thefields must be cleared and the cursor must be available in the user

    name field

    e. Up on clicking on the cancel button login screen must be closed.

    iii. Special requirement/Business ruled/Validation: -

    a. Initially whenever the login screen is Invoked Login, clear buttons mustbe disabled.

    b. Cancels Button must be always enable.

    c. Up on entering user name and password the login button must beenabled.

    d. Up on entering some information in to any of the fields the clear buttonmust be enablede. The Tabbing order must be user name, Password, Connect to, Login,

    clear, cancel.

    iv. Use Case Template:Name Of The Use Case :

    Brief Description of Use Case :

    Actors Involved :

    Special Requirements :

    Pre Condition :

    Post-Conditions :

    [email protected] 25

    Login Clear Cancel

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    26/97

    Flow of Events :

    Use case: Use case is prepared by BA in the Functional Requirement Specification

    (FRS), which are nothing, but a steps, which are given by the customer.

    Test Case: It is prepared by the Test Engineer based on the use cases from FRS to

    check the functionality of an application thoroughly.

    Test Plan: Team Lead prepares Test plan, in it he represents the Scope of the test,

    What to test and What not to test, Scheduling, What to test using automation etc.

    v. Use Case Document:

    Name of the use case: Login use case.

    Brief Description of use case: It describes the functionalities of all thefeatures present in the login screen.

    Actors Involved: Normal user, Admin User.

    Special Requirements: There are two types of special requirements1. Explicit requirements

    2. Implicit requirements

    1. Explicit Requirements: -

    The Requirements that are directly given by the customer are knownas explicit requirement.

    2. Implicit Requirement: -The requirements that are analyzed by the business analyst feeling

    that they will add the value (user friendliness) to the application are known

    as implicit requirements.

    List of Explicit requirements: -

    Initially whenever the login screen is Invoked Login, clear buttons

    must be disabled.

    Cancels Button must be always enable.

    Up on entering user name and password the login button must be

    enabled.

    [email protected] 26

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    27/97

    Up on entering some information in to any of the fields the clear

    button must be enabled

    The Tabbing order must be user name, Password, Connect to, Login,

    clear, cancel.

    List of Implicit Requirements: -

    Initially whenever the login screen is invoked the cursor must be available in

    the user name field

    Upon entering in valid username, valid password and clicking on log in

    button an error message should be displayed Invalid username Please try

    again

    Upon entering valid username, In valid password and clicking on login

    button an error message should be displayed Invalid Password Please Try

    again

    Upon entering Invalid username, Invalid password and clicking on login

    button an error message should be displayed Invalid user name and

    password Please try again

    Pre-Conditions: Login screen must be available

    Post-Conditions: Either home page or admin page for the valid user and errormessage for the invalid users

    Flow of Events: There are three flows for the application

    1. Main Flow

    2. Alternative Flow3. Exceptional Flow

    1. Main Flow:Action Response

    [email protected] 27

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    28/97

    1. Actor invokes the application.

    2. Actor enters valid user name, Valid

    password and clicks on login button.

    3. Actor enters valid user name, validpassword, selects a database option and

    clicks on login button.

    4. Actor enters invalid user name Valid

    password and clicks on login button.

    5. Actor enters valid user name, Invalid

    password and clicks on login button.

    6. Actor enters both username and

    password invalid and clicks on loginbutton.

    7. Actor enters some information in to any

    of the fields and clicks on clear button.

    8. Actor clicks on the cancel button.

    1.Login Screen is displayed with the following fields

    Username, Password, Connect to, Login, Clear&

    cancel.

    2. Either home page or admin page is displayed

    depending up on the actor entered by authenticating.

    3. Authenticates, Either home page or admin page isdisplayed depending up on the action entered with

    mentioned data base connection.

    4.Go to Alternative flow table 1

    5.Go to Alternative flow table 2

    6.Go to Alternative flow table 3

    7.Go to Alternative glow table 4

    8. Go to Alternative flow table 5.

    1. Alternative flow table 1: -(Invalid User name)

    Action Response

    Actor enters invalid user name, validpassword and clicks on login button

    Authenticates an error message isdisplayed Invalid User name Please Try

    again.

    2. Alternative Flow Table 2: -(Invalid Password)

    Action ResponseActor enters valid user name, invalid

    password and clicks on login button

    Authenticates an error message is

    displayed Invalid User Password Please

    Try again.

    3. Alternative Flow Table 3: - (Invalid username & Password)

    Action Response

    Actor enters invalid user name, invalidpassword and clicks on login button Authenticates an error message isdisplayed Invalid User name and

    password Please Try again.

    4. Alternative Flow Table 4: - (Clear Click)Action Response

    Actor enters some information in any of

    the fields and clicks on clear button

    All the fields are cleared and cursor is

    placed in the user name fields

    [email protected] 28

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    29/97

    5. Alternative Flow Table 4: - (Cancel click).

    Action ResponseActor Clicks on the cancel button. Login screen is close

    Identify the module to which the use case belongs.

    Security module.

    Identify the functionality of the use case with respect to the total

    functionalityAuthentication

    Identify the functional points and prepare the functional point document.

    Identify the input required to perform testing

    Valid & invalid Inputs

    Identify the actors involved in the used case

    Normal user & Admin user.

    Identify whether the use case is linked with any other use case.

    Home page and Admin page use cases

    Identify the pre conditions

    Login Screen mist be available

    Identify the post conditions

    Either home page or admin page for valid users and error message for

    invalid users

    Understand the main flow of the application

    Understand the alternative flow of the application

    Understand the special requirements

    Document the test cases for the main flow

    Document the test cases for the alternative flow

    Document the test cases for the special requirements

    Prepare the cross-reference matrix.

    Functional Point: -The point where an user can perform some action is known as

    functional point.

    [email protected] 29

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    30/97

    Testing Process: -FRS FPD MTCD DTCD DPD

    FRS- Functional Requirement Specification

    FPD-Functional port Document

    MTCD-Master Test Case Document

    DTCD-Detailed Test Case DocumentDPD-Defect Profile Document

    Cross Reference Document: -(Traceably Document)

    It is a document, which contains a table of linking information used for

    tracing back for the reference in any kind of ambiguous (confusion) or questionablesituation.

    Common Tracebility Matrix

    Requirement Tracebility Matrix

    TCID REQ ID

    1

    2

    3

    4

    5

    6

    7

    8

    1

    1

    1

    2

    2

    2

    2

    2

    [email protected]

    VLD

    FPD MTCD DTCD DPD

    2

    8

    7

    22

    3

    5

    28 1

    5

    47

    30

    UN-Entry

    PW-Entry

    Login ClickCancel Click

    Clear Click

    Validate Login

    check

    Validate CancelCheck

    Validate Clear

    Check

    1

    2

    34

    5

    67

    VLD

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    31/97

    Defects Tracebility Document

    DID TCID

    1

    2

    34

    5

    6

    28

    32

    6596

    48

    52

    Types Of Test Cases:There are two types of test cases if we see broadly they are:

    1. GUI Test Cases2. Functional Test Cases

    The Functional cases are further divided in to Two types

    (a) Positive Test Cases,(b) Negative Test Cases.

    Guide Lines fro developing the GUI Test Cases:

    Check for the availability of all the objects

    Check for the alignments of all the objects up on customer requirements

    Check for the consistency of all the objects

    Check for the spellings and grammar

    Apart from the above guide lines any thing else that can be tested just by

    looking with out doing any actions will fall under GUI test cases

    Guide Lines for Positive Test Cases:

    A test engineer should have positive mind set up

    He should consider the positive flow of the application

    He should use only the valid Input

    Guidelines for developing Negative Test Cases:

    A test engineer should have negative mind set up

    He should consider the negative flow of the application

    He should use at least one invalid input per a set of data

    [email protected] 31

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    32/97

    Test Case Template: -

    (a) Test Objective

    (b) Test scenario(c) Test procedure

    (d) Test Data

    (e) Test Cases

    (a) Test Objective: -The main purpose of the document is described here in this section

    (b) Test Scenarios: -The list of all the scenarios that are to be tested will be listed out here

    in this section.(c)Test Procedure: -

    DEF: It is a functional level term, which describes how to perform

    testing on the functionalities of the application.

    The plan for testing the functionalities is briefly described here

    in this section

    (d) Test Data: -The date that is required for testing is made available here in this

    section

    (e) Test Cases: -

    The format of a test case template is given below

    TCID TC

    TYPE

    DESCRIPTION EV AV Result Severity Priorit

    y

    Reference

    [email protected] 32

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    33/97

    est case Table

    TCID TYPE Description Expected Value Actual Value Result Severity Priority Refer

    1 GUI

    Check for the availabilityof all the objects as perthe Login Obj Tab

    All the objects must beavailable as per thelogin obj tab

    All the objectsare available asper thelogin objtab Pass

    2 GUICheck for the constancy ofall the objects

    All the objects must beconsistent with eachother

    All the objectsare consistentwith each other Pass

    3 GUI

    Check for the spellings ofall the objects as per the

    Login obj TabLogin Obj

    Tab.xls

    All the objects must bespelled properly as perthe login obj tab

    All the objectsare spelledproperly Pass

    4 GUI

    Check for the enableproperty of login, clear andcancel buttons

    Initially login, clearmust be disabled andcancel button must beenabled

    Login, clear andcancel buttonsare enabled Fail

    5 GUICheck for the initialposition of the cursor

    Initially the cursor mustbe positioned in theuser name field

    Initially the cursoris present in theusername field Pass

    6 Positive

    Enter some information into user name andpassword field and checkfor the enabled property oflogin button

    Login button must beenabled

    Login button isenabled Pass

    7 Positive

    Enter some info in to anyof the fields and check forthe enabled property ofclear button

    Clear button must beenabled Clear button is

    enabled Pass

    8 Positive

    Enter user name,Password as per the VITand click on login button

    Corresponding pagemust be displayed asper theVIT

    Correspondingpages aredisplayed as pervalid in puts tablePass

    9 Positive

    Enter username,Password as per the VIT

    and select a data baseoption and click on login

    Corresponding pagemust be displayed asper theVIT With the

    mentioned data baseconnection

    Correspondingpages aredisplayed as perthe VIT with the

    mentioned database connection Pass

    10 Positive

    Enter some information into any of the fields andclear button

    All the fields must becleared and the Cursorshould be placed in theuser name fields

    All the fields arecleared but thecursor is notplaced in theuser name field. Fail

    11 Positive Click on the cancel button

    Login screen should beclosed Login screens

    closed Pass

    [email protected] 33

    http://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlsmailto:[email protected]://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Login%20Obj%20Tab.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Valid%20Inputs%20Table.xlsmailto:[email protected]
  • 7/30/2019 Total Testing Meterial

    34/97

    12 PositiveCheck for the tabbingorder of all the objects

    Tabbing order must beas follows User name,Password, Connect to,Login, Clear, Cancel

    Tabbing order isas followsUsername,Password,Connect toLogin, clear,Cancel Pass

    13 Negative

    Enter username,Password as per the IVITand click on login button

    Corresponding

    messages should bedisplayed as perIVIT

    Corresponding

    error messagesare not displayedas perIVIT Fail

    14 Negative

    Enter some informationonly in to the user namefield and check for theenabled property of loginbutton

    Login button must bedisabled

    Login button isenabled Fail

    15 Negative

    Enter some informationonly in to the passwordfield and check for theenabled property of loginbutton

    Login button must bedisabled

    Login button isenabled Fail

    LOGIN OBJ TAB

    Sno Obj Name Type

    1 User name Text Box

    2 Password Text Box

    3 Connect To Combo box

    4 Login Button

    5 Clear Button

    6 Cancel Button

    Valid Inputs Table

    Sno User Name Password Expected Page Actual value Result

    1 Suresh qtp Admin Admin Pass

    2 Raja rani Home page Home page Pass

    3 Chiru mbbs Home page Home page Pass

    4 Praveen puppy Home page Home page Pass

    5 NTR illu Home page Home page Pass

    6 Admin Admin Admin Admin Pass

    [email protected] 34

    http://var/www/apps/conversion/tmp/scratch_6/Invalid%20Input%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Invalid%20Input%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Invalid%20Input%20Table.xlsmailto:[email protected]://var/www/apps/conversion/tmp/scratch_6/Invalid%20Input%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Invalid%20Input%20Table.xlshttp://var/www/apps/conversion/tmp/scratch_6/Invalid%20Input%20Table.xlsmailto:[email protected]
  • 7/30/2019 Total Testing Meterial

    35/97

    A test Engineer will do the following during the test execution

    1. He will perform the action that is described in the description column

    2. He will observe the actual behavior under the actual value column.

    3. He will document the observed value under the actual value column.

    [email protected]

    Valid Inputs Table (IVIT)

    Sno User Name Password Expected Page Actual value Result

    1 Suresh1 qtp Invalid User name Plz try again Admin Fail

    2 Raja2 rani Invalid User name Plz try againInvalid User name Plz try

    again Pass

    3 Chiru DADAInvalid password Plz try

    againInvalid password Plz

    try again Pass

    4 Praveen TOPIInvalid password Plz try

    againInvalid password Plz

    try again Pass

    5 NTR1 illu4Invalid user name &

    password Plz try againInvalid user name &

    password Plz try again Pass

    6 Admin5 Admin6

    Invalid user name &

    password Plz try again

    Invalid user name &

    password Plz try again Pass

    35

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    36/97

    In this phase the test engineer will compare the expected values with the actual

    values and if both are matched they will document the result as pass other wise they

    will document the result as fail.

    Bug Tracking is a process in which the defects are identified, Isolated and managed

    Defect ID: -

    The lists of defect numbers are mentioned here in this section.

    Defect Description: -What exactly the defect is clearly described here in this section.

    Steps for reproducibility: -The list of all the steps that are followed by the test engineer to identify the defect

    will be listed out here in this section.

    Submitter: -The name of the test engineer who has submitted the defect will be mentioned here

    in this section.

    Date Submission: -The date on which the defect is submitted is mentioned here in this section.

    Version No: -Corresponding Version number is mentioned here in this section.

    Build No: -Corresponding build number is mentioned here in this section.

    Assigned To: -The development lead will fill the developers name for whom the defect is assigned.

    [email protected] 36

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    37/[email protected]

    efect Id

    DefectDescription

    Steps forReproducibility Submitter

    Date OfSubmission

    VersionNO

    BuildNo

    Assignto SeverityPriorityStatus

    Initially Login, cearbuttons are

    enabled instead ofbeing disabled

    Not Applicable

    Sri Balaji 11-Feb-08 1.0.0 1

    Upon Clicking onclear button all thefields are cleared

    but the cursor is notplaced in the user

    name field

    1.Enter someinformation in to anyof the fields2.Click on clearbutton3.Observe that thecursor is not placedin the usernamefields after clearingall the fields

    Sri Balaji 11-Feb-08 1.0.0 1

    Upon enteringSuresh1 as

    username and qtpas password andclicking on login

    button admin pageis displayed instead

    of error message

    1.Enter Suresh1 into the user namefield 2.Enterqtp in to thepassword field3.Click on loginbutton4.Observe adminpage is displayedinstead of errormessage.

    Sri Balaji 11-Feb-08 1.0.0 1

    Up on entering theinformation only into the user name

    field login button isenabled instead of

    being disabled

    1. Enter someinformation in tousername field2.Check for the

    enabled property oflogin button. 3.Observe that loginbutton is enabledinstead of being

    disabled.Sri Balaji 14-Feb-08 1.0.0 1

    Upon entering theinformation only into the password

    field login button isenabled insteadbeing disabled

    1.Enter someinformation in tho

    password field2.Check for theenabled property of

    login button3.Observe that login

    button to enableinstead of being

    disabledSri Balaji 11-Feb-08 1.0.0 1

    37

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    38/97

    Defect- Id: -The list of defect numbers are mentioned here in this section

    Defect Description: -What exactly the defect is clearly described here in this section

    Steps for reproducibility: -The list of all the steps that are followed by the test engineer to identify

    the defect will be listed out here in this section

    Submitter: -The name of the test engineer who has submitted the defect will be

    mentioned here in this section.

    Date Of Submission: -The date on which the defect is submitted is mentioned here in this

    section.

    Version No: -Corresponding Version number is mentioned here in this section.

    Build No: -Corresponding build number is mentioned here in this section.

    Assigned To: -The development lead will fill the developers name for whomthe defect

    is assigned.

    Severity: -How serious the defect is defined in terms of severity, Severity is

    classified in to four types:

    1. Fatal (Sev1) or S1 or 1

    2. Major (Sev2) or S2 or 2

    3. Minor (Sev3) or S3 or 3

    4. Suggestion (Sev4) or S4 or 4

    1. Fatal:If at all the problems are related to the navigational blocks or unavailability

    of functionality then such type of defects are treated to be fatal defect.

    [email protected] 38

    Main Menu

    Val1

    Val2

    Result

    Next

    UN

    AVAILABLE

    Next ADDNext

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    39/97

    2. Major: -If at all the problems are related to the working of major functionalities

    then such types of defects are treated to be major defects.

    3. Minor: -If at all the problems are related to the Look & Feel of the application

    then such type of defects are treated to be minor defects

    4. Suggestions: -If at all the problems are related to the value of the application then such

    type defects are treated to be suggestions.

    +Ve integer Box

    [email protected] 39

    Val1

    Val2

    Result

    10

    20

    -10

    ADD

    Val1

    Val2

    Result

    BAD

    Some

    alphabetsInvalid

    Entry

    Plz Try

    again

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    40/97

    Is it

    Really

    Defe

    ct

    Priority: -Priority defines the sequence in which the sequence in which defects has to be

    rectified. It is classified in to four types

    1. Critical (Pri1) or P1 or 1

    2. High (Pri2) or P2 or 2

    3. Medium (Pri3) or P3 or 3

    4. Low (Pri4) or P4 or 4

    Usually the Fatal defects are given critical priority, Major defects are

    given High priority, Minor defects are given Medium Priority and suggestions are

    given Low Priority, But depending up on the situations the priority will be

    changing.

    I - Case:

    Low severity-High Priority Case: -

    Up on customer visit to the company all the look and feel defects are

    given highest priority.

    II - Case:

    High severity Low Priority Case: -

    When ever 80% of the application is released to testing department as

    20% is missing the test engineers will treat them as Fatal defect but the development

    lead will give least priority for those defects as features are under development.

    Bug Life Cycle: -

    No

    Build #1

    Build #2

    [email protected] 40

    REQ

    DEV

    M1

    TESTING

    Is

    defect

    is

    really

    verified

    IfDefect

    Rectif

    ation

    Fixed for

    verification

    OP

    EN

    STOP TESTING

    HOL

    D

    Testers

    error

    As per

    design

    ClosedNe

    RE

    open

    mailto:[email protected]:[email protected]:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    41/97

    Yes

    No

    Yes

    No

    Status: -

    New: - When ever the defect is found for the first time the test engineer will set the

    status as New.

    Open: -When ever the developer accepts the raised defect then he will set the status

    as open.

    Fixed for verification Or Fixed for rectified: - When ever the developer rectifies the

    raised defect then he will change the status to fixed.

    Re open and Closed: -When ever the defects are rectified, next build is released to

    the testing dept then the test engineers will check whether the defects are rectified

    properly or not. If the defect is rectified properly then the test engineer will set the

    status as Closed. If the defect is not rectified properly then the test engineer will

    set the status as Re open.

    Hold: - When ever the developer is confused to accept or reject the defect then he

    will set the status of the defect as hold.

    [email protected] 41

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    42/97

    Testers Error or Testers Mistake Or Rejected: - When ever the developer is

    confirmed it is not at all a defect hen he will set the status of the defect as

    Rejected.

    As Per Design: - When ever the test engineer is not aware of new requirements and

    if he raises defects related to the new features then the developer will set the status

    As Per Design.

    Note: This is a rare case not usually Occurs

    Ways of Testing:There are two ways of Testing

    1. Manual Testing2. Automation Testing

    1. Manual Testing:It is a way of testing in which one will perform all the phases of

    software testing life cycle like Test planning, Test development, Testexecution, Result analysis, Bug tracking, and Reporting are accomplishedmanually, successfully with human effortsDrawbacks of Manual Testing:

    More number of people are required

    Time consuming

    Human mistakes (no accuracy) Tiredness

    Simultaneous action are not possible

    Cannot repeat the same task again and againin a perfect manner.

    2. Automation Testing:Automation testing is a process in which all the drawbacks of

    manual testing are addressed properly and provides speed and accuracy to theexisting testing process.Drawbacks of Automation Testing:

    Tools are expensive

    Cannot automate all the area

    Lack of expertsAutomated Tool:

    Automated tool is an assistant of a test engineer, which worksbased on the instructions and information given by a test engineer.

    General Frame Work to learn any automated Tool:A test engineer should learn the following to work with any

    automated tool

    How to give the instructions?

    How to give the information?

    How to use its recording facility?

    How to use its play back facility?

    [email protected] 42

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    43/97

    How to analyze the results?

    Types of Automated Tools:A black box testing tools are broadly divided in to Three types

    1. Functional tools (QTP, Win runner)2. Management Tools (Test Director/Quality

    Center)3. Performance tools (Load Runner)

    QTP (Quick Test Professional)

    Type Of The Tool: Functional ToolCompany: Mercury Interactive incorporationScripting Language: VB- ScriptVersion: #5.5,#6.5,#7.0,#7.6,#8.0,#8.2(2005),#9.0,#9.1,#9.2

    Anatomy of QTP:

    Vbwindow(emp).vbedit(ename).set Sri BalajiVbwindow(emp).vbedit(eage).set27Vbwindow(emp).vbedit(esal).set20000Vbwindow(emp).vbedit(edeisig).setTEVbwindow(emp).vbedit(submit).set click.

    VbWindow("VbWindow").VbEdit("VbEdit").Set "10"VbWindow("VbWindow").VbEdit("VbEdit_2").Set "20"VbWindow("VbWindow").VbButton("ADD").ClickVbWindow("VbWindow").VbButton("SUB").ClickVbWindow("VbWindow").VbButton("MUL").ClickVbWindow("VbWindow").VbButton("DIV").ClickVbWindow("VbWindow").VbButton("CLEAR").Click

    Adding Manager:

    [email protected] 43

    E name

    E age

    E Sal

    E DesigSubmit

    EMP

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    44/97

    Adding manager is a feature provided by QTP which is used for

    showing all the list of addings while opening the QTP so that the user can select the

    desired addings and then enter in to the QTP, Before the user access the QTP the

    adding manager will make the QTP compatible with all the selected environments.

    By default QTP is always compatible with standard windows

    environment.

    Whenever we purchase QTP we get Three built-in addings.1. Activex

    2. Visual Basic

    3. Web.

    A part from the above add-ins one needs to purchase the add-inns by paying extra

    cost.

    QTP screen can be divided in to seven parts

    1. Test Pane

    2. Active screen

    3. Data Table

    4. Debug Viewer Pane5. Tool Options

    6. Information pane

    7. Missing resources pane

    1.Test Pane:Test pane is an area provided by QTP, which is used for developing,

    viewing, and modifying the test screen. It represents the test scripts in two views

    (a). Expert view

    (b). Key word view

    (a). Expert view: It represents the script in VB script format

    (b). Keyword view: Keyword view represents the script using a graphical userinterface (GUI) which is further divided in to four parts.

    Item

    Operation Value

    Documentation

    2.Active Screen:Active screen is an area provided by QTP, which holds the snapshots of each

    and every script statements and used for the following.

    Easily understanding the script

    Easily enhancing the script.

    3.Data-Table:The date table is originally called as formula1 sheet developed by third party

    and integrated with QTP.

    Features:

    It is used for holding the test data

    It isolates the test script from the data source.

    It provides the facility to import the test data from

    different data sources like excel files, data base and flat

    files (a file with out having format)

    It allows the user to interact with the data directly

    [email protected] 44

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    45/97

    Note: QTP maintains two copies of data tables

    i. Design time data table

    ii. Run time data table

    4. Debug Viewer Pane:Definition of Debugging: Debugging Is a process of executing the script or a

    program in a user desired passion with some temporary breaks in order to identifythe errors.

    Debug viewer pane is an area provided by QTP which is used for viewing,

    modifying or setting the current values of variables or expressions during the

    execution break with the help of three Tabs by name Watch expression, Variables

    and Command

    5.Tool- Options:

    All the options available in the menu bar, file tool bar and testing tool bar

    are known as tool-options.

    RECORDING AND RUNNING

    Record and Run Settings:

    For every new test one has to compulsorily do this settings before recording

    or running. These settings will make to understand on which applications it need to

    concentrate while recording or running.

    Navigation:

    Activate the menu item test

    Select the option record and run settings

    Select one of the following options

    Record and run test on any opened windows based application

    Record and run on these application (opened on session start)

    If at all second option is selected then click on add button

    Browse the desired application part

    Click on OK

    Click on apply & OK.

    Operational overview of Recording:

    During recording QTP will do the following..

    1. It will generate corresponding script statements for everyuser action on the application.

    2. It will store the required related information in the object

    repository.

    Operational overview of Running:

    During running QTP will doing the following..

    1. It will read the script statement and understands what

    action to be performed on which object.

    2. Then it realizes it need to identify the object first to

    perform the action

    [email protected] 45

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    46/97

    3. To identify the object it requires some information for that

    information it will go the object repository and search.

    4. Once the information is found using this information it will

    try to identify the original object.

    5. Once the object is identified it will perform the action on it.

    Recording Modes:

    There are there types of recording mode(a). Context sensitive recording mode or Normal recording

    mode

    (b). Analog Recording Mode

    (c). Low-level Recording mode.

    (a). Context sensitive Recording mode:

    It is used for recording the operations performed on the standard

    GUI object in different situations

    (b). Analog Recording Mode:

    It is a special recording mode provided by QTP, which is used forrecording the continuous operations

    Navigation:

    Keep the tool under normal recording mode

    Activate the menu item test

    Select the option analog recording

    Select one of the following option

    o Record relative to the screen

    o Record relative to the following window

    If at all second option is selected specify the window

    title with the help of the Hand Icon

    Click on start analog record

    (c). Low-Level Recording:

    It is a special recording mode provided by QTP, which is used for

    recording at least some minimum operations on the non-supported environments

    also.

    OBJECT REPOSITORY

    Object Repository:Object repository is a storage place where one can store the objects

    information and it also acts as interface between

    n the test script and the AUT(application under test) in order to identify the original

    objects during execution

    Types of Object Repository:

    There are two types of object repository they are

    [email protected] 46

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    47/97

    1. local Repository

    2. Shared Repository(1). Local Repository:

    If at all this type is selected as an object repository then the QTP will

    be automatically creating and managing an individual repository for every action.(2). Shared Repository:

    Shared repository has to be created and managed manually once a

    shared repository to created it can be shared among number of tests

    Advantages:

    Easy to maintain

    Re-usability

    Navigation for creating a shared Repository or Converting a per action in to shared:

    Collect the objects information in to the object

    repository

    Click on export

    Browse the desired location

    Specify the file name with .TSR extension Click on save button

    Navigation for Creating the Shared Repository to the currant test:

    Activate the menu item test

    Select the option settings

    Select the resources tab

    Select the option shared in the object repository type

    section

    Browse the desired repository file

    Click on apply & OK

    Note: .TSR means Test Shared Repository

    OPERATIONS ON OBJECT REPOSITORY

    Navigation for adding the objects in to the object repository:

    Open the object repository

    Click on add objects button

    Click on the title bar of the window

    Click on ok

    Select one of the following optionso Only the selected objectso Selected objects and all its direct childreno Selected objects and all its descendents

    Click on OK

    Navigation for deleting the objects form the object repository: Select the desired object to be deleted in the

    object hierarchy Right click on it

    Select the option delete

    [email protected] 47YES

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    48/97

    Confirm the deleting by clicking on

    Navigation for Re naming the objects:Select the desired object in the object hierarchy

    Right click on it

    Select the option Rename

    Specify the desired name

    Navigation for updating the properties list: Select the desired object in the object hierarchy

    Click on add/Remove button

    Select the desired properties to be added in to theproperties list

    Deselect the properties to be removed from theproperties list

    Click on OK

    Highlight:Highlight button is used for highlighting the corresponding object in

    the AUT so that a test engineer can clearly understand which objects information is

    that.

    OBJECT IDENTIFICATION

    Object identification:Object identification is based on four types of properties and

    an ordinal identifier

    Types of properties:

    1. Mandatory Properties2. Assistive properties3. Base-Filter Properties4. Optional Filter properties

    A test engineer can specify the list of mandatory properties, List ofassistive properties, List of base filter properties, list of optiopnal filterproperties and an ordinal identifier.

    QTP learns the information in the following in case only normalbrain:First of all the QTP will learn all the mandatory properties at a time andthen think weather these properties are sufficient to identify the objectuniquely. If it feels sufficient then it will stop learning otherwise it will

    learn the first assistive property and once again stops and thinks weatherthese properties are sufficient to identify the object uniquely. If it feelssufficient then it stops learning otherwise learns the second assistiveproperty and checks weather these properties are sufficient or not. Thisprocess continuous till the QTP satisfies or up to the end of the assistiveproperties list. At the end of the assistive properties list also if it feels notsatisfied then it will finally learn the ordinal identifier and stops learning.

    QTP learns the information in the following way in case of smartbrain also:

    While learning the mandatory properties along with them it will learn

    the base filter properties, optional filter properties and stores them in the secret

    [email protected] 48

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    49/97

    It considers the mandatory properties only and check weather these

    properties are sufficient to identify the object uniquely. and repeats the above

    process.

    Note: In the above learning process except base filter properties andoptional filter properties all the remaining information learnt will be storedin the object repository.

    QTP will use the information in the following way to identify theobject during execution:

    First of all QTP will use all the properties present in the objectrepository except ordinal identifier and try to identify the object. If at allthe object is not identified then it will forget about all these properties andfreshly enters in to the secret place.

    QTP will consider all the base filter properties and try toidentify the object and forms a list of all the objects that are matched withthe base filter properties.If the list contains only one object then that is the object otherwise it willtake the support of first optional filter property and try to match with allthe object present in the list and forms a new list of all the objects that arematched with that property and then check weather the list is containing

    one object or more that one object. If the list is containing more than oneobject then it will consider the second optional filter property and repeatsthe whole procedure till the list contains on object or up to the end of theoptional properties list.At the end of the optional filter properties list also if the list is containingmore than one object then it will finally go to the object repository andcheck weather the ordinal identifier is available or not. If at all the ordinalidentifier is available it will identify the object roughly using that otherwiseHANDSUP.

    Ordinal Identifiers:There are three types of ordinal identifiers

    1.Location2.Index3.Creation time

    1.Location:If at all the location is selected, as an ordinal identifier then

    the QTP will generate a sequence of numbers from 0,1,2,3 based on thesequence of the objects located in AUT.

    2.Index:If at all the index is selected as an ordinal identifier than the

    QTP will generate the numbers from 0,1,2,3. Based ob the sequence ofthe programs of the objects.

    3.Creation Time (specially for web pages):If at all creation time is selected as an ordinal identifier the QTP will

    generate the number from 0,1,2,3, based on the loading time of the web pages

    Smart Identification:When ever the QTP is unable to identify the objects with the help of

    the properties present in the object repository then the special mechanismprovided by QTP to identify the object smartly with some other propertiesis known as smart identification.

    Navigation for Object identification Configuration:

    [email protected] 49

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    50/97

    Activate the menu item tools

    Select the option object identification

    Select the desired environment

    Select the desired object type

    Specify the desired list of mandatory properties andassistive properties with the help of corresponding add/remove buttons

    Select the ordinal identifier

    Smart identification Select the check box enable smart identification

    Click on configure button

    Specify the desired list of base filter properties andoptional filter properties with the help of add/removebuttons

    Click on OK

    Click once again on Ok

    Object Spy:Object spy is a handy feature provided by QTP which is used for

    showing the complete objects information like list of properties and their values, list

    of methodology, syntax for methodology and description of methods then and there

    on the spot immediately of both test objects as well as runtime objects.Navigation for Object SPY:

    Activate the menu item tools

    Select the option object spy

    Click on the hand icon

    Click on the desired object

    Types Of Objects:There are two types of objects 1.Run time objects

    2.Test objects

    1.Run time objects:All the original objects present in the AUT are known as run

    time objects

    2.Test Objects:Test objects are the reference objects created by the QTP for

    run time objects, stored in object repository and used by the QTP for theoriginal objects

    [email protected] 50

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    51/97

    QTP LIFE CYCLE

    QTP life cycle contains Six phases

    I. Test planningII. Generating the basic testIII. Enhancing the testIV. Debugging the testV. Executing the testVI. Analysis the Results

    I. Test Planning:In this phase the automation test lead will do the following

    1. Under standing the requirements2. Identifying all the areas to be automated3. Analyzing both the negative and positive flow of the

    application4. Preparing the automation test plan document based

    on the analysis5. Preparing the tool ready with all the pre

    configurational settings for the further operationsII. Generating the basic test:

    In this phase the automation test engineer will generate thebasic test engineer will generate the basic test for both the +ve and veflow of the application

    IIII. Enhancing the Test:One can enhance the script in the following ways

    1. Inserting the check points2. Synchronizing the test3. Parameterising the test (Data Driven Testing)4. Inserting the out put value statements5. Inserting the transactional points for

    measuring transactions6. Inserting the programmatic statements7. Adding comments8. Inserting the script statement manually

    1.Check Point:Checkpoint is defined as validation pointer test point which

    checks the objects state or bitmap state or data state during executionat any point of time

    Operational over view of checkpoint:Checkpoint works in two phases

    i. Pre-execution Phase: It captures the expected value

    Generates the corresponding test script statement

    ii. While-execution phase: It captures the actual value

    Compared the actual value with the expected value

    Displays the result

    Types Of Checkpoints:

    a. Standard checkpointsb. Bitmap checkpoint

    [email protected] 51

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    52/97

    c. Text checkpointd. Text area checkpointe. Data base checkpointf. XML checkpointg. Page checkpointh. Table checkpointi. Image checkpoint

    j. Accessibility checkpoint

    a. Standard Checkpoints:

    Standard

    checkpoint is used for checking the standard GUI objects properties

    value, it can be inserted in two ways

    i. Through application

    ii. Through Active Screen

    Navigation through application:

    Keep the cursor in the desired location

    Keep the tool under recording mode

    Activate the menu item insert

    Go to checkpoint

    Select the option standard checkpoint

    Click on the desired object in the AUT

    Click on OK

    Select the desired properties to be checked

    Specify the desired expected values Click on OK

    Stop Recording

    Navigation through active screen:

    Keep the cursor on the desired statement so that the

    corresponding snapshot is displayed in the active screen

    Go to active screen right click on the desired object

    Select the option insert standard check point

    Click on OK

    Select the desired properties to be checked

    Specify the desired expected values

    Select one of the following options

    Select one of the following options

    o Before current step

    o After current step

    o Click on OK

    eckpoints:

    [email protected] 52

    Hidden CheckpointsFor Web Checkpoints

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    53/97

    Bitmap

    checkpoint is used for checking the complete bitmap or apart of a bitmap.

    It can be inserted in two ways

    i. Through application

    ii. Through Active Screen

    Navigation through application:

    Keep the cursor in the desired location of the screen Keep the tool under recording mode

    Activate the menu item insert

    Select the option bitmap check point

    Click on the desired bitmap

    Click on OK

    If at all one need select a part of bitmap then select it using the

    select area button

    If at all one need save only the selected part then select the check

    box save only selected area

    Click on OK

    Navigation Through Application:

    Keep the cursor on the desired statement so that the

    corresponding is displayed in the active screen

    Go to the active screen

    Right click on the bit map

    Select the option insert bitmap check point

    Click on OK

    If at all one need to select a part of bitmap then select it using

    select area button IF alt all one need to save only the selected part select the check

    box save only selected area

    Select one of the following option

    o Before currant step

    o After currant step

    Click on OK

    kpoint:Text

    checkpoint is used for checking the text present on a specified object. It

    can be inserted in two ways

    i. Through application

    ii. Through Active

    Navigation through application: Keep the cursor in the desired location of the screen

    Keep the tool under recording mode

    Activate the menu item insert

    Click on check point

    Click on text checkpoint

    [email protected] 53

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    54/97

    Click on the desired text

    Select the following option

    o Match case

    o Exact match

    o Ignore space

    o Text not displayed

    Click on OK

    Navigation through Active Screen:

    Keep the cursor on the desired location so that the

    corresponding snapshot is available in the active screen

    Right Click on the desired position

    Click on insert text checkpoint

    Click on desired text

    Select the following option

    o Match case

    o Exact matcho Ignore space

    Text not displayed

    Click on ok

    eck Point:

    Test

    area checkpoint is used for checking the test presenting a specified area.

    It can be inserted only through the application but not through the active

    screen

    Navigation through application:

    Keep the cursor on the desired location of the screen

    Keep the tool under recording mode

    Activate the menu item insert

    Select the opinion text area checkpoint

    Select the exact area through cross hair pointers

    Choose the following options

    o Match case

    o Exact match

    o Ignore spaceo Text not displayed

    Click on OK

    Stop Recording

    eckpoint:

    Data base check

    point is used for checking the contents of the data base

    Navigation:

    Activate menu item insert

    [email protected] 54

    mailto:[email protected]:[email protected]
  • 7/30/2019 Total Testing Meterial

    55/97

    Go to check point

    Select the option data base checkpoint

    Select the option specify AQL statement manually

    Click on meet

    Click on create

    Click on new

    Select the desired driver Slick on next

    Click on finish

    Click on select

    Select the desired database

    Click