CN6103 Project: Software Testing Strategy for Small Business Websites

Verified

Added on  2023/06/13

|15
|2480
|120
Project
AI Summary
This project explores the critical role of software testing, particularly for Small and Medium Enterprises (SMEs) and their websites. It delves into various testing frameworks, including data-driven, modular-based, linear automation, keyword-driven, library architecture, and hybrid frameworks, analyzing the pros and cons of each. The project emphasizes the advantages of automated testing, such as improved speed, accuracy, efficiency, and reduced maintenance costs. It highlights the hybrid testing automation framework as a preferred choice due to its adaptability and combination of data-driven and library architecture approaches. The discussion covers features, benefits, merits, demerits, architecture, and process flow of the hybrid framework, including its integration capabilities and the use of QTP (Quick Test Professional) for implementation. The ultimate goal is to provide a robust testing strategy that ensures the reliability and functionality of SME websites.
Document Page
Introduction
Testing framework is a most important part in automated testing event. The testing efforts and
maintaining costs can be reduced. Higher ROI will be provided for Quality analysis teams for the
agile event. In the below, we can go through the framework types, pros and cons of each. The
remaining work will be done.
Test Framework
Testing framework is a combined form of rules which is used to designing and creating test
cases. A framework have a set of practices and tools which is designed for only QA team. It is
very useful for QA team.
The steps can contains object repositories, coding standards, and test-data handling methods and
how to use outside resources for any project. The scripts and test records are the most important
for QA teams or professionals.
Advantage of test automation framework
Automated testing is used for improve test speed, accuracy and efficiency and it can reduce test
maintenance amount. The main advantage are given below
Cost maintenance low
Test coverage can be covered maximum
Code reusability
Manual work is very low
Test efficient is good compared to manual testing
Automated testing framework types
Automation testing frameworks are classified into six types. They are
Data driven framework
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Modular based testing framework
Linear automation framework
Keyword driven framework
Library architecture testing framework
Hybrid testing framework
Data-Driven framework
This framework leads the testers to store their data externally, by dividing the test data from
script logic. In many cases testers tests the similar function many times with dissimilar sets of
data. Comparing to modular based testing framework or linear automation framework it is
difficult to hard-code the test data in data-driven framework. This framework allow the tester to
pass and store the IO parameters to examine test scripts from external scripts such as Text files,
spreadsheets, CSV files and SQL tables. Then the test scripts read the necessary data when it is
connected to external sources.
Pros
Reduction in the number of scripts can be achieved by testing the multiple cases by
simply modifying the data.
In this framework multiple data sets can be executed with the help of tests.
This framework avoids hard-coding data so any change in test scripts do not reflect on
data being used.
Faster execution of tests leads to save time.
Cons
The data-driven framework takes more amount of time for installation.
To utilize this framework design, experienced tester is needed. That testers need to
format and identify the external data source.
Modular based testing framework
Document Page
The project can be divided by tester like functions, sections and separate unit with the help of
implementing framework. The project splits into modules. In a module, creating test script is
important for each and every part. Representing various test cases with the set of larges test
cases.
Pros
If the test team will change a part in the application, the module can be automatically
changed.
Test case creation is very easy and simple.
Cons
In the test case, data is hard.
User cannot use more data sets at a time
Framework is done only by the programming knowledge.
Linear automation framework
Another name of linear framework is record and playback framework. In this frameworks testing
team do not need to create function, write Steps in order and write coding. Navigation of work,
checkpoint in project and input from user can be recorded. For performing the test script back
work automatically.
Pros
It is fastest way to create test scripts up to they can record the test scripts in minimum
work time.
Document Page
It is simplest way for running the automated testing i.e. new tool. The play back and
record feature can be provided in automation testing. So the user or QA team do not need
to plan the framework.
Workflow is easy to understand
Custom code is no need to write
Cons
We cannot reuse the script which is developed in this framework.
Test script data is hardcoded i.e. re-run of test cases is impossible.
Keyword-Driven framework
In this each function under test is enter into a table with respective instructions in consecutive
manner. It is also similar to data-driven framework, in that script logic and test data is divided. In
this framework keywords are independent from testing tools in automated manner that are stored
in data table. Keywords are used to test the application of GUI. These keywords are labeled in
simple manner such as login or click, and complex manner such as verifylink or clicklink. Once
the steps are followed in above table, all testers need to write a code with keywords. The
execution of script done by pointing the keyword by running the tests.
Pros
Code can be reuse many times by using single keyword across many test scripts.
In this framework building of test script can be done without depends on test
applications.
This framework needs only less amount of scripting knowledge.
Cons
This framework needs a person with good skills in test automation.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
While scaling test operations it is difficult to maintain keywords.
This framework is requires high cost, complex and time consuming. Also this framework
needs to set up the object libraries and definition of keywords.
Library Architecture testing framework
This framework is depends upon modular framework and it has additional benefits. In this
framework, initially within the scripts similar tasks are determined and grouped by function
instead of running the various scripts by separating the application under test into scripts. In a
library these functions are kept, whenever needed that can be used by test scripts.
Pros
This framework has library for common functions that leads to reusability of framework
in higher degree that is used by test scripts in multiple manner.
Higher level of modularization can be achieved by utilizing the architecture that leads to
scalability and test maintenance cost effective and easier.
Cons
Development of test scripts needs more time. Within the test scripts, for the analyzing
and writing the similar functions technical expertise is needed.
In this framework it is hard to convert test data into script. So changes in the data leads to
change in the script.
Hybrid Test automation framework
For automated testing, most of the QA teams are using hybrid framework. The hybrid framework
is used to identify the tool and easily adapt to the project. Now a days, automated testing
framework become overlap and integrated with another. The overlapped and integrated name is
Hybrid. The hybrid framework is mixture of two framework. Every project is different, so
flexible framework usage is more important. The easily adapting framework is used to get the
better results compare to other. Comparing with other frameworks, hybrid test automation
framework is more flexible.
Document Page
From the above six types of frameworks, we chose hybrid testing automation framework because
it is a combination of data driven and library architecture framework and it can easily adapt
projects.
Hybrid Testing Automated Framework
The hybrid testing automation framework incorporates the uses of programming language in
higher level allowing the design of object, quick recovery for changes in UI in applications that
are under test and it permits lower level access to components of UI. In general it coordinates
both spelling and grammar as information input. This makes information to be checked against
existing information. This prevents false information to be posted. But this framework allows
other users to post any relevant information to the existing information to improve the site
relevance.
The framework architecture describes design of multi-layer that isolates test scripts and UI
browser components. And this frame architecture is the merged combination of Data Driven and
library Test Automation Framework. The multi packages in the framework that divides reusable
functions and fetching of data with the help of external database. This framework help us to
execute similar test cases in the loop manner to handle dissimilar test inputs that are received
from the database.
Features of Hybrid Testing Automating Framework
HPOC easy integration with the help of versioning HPOC.
Error screenshots and consolidated summary is used for test results in detailed manner.
For the execution and creation of test suite this framework provide intuitive and user
friendly environment
This framework provides technology specific library such as web, SAP, windows,
Oracle, PB and TE.
Benefits of Hybrid Testing Automation Framework
Document Page
This framework reduces the development phase of test automation by 50%
This framework integrates with tools like QC, SVN, HP and Bugzilla.
Merits of Hybrid automation testing
Easy to use
Easy to implement
Easy to maintain
Easy to expand
Improves the maintainability and speed of automation test cases
Low cost
Demerits of Hybrid automation testing
No separate libraries for business logic code and common code
No mechanism for reporting for maintaining reports like error logs and results of test
Architecture of Hybrid Test Automation Framework
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
The intermediate data tables shown above is based on test driven approach or keyword. The
entire process includes driving data that includes functionality. The processing is controlled. For
the intermediate table, spreadsheet is used as mean. Data table record contains keywords which
is used to describe the actions. The record also provide additional input data.
Hybrid Testing Automation Framework overview
This framework is the combined form of data driven and library Architecture. This allows the
usage of powerful utilities and libraries accompanied with library architecture for data driven
scripts. The dta driven scripts used in this framework is less prone to failure and more compact.
This framework allow us to manage the existing file conversion.
Process flow for Hybrid Testing Automation Framework
With the help of hybrid framework it is easy structure the code and maintenance work easy. The
code and data are placed together to promote reusable without the help of framework. At first,
the execution of Main.class is done by calling Main.class which in turn calls the TestNG XML
suite file, then the order for test case execution is arranged. The predefined function of first test
case is executed that are received from the folder named as reusable function folder are having
code that are used for enter text box value, click event, select value from drop down box etc. In
custom functions, the functions are called that has functionality like page login, this class has
functions for reusable operations. Values can be taken from properties and object.class file. This
Document Page
object.class has variables like web elements, details of values like credentials and application
URL etc. on the error in the execution flow are captured with the help of CustomException.class.
The Exception.class is used to handle exception in execution stage. Once the execution is
completed the report is generated with TestNG email able repot, TestNG HTML report,JUnit
report XML file and TsetNG report XML.
Hybrid test automation framework
There are 4 popular automation framework. They are
Data driven
Modular
Keyword driven
Hybrid
The combination of all the three framework is hybrid framework. The implementation of hybrid
automation framework using QTP is given below.
QTP
QTP is Quick Test Professional. QTP is a Hewlett Packard product. This tool is used for tester to
process an automated functional testing. The seven main phases of Quick test testing process is
given below.
Condition for testing
Environment for testing
Direct test conditions
Add conditional and logical statements
Checkpoints inserting
Parameterization
Check the operation is smooth or not
Document Page
Folder structure
The folder structure is in below figure
Data
It includes test expected files, data. These files are used for testing purpose uploading.
Lib
Reusable application like dll and jar file are there
Object repository
It is used to identify the application's element
Functions
Business action, VBScript and JavaScript functions are there
Properties
Details of database and environment of testing details is available there.
Tests
This is a spreadsheets which includes details of automated test cases
Suites
It contains number of test cases
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Output
There is sub folders which is used to store results of the tested files.
runner.exe
It is an executable file which launch the test
Properties folder
The properties folder have some default properties files. That files are shown in below figure
Function folder
There are some function folder which is written in VBScript
CREATE_ORDER - For a user, create an order
VIEW_ORDER - The existing order can be viewed
EDIT_ORDER - The existing order can be edited
DELETE_ORDER - Existing order can be deleted by this order
CREATE_USER - User can be created
SEARCH_USER - User can be search
The example code for CREATE_ORDER is given below
Document Page
Tests Folder
The test folder can spreadsheet. In this spreadsheet we can include automated test cases. The test
case sheet have test description, test case ID and some business action. The test case sheet is
given below figure
Suite Folder
For the application all test cases are in test case spreadsheet. This folder have a bunch of test
cases. Sample suite file is given in below figure
chevron_up_icon
1 out of 15
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]