Monday, 16 July 2012

Waterfall Model


Waterfall model is also known as sequential development model. Waterfall model was proposed by Winston W. Royce during 1970s. This development model has been successfully used in several Organizations, U.S. Department of Defense and NASA. 
In Waterfall Model, one stage precedes other in a sequential manner and only after preceding stage is successfully completed. This model is simple and more disciplined software development approach. This model is effective only when each phase is completed successfully (100%) on time. 
Waterfall model also carries a reputation of not being a practical development model as it expects previous phase to be completed before moving on to next phase and does not accommodate any requirement changes during later phase of SDLC. This model can be successfully followed in small projects and when the requirements are clearly known and resources are available as planned. 
Waterfall model has the following stages:
1) Requirements specification
2) Design
3) Construction
4) Integration
5) Testing and defect fixing
6) Implementation
7) Maintenance
See the stages of Waterfall model represented Diagrammatically

Difference between retesting and regression testing.

Below are the differences between Regression Testing and Retesting.
a) Retesting is carried out to verify defect fix / fixes. Regression testing is done to check if the defect fix / fixes have not impacted other functionality of the application that was working fine before applying the code changes.
b) Retesting is planned based for the defect fixes listed in Build Notes. Regression testing is generic and may not be always specific to any defect fix or code change and can be planned as regional or full regression testing.
c) Retesting involves executing test cases that were failed earlier and regression testing involves executing test cases that were passed earlier build i.e., functionality that was working in earlier builds.
d) Retesting will involve rerunning failed test cases that are associated with defect(s) fixes being verified. Regression testing does not involve verifying defect fix but only executing regression test cases.
e) Retesting always takes higher priority over Regression testing i.e., Regression testing is done after completing Retesting. In some projects where there are ample testing resources, Regression testing is carried out in parallel with retesting.
f) Though Retesting and regression testing have different objectives and priorities, they equally important for project’s success.

Sunday, 15 July 2012

Test cases example


Test cases for Notepad:-
1)     Check whether file is saved after entering data
Open Note pad application.
File menu -> new
Enter Some Text ("hello welcome to india")
File menu -> Save
select the path and give the file name (welcome.txt)
Click on Save button
Expected Results : file should be saved in the specified location
2) Check the functionality of Save as
Open Note pad application.
File menu -> Open
Give the Path and select the file (welcome.txt)
File menu -> Save as
select the path and give the file name (welcome1.txt)
Click on Save button
Expected Results : file should be saved in the specified location
3) Check whether validation msg has been generated on giving same name for saving
Open Note pad application.
File menu -> Open
Give the Path and select the file (welcome.txt)
File menu -> Save as
select the path and give the file name (welcome.txt)
Click on Save button
Expected Results : Application should generate a validation message stating, "Are you sure you want to relpace the file" with Yes/no Options
4) Check whether edits are saved
Open Note pad application.
File menu -> Open
Give the Path and select the file (welcome.txt)
Edit the file by adding some text (have a nice day)
File menu -> Save
Expected Results : updated File should be saved
5) Check the functionality of Close button or exit Menu after editing file
Open Note pad application.
File menu -> Open
Give the Path and select the file (welcome.txt)
Edit the file by adding some text (have a nice day)
File menu -> Exit or Click X button or top right corner of the notepad window
Expected Results : Application should generate a validation message stating, "Do you want to save changes to %path%" with Save, dont save, cancel buttons
6) Check the functionality of Close button or exit Menu with out editing file
Open Note pad application.
File menu -> Open
Give the Path and select the file (welcome.txt)
File menu -> Exit or Click X button or top right corner of the notepad window
Expected Results : Application should close
7) Save the notepad File in hard drive(c or d drove)
where there is no space
Open Note pad application.
File menu -> new
Enter Some Text ("hello welcome to india")
File menu -> Save
select the path and give the file name (wcom.txt)
Click on Save button
Expected Results : File Should Not be saved in the specified path and should generate validation message



1.check each unit of the pen that is it expected one(in the sense 
what should b required is there).
A)-All parts of the pan Like Refill,Cap,Bottom & top Body all r
 
according to specifications.
Eg:- Refill is okay not blank,
Cap & body of Pen is okay not brokened from any where
like that.
2.Now Seeing at integration point of view.
A). That all the units r assembled properly as pen.
 
B). Mean refill is in the body of the pen
C). Bottom part in bottom
D). Which is exactly integrated With Middle part of body which
 
kept refill. Or If Ink pen then ink filled in that.

3.Now coming at point view of functionality.
Again It may have concept same in ball or
 
a).When writing with pen it is writing or not.
b). Is body of Pen giving it's functionality or not
Mean when pressing the upper tip of pen refill come out to
 
write if it's ball pen.
4.Now at performance point of view
a) r the results according to specifications.
1). Writing is better.
2). Ink not spread.
3). Flow is better while writing.
4). Refill takes it's full time to end(Serveving Fully).
b) Pen work til it's specified life as per specifications.
3)       

STLC(Software Testing Life Cycle)

1) Requirement Analysis
2) Test Planing.
3) Test Cese Development
4) Test Environment setup
5) Test case Execution
6) Test cycle closure

Which Types of testing done first.



There are different levels during the process of Testing. In this chapter a brief description is provided about these levels.
Levels of testing include the different methodologies that can be used while conducting Software Testing. Following are the main levels of Software Testing:
·         Functional Testing.
·         Non-Functional Testing.
Functional Testing
This is a type of black box testing that is based on the specifications of the software that is to be tested. The application is tested by providing input and then the results are examined that need to conform to the functionality it was intended for. Functional Testing of the software is conducted on a complete, integrated system to evaluate the system's compliance with its specified requirements.
There are five steps that are involved when testing an application for functionality.
Steps
Description
I
The determination of the functionality that the intended application is meant to perform.
II
The creation of test data based on the specifications of the application.
III
The output based on the test data and the specifications of the application.
IV
The writing of Test Scenarios and the execution of test cases.
V
The comparison of actual and expected results based on the executed test cases.
An effective testing practice will see the above steps applied to the testing policies of every organization and hence it will make sure that the organization maintains the strictest of standards when it comes to software quality.
Unit Testing
This type of testing is performed by the developers before the setup is handed over to the testing team to formally execute the test cases. Unit testing is performed by the respective developers on the individual units of source code assigned areas. The developers use test data that is separate from the test data of the quality assurance team.
The goal of unit testing is to isolate each part of the program and show that individual parts are correct in terms of requirements and functionality.
LIMITATIONS OF UNIT TESTING
Testing cannot catch each and every bug in an application. It is impossible to evaluate every execution path in every software application. The same is the case with unit testing.
There is a limit to the number of scenarios and test data that the developer can use to verify the source code. So after he has exhausted all options there is no choice but to stop unit testing and merge the code segment with other units.
Integration Testing
The testing of combined parts of an application to determine if they function correctly together is Integration testing. There are two methods of doing Integration Testing Bottom-up Integration testing and Top Down Integration testing.
S.N.
Integration Testing Method
1
Bottom-up integration
This testing begins with unit testing, followed by tests of progressively higher-level combinations of units called modules or builds.
2
Top-Down integration 
This testing, the highest-level modules are tested first and progressively lower-level modules are tested after that.
In a comprehensive software development environment, bottom-up testing is usually done first, followed by top-down testing. The process concludes with multiple tests of the complete application, preferably in scenarios designed to mimic those it will encounter in customers' computers, systems and network.
System Testing
This is the next level in the testing and tests the system as a whole. Once all the components are integrated, the application as a whole is tested rigorously to see that it meets Quality Standards. This type of testing is performed by a specialized testing team.
System testing is so important because of the following reasons:
·         System Testing is the first step in the Software Development Life Cycle, where the application is tested as a whole.
·         The application is tested thoroughly to verify that it meets the functional and technical specifications.
·         The application is tested in an environment which is very close to the production environment where the application will be deployed.
·         System Testing enables us to test, verify and validate both the business requirements as well as the Applications Architecture.
Regression Testing
Whenever a change in a software application is made it is quite possible that other areas within the application have been affected by this change. To verify that a fixed bug hasn't resulted in another functionality or business rule violation is Regression testing. The intent of Regression testing is to ensure that a change, such as a bug fix did not result in another fault being uncovered in the application.
Regression testing is so important because of the following reasons:
·         Minimize the gaps in testing when an application with changes made has to be tested.
·         Testing the new changes to verify that the change made did not affect any other area of the application.
·         Mitigates Risks when regression testing is performed on the application.
·         Test coverage is increased without compromising timelines.
·         Increase speed to market the product.
Acceptance Testing
This is arguably the most importance type of testing as it is conducted by the Quality Assurance Team who will gauge whether the application meets the intended specifications and satisfies the client.s requirements. The QA team will have a set of pre written scenarios and Test Cases that will be used to test the application.
More ideas will be shared about the application and more tests can be performed on it to gauge its accuracy and the reasons why the project was initiated. Acceptance tests are not only intended to point out simple spelling mistakes, cosmetic errors or Interface gaps, but also to point out any bugs in the application that will result in system crashers or major errors in the application.
By performing acceptance tests on an application the testing team will deduce how the application will perform in production. There are also legal and contractual requirements for acceptance of the system.
ALPHA TESTING
This test is the first stage of testing and will be performed amongst the teams (developer and QA teams). Unit testing, integration testing and system testing when combined are known as alpha testing. During this phase, the following will be tested in the application:
·         Spelling Mistakes
·         Broken Links
·         Cloudy Directions
·         The Application will be tested on machines with the lowest specification to test loading times and any latency problems.
BETA TESTING
This test is performed after Alpha testing has been successfully performed. In beta testing a sample of the intended audience tests the application. Beta testing is also known as pre-release testing. Beta test versions of software are ideally distributed to a wide audience on the Web, partly to give the program a "real-world" test and partly to provide a preview of the next release. In this phase the audience will be testing the following:
·         Users will install, run the application and send their feedback to the project team.
·         Typographical errors, confusing application flow, and even crashes.
·         Getting the feedback, the project team can fix the problems before releasing the software to the actual users.
·         The more issues you fix that solve real user problems, the higher the quality of your application will be.
·         Having a higher-quality application when you release to the general public will increase customer satisfaction.
Non-Functional Testing
This section is based upon the testing of the application from its non-functional attributes. Non-functional testing of Software involves testing the Software from the requirements which are non functional in nature related but important a well such as performance, security, user interface etc.
Some of the important and commonly used non-functional testing types are mentioned as follows:
Performance Testing
It is mostly used to identify any bottlenecks or performance issues rather than finding the bugs in software. There are different causes which contribute in lowering the performance of software:
·         Network delay.
·         Client side processing.
·         Database transaction processing.
·         Load balancing between servers.
·         Data rendering.
Performance testing is considered as one of the important and mandatory testing type in terms of following aspects:
·         Speed (i.e. Response Time, data rendering and accessing)
·         Capacity
·         Stability
·         Scalability
It can be either qualitative or quantitative testing activity and can be divided into different sub types such as Load testing and Stress testing.
LOAD TESTING
A process of testing the behavior of the Software by applying maximum load in terms of Software accessing and manipulating large input data. It can be done at both normal and peak load conditions. This type of testing identifies the maximum capacity of Software and its behavior at peak time.
Most of the time, Load testing is performed with the help of automated tools such as Load Runner, AppLoader, IBM Rational Performance Tester, Apache JMeter, Silk Performer, Visual Studio Load Test etc.
Virtual users (VUsers) are defined in the automated testing tool and the script is executed to verify the Load testing for the Software. The quantity of users can be increased or decreased concurrently or incrementally based upon the requirements.
STRESS TESTING
This testing type includes the testing of Software behavior under abnormal conditions. Taking away the resources, applying load beyond the actual load limit is Stress testing.
The main intent is to test the Software by applying the load to the system and taking over the resources used by the Software to identify the breaking point. This testing can be performed by testing different scenarios such as:
·         Shutdown or restart of Network ports randomly.
·         Turning the database on or off.
·         Running different processes that consume resources such as CPU, Memory, server etc.
Usability Testing
This section includes different concepts and definitions of Usability testing from Software point of view. It is a black box technique and is used to identify any error(s) and improvements in the Software by observing the users through their usage and operation.
According to Nielsen, Usability can be defined in terms of five factors i.e. Efficiency of use, Learn-ability, Memor-ability, Errors/safety, satisfaction. According to him the usability of the product will be good and the system is usable if it possesses the above factors.
Nigel Bevan and Macleod considered that Usability is the quality requirement which can be measured as the outcome of interactions with a computer system. This requirement can be fulfilled and the end user will be satisfied if the intended goals are achieved effectively with the use of proper resources.
Molich in 2000 stated that user friendly system should fulfill the following five goals i.e. Easy to Learn, Easy to Remember, Efficient to Use, Satisfactory to Use and Easy to Understand.
In addition to different definitions of usability, there are some standards and quality models and methods which define the usability in the form of attributes and sub attributes such as ISO-9126, ISO-9241-11, ISO-13407 and IEEE std.610.12 etc.
UI VS USABILITY TESTING
UI testing involves the testing of Graphical User Interface of the Software. This testing ensures that the GUI should be according to requirements in terms of color, alignment, size and other properties.
On the other hand Usability testing ensures that a good and user friendly GUI is designed and is easy to use for the end user. UI testing can be considered as a sub part of Usability testing.
Security Testing
Security testing involves the testing of Software in order to identify any flaws ad gaps from security and vulnerability point of view. Following are the main aspects which Security testing should ensure:
·         Confidentiality.
·         Integrity.
·         Authentication.
·         Availability.
·         Authorization.
·         Non-repudiation.
·         Software is secure against known and unknown vulnerabilities.
·         Software data is secure.
·         Software is according to all security regulations.
·         Input checking and validation.
·         SQL insertion attacks.
·         Injection flaws.
·         Session management issues.
·         Cross-site scripting attacks.
·         Buffer overflows vulnerabilities.
·         Directory traversal attacks.
Portability Testing
Portability testing includes the testing of Software with intend that it should be re-useable and can be moved from another Software as well. Following are the strategies that can be used for Portability testing.
·         Transferred installed Software from one computer to another.
·         Building executable (.exe) to run the Software on different platforms.
Portability testing can be considered as one of the sub parts of System testing, as this testing type includes the overall testing of Software with respect to its usage over different environments. Computer Hardware, Operating Systems and Browsers are the major focus of Portability testing. Following are some pre-conditions for Portability testing:
·         Software should be designed and coded, keeping in mind Portability Requirements.
·         Unit testing has been performed on the associated components.
·         Integration testing has been performed.
·         Test environment has been established.



Bug tracking tool is a backbone of all the processes in the company. It is a tool which is used by every engineer / tester and management in the company.

We cannot recruit a tester / engineer without the knowledge of bug tracking tool. An engineer needs to know everything around the the tool fields / reports. I will try to cover following topics in the blog:
  1. Fields of a bug
  2. Test Reports
See the image below - It has all the fields that are required to file a bug: 

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQn0Y-uoGP6OFlOw-ZJSoWnm7EiDq7y4eSC7KNSAccDqc9MbD1KfsG2Q0w6HSWo19-gCUuD8gTJP6dPIbeyHN3Ij5l6RzQtXRY9F1NfmkUIJ5PVu9QT_YzGEexs8DaFlrac-BJt6QpLKSt/s640/bugzilla.bmp

  • Reporter - Person who has filed the bug. So if you have filed the bug it will be your email Id in the reporter field.
  • Product - Every company has the list of products. Reporter needs to select the product from the product list in which the bug was found.
  • Version - Whenever you file a bug you need to remember the version of the build that you are testing. 
  • Component - Is it on UI or  server or any other component ?  Remember the component is not the feature. 
  • Severity - Impact of a bug on the system.it can have the value:
    • Critical
    • Major
    • Normal
    • Minor
  • Priority - How quick a bug needs to be resolved? It depend on the impact of the bug on the business.
  • OS - Operating system
  • Target milestone - In which release the bug fix will be targeted. 
  • Initial state - state of the bug. When you file the bug its state is New.
  • AssignTo - Next owner of the bug.
  • CC - People you want to be aware of the issue.
  • Summary - One line description 
  • Description - It will have the steps to reproduce the bug , expected output, actual output and if anything extra needs to be provided to the developer it needs to be mentioned in the bug.
  • Attachment - Any screenshot or log file that you feel will help the team to understand the issue better.
  • Depends on : If there is a parent bug and you want the present bug to be dependent on that bug give the parent bug Id in the depend on bug.
  • Blocks : This field will help you in tracking the bugs on a feature. This needs to be explained in detail. Lets take a scenario : You are a feature owner and you need to track the bugs for a feature . Here are the steps:
    • File a bug on a feature.
    • You will get the bug ID - e.g. 21234
    • Now every bug that you file on the same feature in the blocks field of the bug give the bug Id 21234.
    • So all the bugs will be blocked by the parent bug 21234.
    • If you want to see the bugs filed on that feature you can click on the bug id 21234 and it will show you the entire list of bugs filed on that feature.
Test Reports : Think of the type of reports that a person is interested in :
  1. # bugs distributed on the basis of status e.g. bugs under fixed, bugs under open, bugs under reopen,bugs under closed etc.
  2. # bugs distributed on the basis of status and then on priority. e.g. if there are 100 bugs open we will definitely like to know the priority of the open bugs.
 I will keep writing around bug tracking tool but right now I need to leave. I would be happy to help and make my students successful.


I am copying the data from some other sites which I found useful around a test plan. Please go through the video and the content available below:

Here is also a link to study risk management - http://inderpsingh.blogspot.in/2011/10/risk-management-in-software-testing.html

Both the links will help you to understand and prepare for test plan. You could further download a sample test plan from
Sample Test plan.

 

 

 

Master the test cases

Its a way you think. We expect an engineer to think of all possible scenarios for a feature / application. If you need to write the test cases you need to be very clear with the scenarios that you need to test. Rather you should be a master in thinking of the scenarios.

Here's is an approach that you should take while thinking for the functional test cases:

1. Get the feature that you want to test.
2. Think of the possible ways that a person can use that feature.
3. Cover every possible case under the scenario.

Let me explain with the help of an example:

If you need to test the notepad, most of the engineers will say - check if it opens or not, all the buttons are working , I should be able to type etc... Great! But does this approach guarantee the coverage? Answer is No.

Take this approach - Break the notepad under following heads:
  1. File --> New
  2. File --> Open
  3. etc..
You can create a new file from following possible scenarios:
  • New
    • If its a blank file.
      • file is saved
      • file is not saved
    • If file is not blank.
      • file is saved
      • files is not saved
Now if you need to write a test case you know the direction to follow - e.g. Create a new file if its blank and saved, create a new file if its blank and not saved, create a new file from the file with data and saved, create a new file with data and not saved. This way you can ensure the coverage of the test cases

Monday, 11 June 2012

Integration testing made simlpe

Definition - In Integration Testing, individual software modules are integrated logically and tested as a group.

A typical software project consists of multiple software modules, coded by different programmers.  Integration testing focuses on checking data communication amongst these modules.

Hence it is also termed as ‘I & T’ (Integration and Testing), ‘String Testing’ and sometimes ‘Thread Testing’.

Approaches/Methodologies/Strategies of Integration Testing:

The Software Industry uses variety of strategies to execute Integration testing , viz.
  •  Big Bang Approach :
  •  Incremental Approach: which is further divided into following
    •  Top Down Approach
    •  Bottom Up Approach
    •  Sandwich Approach - Combination of Top Down and Bottom Up  

Big Bang Approach: Here all component are integrated together at once, and then tested.
Advantages: Convenient for small systems.
Disadvantages: -
         Incremental Approach: -  In this approach, testing is done by joining two or more modules that are logically related. Then the other related modules are added and tested for the proper functioning. Process continues until all of the modules are joined and tested successfully.
This process is carried out by using dummy programs called Stubs and Drivers. Stubs and Drivers do not implement the entire programming logic of the software module but just simulate data communication with the calling module.
Stub: Is called by the Module under Test.
Driver: Calls the Module to be tested.
Incremental Approach in turn is carried out by two different Methods:
    • Bottom Up
    • Top Down

Latent Bug

Def 1 : A bug which is not fixed and is already uncovered in earlier versions/releases/rounds of testing and is still present.

Def 2: Bugs that remain dormant or unhidden are latent bugs. These bugs are not found until one or more releases of the product.

Fuzz Testing

Fuzz testing or fuzzing is a software testing technique, often automated or semi-automated, that involves providing invalid, unexpected, or random data to the inputs of a computer program. The program is then monitored for exceptions such as crashes, or failing built-in code assertions or for finding potential memory leaks. Fuzzing is commonly used to test for security problems in software or computer systems.

Smoke / Sanity made simple

Here is another video that I think can be used to understand sanity / smoke. Enjoy the video:

Video Transcript with Key Takeaways Highlighted:
  • Consider a scenario, when after fixing defects of integration testing , the system is made available to the testing team for system testing
  • You look at the initial screen , system looks fine and delay system test execution for the next day since you have other critical testing requirements to attend to
    Next day say you plan to execute the scenario login > View Balance > Transfer 500 > logout . The deadline is 4 hours.
  • You begin executing the scenario , enter a valid login id , password, click the login button and boom you are taken to a blank screen with absolutely no links , no buttons & no where for you to proceed with succeeding steps of your scenario
  • This is not a figment of any imagination but a very practical condition which could arise due to developer negligence, time pressures , test environment configuration & instability
  • To fix this developer requires atleast 5 hours & deadline would be missed
  • In fact , none of your team members would be able to execute their respective scenarios , since view balance is start point to perform any other operation and the entire project will be delayed
  • Had you checked this yesterday itself, the system would been fixed by now and you were good for testing
  • To avoid such situation sanity also know SMOKE  testing is done to check critical functionalities of the system before its is accepted for major testing. Sanity testing is quick and is non- exhaustive. Goal is not to find defects but to check system health

Traceability Matrix

This is the best video to study the Traceability Matrix.


Video Transcript with Key Takeaways Highlighted:
  • Consider a scenario where, the client changes the requirement , something so usual in the practical world and adds a Field Recipient name to the functionality. So now you need to enter email id and name both to send a mail
  • Obviously you will need to change your test cases to meet this new requirement
  • But , by now your test case suite is very large and it is very difficult to  trace the test cases affected by the test cases
  •  Instead , if the requirements were numbered  and were referenced in the test case suite it would have been very easy to track the test cases that are affected. This is nothing but Traceability
  •  The traceability matrix links a business requirement to its corresponding functional requirement right up to the  corresponding test cases.
  •  If a Test Case fails, traceability helps determine the corresponding functionality easily .
  •  It also helps ensure that all requirements are tested.

In Other words.  A traceability matrix is a document, usually in the form of a table, that show the relationship between Test Requirement and test cases. It consist req_id, feature_id, function_id, Test cases_id.

 

QTP frameworks made simple - interview questions

Now what is a TEST Automation Framework ?
A set of guidelines like coding standards , test-data handling , object repository treatment etc... which when followed during automation scripting produce beneficial outcomes like increase code re-usage , higher portability , reduced script maintenance cost etc. Mind you these are just guidelines and not rules; they are not mandatory and you can still script without following the guidelines. But you will miss out on the advantages of having a Framework.

What are the various Automation Frameworks available?
  1. Linear Scripting
  2. The Test Library Architecture Framework.The Data-Driven Testing Framework.
  3. The Keyword-Driven or Table-Driven Testing Framework.
  4. The Hybrid Test Automation Framework.
Lets look at them in detail -

Linear Scripting - Record & Playback - It is the simplest of all Frameworks and also know as "Record & Playback".In this Framework , Tester manually records each step ( Navigation and User Inputs), Inserts Checkpoints ( Validation Steps) in the first round . He then , Plays back the recorded script in the subsequent rounds.

Advantages
  • Fastest way to generate script
  • Automation expertise not required
  • Easiest way to learn the features of the Testing Tool
Disadvantages
  • Little reuse of scripts
  • Test data is hard coded into the script
  • Maintenance Nightmare

The Test Library Architecture Framework. - It is also know as "Structured Scripting" or "Functional Decomposition". In this Framework , test scripts are initially recorded by “Record & Playback” method. Later, common tasks inside the scripts are identified and grouped into Functions. These Functions are called by main test script called Driver in different ways to create test cases.

Advantages
  • Higher level of code reuse is achieved in Structured Scripting as compared to “Record & Playback”
  • The automation scripts are less costly to develop due to higher code re-use
  • Easier Script Maintenance
Disadvantages
  • Technical expertise is necessary to write Scripts using Test Library Framework.
  • More time is needed to plan and prepare test scripts.
  • Test Data is hard coded within the scripts
The Data-Driven Testing Framework.-  In this Framework , while Test case logic resides in Test Scripts, the Test Data is separated and kept outside the Test Scripts.Test Data is read from the external files (Excel Files, Text Files, CSV Files, ODBC Sources, DAO Objects, ADO Objects) and are loaded into the variables inside the Test Script. Variables are used both for Input values and for Verification values. Test Scripts themselves are prepared either using Linear Scripting or Test Library Framework.

Advantages
  • Changes to the Test Scripts do not affect the Test Data
  • Test Cases can be executed with multiple Sets of Data
  • A Variety of Test Scenarios can be executed by just varying the Test Data in the External Data File

DisAdvantages - More time is needed to plan and prepare both Test Scripts and Test Data

The Keyword-Driven or Table-Driven Testing Framework.- The Keyword-Driven or Table-Driven framework requires the development of data tables and keywords, independent of the test automation tool used to execute them . Tests can be designed with or without the Application. In a keyword-driven test, the functionality of the application-under-test is documented in a table as well as in step-by-step instructions for each test.
There are 3 basis components of a Keyword Driven Framework viz. Keyword , Application Map , Component Function.

What is a Keyword ? - Keyword is an Action that can be performed on a GUI Component. Ex . For GUI Component Textbox some Keywords ( Action) would be InputText, VerifyValue, VerifyProperty and so on..
What is Application Map? - An Application Map Provides Named References for GUI Components. Application Maps are nothing but “Object Repositry’

What is Component Function? - Component Functions are those functions that actively manipulate or interrogate GUI component. An example of a function would be click on web button with all error handling , enter data in a Web Edit with all error handling. Component functions could be application dependent or independent.

Advantages
  • Provides high code re-usability
  • Test Tool Independent
  • Independent of Application Under Test, same script works for AUT (with some limitations)
  • Tests can be designed with or without AUT
Disadvantages
  • Initial investment being pretty high, the benefits of this can only be realized if the application is considerably big and the test scripts are to be maintained for quite a few years.
  • High Automation expertise is required to create the Keyword Driven Framework.
The Hybrid Test Automation Framework.-  As the name suggests this framework is the combination of one or more frameworks discussed above pulling from their strengths and trying to mitigate their weaknesses. This hybrid test automation framework is what most frameworks evolve into over time and multiple projects. Maximum industry uses Keyword Framework in combination of Function decomposition method.

Other Frameworks worth a mention are
Test Modularity Framework -  In this framework common task in test script are grouped together as Modules. Ex:Using Actions in QTP use can create a Modualr Scripts

‘Sample Script for Login
SystemUtil.Run "flight4a.exe","","","open"

Dialog("Login").WinEdit("Agent Name:").Set "test123"

Dialog("Login").WinEdit("Password:").Set "Mercury"

Dialog("Login").WinButton("OK").Click

‘End of Script

Now you can call this Action in the main script as follows -

RunAction ("Login[Argument]", oneIteration)