SlideShare a Scribd company logo
International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163
Issue 03, Volume 4 (March 2017) www.ijirae.com
______________________________________________________________________________________________________
IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 |
ISRAJIF (2016): 3.715
IJIRAE © 2014- 17, All Rights Reserved Page -108
Design and Implementation of Hybrid Test Automation
Framework for Web Based Application
Sabastain Raju J, Vaidhehi V
Department of Computer Science, Christ University, Bangalore, India
Manuscript History
Number: IJIRAE/RS/Vol.04/Issue03/MRAE10097
Received: 07, March 2017
Final Correction: 20, March 2017
Final Accepted: 20, March 2017
Published: March 2017
Abstract -- There many ways to create Web application UI Test Automation Framework. This paper elaborates the creation
of the Hybrid Test Automation Framework, and explains the architecture and design of the framework. This Framework is
easy to use and incorporate the use of high level programming language allowing object oriented design, permits low level
access to the UL components and recover quickly for UI changes in the application under test. The architecture of the
framework as multi layer design which isolates the browser UI compounds and test scripts. This Framework Architecture is
a merged combination of Library and Data Driven Test Automation Framework. This Framework contents multi packages
with classes which isolates the reusable functions and involves the external database on fetching the data. In this
framework we can execute the same test case repeatedly in a loop to handle different test input which is retrieved from the
database.
Keywords— Test Framework, Data driven Architecture, Library Test Architecture.
1. INTRODUCTION
In this paper we discuss about creating and overview of the architecture, design and implementation of a browser automatable
hybrid framework. The test framework is based on Library Architecture and Data Driven Architecture; both are simple and
effective architectures which are used for automation testing. Library Architecture framework are based on higher
implementation of Module Based Testing Framework, which is evolved after Module Based Testing Framework. Data Driven
Testing Framework helps the user separation of the test script code and the test input data from each other. It lets the user store
the test input data into a separate data file. Combination of both the framework would make am efficient and easy process to
automate a Web Based application using Selenium as the automation supporting tool.
The automation testing performed with the help of testing tools or some kind of programming languages to control the testing
class. The main idea behind automation testing is to automatically do the testing work without human interactions; it reduces
the cost and also makes testing more reliable and effective. Many tools are developed for this testing requirement.Selenium is
automation tool which supports the different way or approaches to test application. The entire suite of tools contains a rich set
of testing functions specifically for the needs of testing of web applications of all types. These operations are highly flexible,
having many options for locating UI elements and comparing expected test results against actual application behavior. One of
Selenium’s features to support for executing one’s tests on multiple browser platforms.
1.1 NEED OF TEST AUTOMATION
Software companies are not only required to test the software adequately, but also it is required to test thoroughly and quickly.
To perform this goal automation testing is needed. Manual testing is a time taken process and error prone, automation help to
overcome this drawback by running the test frequently increases confidence in the application. Execution the test cases will
also helps the user to understand the functionality. The set of automation tools can form a regression test suite. Automation
also helps in finding the problem in earlier stages and fixing it.
1.2 RELATED WORK
This section discusses various methods that have been used on creating the Hybrid Architecture; this section will also state the
related works which are done on different framework.
International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163
Issue 03, Volume 4 (March 2017) www.ijirae.com
______________________________________________________________________________________________________
IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 |
ISRAJIF (2016): 3.715
IJIRAE © 2014- 17, All Rights Reserved Page -109
In [1], Chethan M. proposed a better framework approach then the Modular Based Testing Framework, He claimed using
Library Architecture Testing Framework is better as the code can be reused when saved in the methods or functions, the author
is also stated the advantages of using the Library architecture. In [2], Anbunathan, proposed Data Driven Architecture for
Android Mobile. He mentioned it is challenging task to generate Data Driven architecture. It required an external data base
provide input to the test scripts. In Data Driven the same test scripts are executed multiple times for different provided inputs.
They have explained the effectiveness of this method based on experimental result. In [3], Zeng Wandan, Jiang Ningkang,
Zhou Xubo, in this paper the author as introduce the new framework based on object feature set and dynamic searching policy,
using the obtained result it shows that the framework is more convenient and effective with less resources and time cost by
higher test coverage. [4] In the paper author Hari SankarChaini, have mentioned the process of test script design and execution
as well as failure analysis of the scripts. Author as also mentioned about the different failures which comes under false
positive.
II. LIBRARY ARCHITECTURE TESTING FRAMEWORK
Quality library architecture framework is very similar to the test script modularity structure and offers the same advantages, but
it splits the application-under-test into methods and functions (or items and methods with regards to the setup language) rather
than scripts. This kind of framework requires the creation of library files that represent modules, sections, and functions of the
application-under-test. These library files are then called directly from test case script. Many like script modularization this
framework also yields a high amount of modularization and adds to the overall maintainability of the testing. The basic
fundamental lurking behind the framework is to determine the common steps and group them into functions under a selection
and call those functions in the test intrigue whenever required [1].
Fig 1: Library Based Automation Framework
ADVANTAGES
 Higher level of code reuse is achieved in Structured Scripting
 It is less costly to develop as the higher code reusability achieved
 Easier Script Maintenance
DISADVANTAGES
 Technical expertise is required to write Scripts using Test Library Framework.
 Time consuming to plan and prepare test scripts.
 Test Data is hard coded within the scripts
III. DATA DRIVEN ARCHITECTURE FRAMEWORK
On automating or testing any application, sometimes it may be required to test the same functionality repeatedly multiple times
with the different set of input values. Thus, in such cases, we can’t let the test data entered in the test script. Hence it is advised
to retain test data into some external data base or data files outside the test scripts. A data-driven framework is where test
input/output values are read from data files and are loaded into variables or manually coded scripts. In this framework,
variables are used for both input values and as well as output verification values. Navigation through the program, reading and
retrieving data from the data files, and loading of test status and information are all coded in the test script. This is similar to
table-driven testing in which the test case is containing in the data file and not in the script; the script is just a “driver,” or
delivery mechanism, for the data. In data-driven testing, only test data is contained in the data files [2].
ADVANTAGES
 Less coding required as it covers all the possible combination of test scenario
 Changes done on the test data will not affect the test scripts
 Increases flexibility and maintainability
 A single test scenario can be re executed with multiple test data
DISADVANTAGES
 The process is complex and required additional efforts to create data sources and read mechanisms
International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163
Issue 03, Volume 4 (March 2017) www.ijirae.com
______________________________________________________________________________________________________
IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 |
ISRAJIF (2016): 3.715
IJIRAE © 2014- 17, All Rights Reserved Page -110
Fig 2: DDA Based Test Automation Framework
IV. PROPOSED FRAMEWORK ON HYBRID ARCHITECTURE TESTING FRAMEWORK
In this section, architecture and design constraints of proposed Hybrid architecture based test automation framework is
discussed.
OVERVIEW OF THE HYBRID ARCHITECTURE TESTING FRAMEWORK
This Framework is being combination of Library Architecture and Data driven Architecture. This allows data driven scripts to
take advantage of the powerful libraries and utilities that usually accompany library architecture. The framework utilities can
make the data driven scripts more compact and less prone to failure than they otherwise would have been. The utilities can also
facilitate the gradual and manageable conversion of existing scripts. Here we have the function for each common step under a
common library and call it in the test scripts when ever required, it also contain the data file which provides the data from the
outside storage medium, like files, SQL or any data storage medium from which we can retrieve the data needed to test the
software.
ARCHITECTURE OF THE HYBRID FRAMEWORK
Hybrid framework is the existences of multiple frameworks forming one single framework. Here the library architecture is
merged with data driven architecture to form a hybrid architecture of the both architectures are very efficient in their own
ways.
Below is the description of the architecture flow.
FRAMEWORK FOLDER STRUCTURE
Fig 3: Folder Structure of Hybrid Framework
International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163
Issue 03, Volume 4 (March 2017) www.ijirae.com
______________________________________________________________________________________________________
IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 |
ISRAJIF (2016): 3.715
IJIRAE © 2014- 17, All Rights Reserved Page -111
A. CUSTOM EXCEPTION FOLDER
This is a folder which contains the user defined exception class which extends the Exception class, which is mainly used to
handle the exception occurred at the time of execution. They are used to provide a simplified message for the users about the
errors occurred while executing. They are basically helps the users to understand the failure and for debugging effectively.
B. MAIN FOLDER
This folder contains the class which would call the XML file for evocation of the test scripts. They are TestNG xml file. This
can be used for setting the priority for test cases execution flow. They are the first class which would be executed.
C. OBJECT FOLDER
In this folder we have captured the various web elements or web element identifiers in the form of variables which can be
accessed in other places of the Framework.
D. REUSABLE FUNCTION FOLDER
The folder is constituted of the classes which contain functions and methods that can be shared and used amongst the multiple
classes. Very often, we are suppose to perform certain operation prior and before to the actual test execution like login to the
application, setting up environments, activities related to rolls, data manipulations, sending results, methods those perform
pre/post-conditions to other methods. Since we tend to perform these activities for all or most of the test script. Thus it is
always recommended to create a separate class for such activities instead of coding them repeatedly inside each of the test
script.
E. TEST CASES FOLDER
The "test" folder is constituted of majorly test suite and the folders representing the many modules of the software under test.
Thus, each of these folders is made up of the test scripts specific to the module that it is associated. Test suite is a logical blend
greater than one test scripts. Thus, the end user can mark an admittance of any of the test script within the test suite that he/she
wants to execute in the subsequent runs.
F. UTILITIES FOLDER
In this folder they are two classes one for the Read Properties –which are having the code to read the properties file and send
the data to the test cases and as an input for the test steps, other is Properties file the static variables referencing to the paths
and other environmental details. These details can be Application URL, URL to the Databases, Credentials for Databases, and
URL to any third party tool being used. Properties class has the string data which would be accessed by the read properties
method.
G. REPORT FOLDER
[5] Reporting is the most important part of any test execution, as it helps the user understand the result of the test execution,
point of failure, and the reasons for failure. Logging, on the other hand, is important to know the execution flow or for
debugging in case of any failures. TestNG, by default, generates a different type of report for its test execution. This includes
an HTML and an XML report. TestNG also allows its users to write their own reporter and use it with TestNG. There are also
options to write your own loggers, which are notified at runtime by TestNG.
H. LIBRARY FOLDER
In the Library folder we have stored all the supporting jar files which are required by the project. These jar files are used by the
Java classes. [6] Jar files are in ZIP file format and is used for aggregating many files into one Jar. JARsare used as a general
archiving tools, the primary motivation for its development was so that Java applets and their components (.class files, images
and sounds) can be downloaded to a browser in a single HTTP instances, rather than opening a new connection for each time.
In our project we have used Selenium, TestNG Jars for accessing the functionality of these tools.
V. HYBRID ARCHITECTURE FRAMEWORK
Fig 4: Process flow for Hybrid Framework
International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163
Issue 03, Volume 4 (March 2017) www.ijirae.com
______________________________________________________________________________________________________
IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 |
ISRAJIF (2016): 3.715
IJIRAE © 2014- 17, All Rights Reserved Page -112
Using Framework is it easy to structure our code and make maintenance quite easy. We would have placed out data and code
together which would rather be re usable nr readable without framework. Hence using the framework as provide various
benefits like code re-usage, higher portability, reduced script maintenance cost etc. In our Hybrid Framework, Firstly the
Main.class would be executed on calling the Main.class which calls the TestNG XML suite file, in which we have arranged the
order of testcase execution. When our first test case is been executed it would have the Predefined functions which are
retrieved from the Reusable function folder they are code which would be used in many places can be click event, enter the
text box value, select value from drop down box and many more. These function are been called in the Custom function, which
as the reusable functionality like login page, this class would contain the function which can be used for reusable
functionalities. They take the values from Object. class and Properties file. Object.class would have the variables of the web
element and where as Properties file would have the details of values which needed to enter like, application URL, Credentials
and etc,
On executing the test case if they are some error of failure occur in the execution flow they are indeed captured in the
CustomException.class. They are extending Exception.class and they are used to handle the exception which occurs in the
execution, they provide a meaning full message on every error which appears. On the completion of the execution finally the
report would be generated by the TestNG reporting feature [7]. TestNG, by default, generates multiple reports as part of its test
execution. These reports mainly include TestNG HTML report, TestNG email able report, TestNG report XML, and JUnit
report XML files. These files can be found under the output report folder
VI. CONCLUSION
Hybrid Framework is rugged, easy to implement, easy to use, easy to expand and easy to maintain. It is Technology and
Platform independent and it is also separate from the Test Design. Once it is created it improves the speed and maintainability
of automation Test Cases which uses the reusable libraries and reduces cost. In this paper we have explored the
implementation of Hybrid Test Automation Framework and the different advantages of independent architectures like Library
Architecture and Data Driven Architecture and how it can be effectively used during automation. We have also discussed
about the folder structure and the execution flow of the framework. The framework is easy to extended and maintain. In order
to support more complex tested cases, more kinds of applications will be researched in future work and it will also be checked
for mobile implementation. At the same time, the exception handling in testing will also be further researched and
implemented in more effective way.
REFERENCES
[1] Chethan M and Padma MC, “Test Automation Framework on Library Architecture” Department of Computer science &
Engineering, PES College of Engineering, Mandya
[2] Anbunathan R and AnirbanBasu, “Data Driven Architecture Based Automated Test Generation for Android Mobile” Test
Manager and Research Scholar, Bharathiar University Coimbatore, India
[3] Zeng Wandan, Jiang Ningkang, Zhou Xubo, “Design and Implementation of a Web Application Automation Testing
Framework”, Software institute of East China Normal University, Shanghai, China
[4] Hari SankarChaini and Dr. Sateesh Kumar Pradhan, “Test Script Execution and Effective Result Analysis in Hybrid Test
Automation Framework”, Department of Computer Science and Application Utkal University, Vani Vihar Bhubaneswar,
Odisha, INDIA
[5] CédricBeust, a senior software engineer at Google, about TestNG available at: http://testng.org/doc/documentation-
main.html
[6] ORACLE, Java Documentation about Jar files is https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jarGuide.html
[7] TestNGtutorials for learning the usage of the toolhttp://www.tutorialspoint.com/testng/

More Related Content

PDF
Testing and test case generation by using fuzzy logic and n
DOC
Pavithra_TestEngineer
PDF
Dc35579583
PDF
PROPOSING AUTOMATED REGRESSION SUITE USING OPEN SOURCE TOOLS FOR A HEALTH CAR...
PDF
Comparative Analysis of Model Based Testing and Formal Based Testing - A Review
PDF
Test Case Optimization and Redundancy Reduction Using GA and Neural Networks
PDF
Method-Level Code Clone Modification using Refactoring Techniques for Clone M...
Testing and test case generation by using fuzzy logic and n
Pavithra_TestEngineer
Dc35579583
PROPOSING AUTOMATED REGRESSION SUITE USING OPEN SOURCE TOOLS FOR A HEALTH CAR...
Comparative Analysis of Model Based Testing and Formal Based Testing - A Review
Test Case Optimization and Redundancy Reduction Using GA and Neural Networks
Method-Level Code Clone Modification using Refactoring Techniques for Clone M...

What's hot (20)

PDF
A STUDY OF FORMULATION OF SOFTWARE TEST METRICS FOR INTERNET BASED APPLICATIONS
PDF
Bd36334337
PPTX
Testing project (basic)
PDF
A novel approach for evaluation of applying ajax in the web site
PPTX
HP Software Testing project (Advanced)
PDF
Towards effective bug triage with software data reduction techniques
PDF
REALIZING A LOOSELY-COUPLED STUDENTS PORTAL FRAMEWORK
PPTX
Unit testing and test driven development using vs
PDF
AUTOMATED BUG TRIAGE USING ADVANCED DATA REDUCTION TECHNIQUES
PDF
Towards formulating dynamic model for predicting defects in system testing us...
PPTX
Coded ui test
PPTX
TSE 2016 - Finding and Evaluating the Performance Impact of Redundant Data Ac...
PDF
Comprehensive Testing Tool for Automatic Test Suite Generation, Prioritizatio...
PDF
M018147883
PDF
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
PPTX
Presentation
PDF
@#$@#$@#$"""@#$@#$"""
PDF
Eclipse Code Monitoring Utility
PDF
A Novel Approach for Code Clone Detection Using Hybrid Technique
PPTX
Unit testing with visual studio 2012
A STUDY OF FORMULATION OF SOFTWARE TEST METRICS FOR INTERNET BASED APPLICATIONS
Bd36334337
Testing project (basic)
A novel approach for evaluation of applying ajax in the web site
HP Software Testing project (Advanced)
Towards effective bug triage with software data reduction techniques
REALIZING A LOOSELY-COUPLED STUDENTS PORTAL FRAMEWORK
Unit testing and test driven development using vs
AUTOMATED BUG TRIAGE USING ADVANCED DATA REDUCTION TECHNIQUES
Towards formulating dynamic model for predicting defects in system testing us...
Coded ui test
TSE 2016 - Finding and Evaluating the Performance Impact of Redundant Data Ac...
Comprehensive Testing Tool for Automatic Test Suite Generation, Prioritizatio...
M018147883
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
Presentation
@#$@#$@#$"""@#$@#$"""
Eclipse Code Monitoring Utility
A Novel Approach for Code Clone Detection Using Hybrid Technique
Unit testing with visual studio 2012
Ad

Viewers also liked (14)

PDF
The 1988 Company - Sufi Night
PPTX
Aprendiendo cómo citar en APA
PDF
CORTEX presentation at NUGENIA 2017 Forum
PPTX
La percée de Mélenchon
PDF
10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
PDF
How to Earn the Attention of Today's Buyer
PDF
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
PDF
Behind the Scenes: Launching HubSpot Tokyo
PDF
HubSpot Diversity Data 2016
PDF
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
PDF
Membangun brand melalui website helofranchise.com
PDF
Applying Enterprise technologies in Science
PPT
Regain Control over your Business
PDF
Surat keterangan domisili cv.jayapura
The 1988 Company - Sufi Night
Aprendiendo cómo citar en APA
CORTEX presentation at NUGENIA 2017 Forum
La percée de Mélenchon
10 Things You Didn’t Know About Mobile Email from Litmus & HubSpot
How to Earn the Attention of Today's Buyer
Modern Prospecting Techniques for Connecting with Prospects (from Sales Hacke...
Behind the Scenes: Launching HubSpot Tokyo
HubSpot Diversity Data 2016
Why People Block Ads (And What It Means for Marketers and Advertisers) [New R...
Membangun brand melalui website helofranchise.com
Applying Enterprise technologies in Science
Regain Control over your Business
Surat keterangan domisili cv.jayapura
Ad

Similar to Design and Implementation of Hybrid Test Automation Framework for Web Based Application (20)

PDF
Unit Test using Test Driven Development Approach to Support Reusability
PDF
Pros and Cons of key test automation frameworks.pdf
PDF
Choosing right-automation-tool
PDF
Automation Testing of Web based Application with Selenium and HP UFT (QTP)
PDF
Test Automation Framework Design | www.idexcel.com
PDF
Test Automation Frameworks- The Complete Guide.pdf
PDF
Streamlining Software Testing With Codeless Automation!.pdf
PDF
Unit Testing to Support Reusable for Component-Based Software Engineering
PPTX
Automation Best Practices.pptx
PDF
An Empirical Study of the Improved SPLD Framework using Expert Opinion Technique
PDF
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdf
PDF
Overview and Analysis of Automated Testing Tools: Ranorex, Test Complete, Se...
PDF
Software Testing Data Kart and Integrated Pipeline Approach
PDF
Automated Testing: An Edge Over Manual Software Testing
PDF
Category Based Application Engine
PDF
Web-Based Automation Testing and Tools Leveraging AI and ML
PPTX
Popular Test Automation Frameworks
PDF
Comparative Study on Different Mobile Application Frameworks
PPTX
Testing frameworks
PDF
Implementation of reducing features to improve code change based bug predicti...
Unit Test using Test Driven Development Approach to Support Reusability
Pros and Cons of key test automation frameworks.pdf
Choosing right-automation-tool
Automation Testing of Web based Application with Selenium and HP UFT (QTP)
Test Automation Framework Design | www.idexcel.com
Test Automation Frameworks- The Complete Guide.pdf
Streamlining Software Testing With Codeless Automation!.pdf
Unit Testing to Support Reusable for Component-Based Software Engineering
Automation Best Practices.pptx
An Empirical Study of the Improved SPLD Framework using Expert Opinion Technique
Test Automation Framework An Insight into Some Popular Automation Frameworks.pdf
Overview and Analysis of Automated Testing Tools: Ranorex, Test Complete, Se...
Software Testing Data Kart and Integrated Pipeline Approach
Automated Testing: An Edge Over Manual Software Testing
Category Based Application Engine
Web-Based Automation Testing and Tools Leveraging AI and ML
Popular Test Automation Frameworks
Comparative Study on Different Mobile Application Frameworks
Testing frameworks
Implementation of reducing features to improve code change based bug predicti...

More from AM Publications (20)

PDF
DEVELOPMENT OF TODDLER FAMILY CADRE TRAINING BASED ON ANDROID APPLICATIONS IN...
PDF
TESTING OF COMPOSITE ON DROP-WEIGHT IMPACT TESTING AND DAMAGE IDENTIFICATION ...
PDF
THE USE OF FRACTAL GEOMETRY IN TILING MOTIF DESIGN
PDF
TWO-DIMENSIONAL INVERSION FINITE ELEMENT MODELING OF MAGNETOTELLURIC DATA: CA...
PDF
USING THE GENETIC ALGORITHM TO OPTIMIZE LASER WELDING PARAMETERS FOR MARTENSI...
PDF
ANALYSIS AND DESIGN E-MARKETPLACE FOR MICRO, SMALL AND MEDIUM ENTERPRISES
PDF
REMOTE SENSING AND GEOGRAPHIC INFORMATION SYSTEMS
PDF
EVALUATE THE STRAIN ENERGY ERROR FOR THE LASER WELD BY THE H-REFINEMENT OF TH...
PDF
HMM APPLICATION IN ISOLATED WORD SPEECH RECOGNITION
PDF
PEDESTRIAN DETECTION IN LOW RESOLUTION VIDEOS USING A MULTI-FRAME HOG-BASED D...
PDF
INTELLIGENT BLIND STICK
PDF
EFFECT OF SILICON - RUBBER (SR) SHEETS AS AN ALTERNATIVE FILTER ON HIGH AND L...
PDF
UTILIZATION OF IMMUNIZATION SERVICES AMONG CHILDREN UNDER FIVE YEARS OF AGE I...
PDF
REPRESENTATION OF THE BLOCK DATA ENCRYPTION ALGORITHM IN AN ANALYTICAL FORM F...
PDF
OPTICAL CHARACTER RECOGNITION USING RBFNN
PDF
DETECTION OF MOVING OBJECT
PDF
SIMULATION OF ATMOSPHERIC POLLUTANTS DISPERSION IN AN URBAN ENVIRONMENT
PDF
PREPARATION AND EVALUATION OF WOOL KERATIN BASED CHITOSAN NANOFIBERS FOR AIR ...
PDF
ANALYSIS ON LOAD BALANCING ALGORITHMS IMPLEMENTATION ON CLOUD COMPUTING ENVIR...
PDF
A MODEL BASED APPROACH FOR IMPLEMENTING WLAN SECURITY
DEVELOPMENT OF TODDLER FAMILY CADRE TRAINING BASED ON ANDROID APPLICATIONS IN...
TESTING OF COMPOSITE ON DROP-WEIGHT IMPACT TESTING AND DAMAGE IDENTIFICATION ...
THE USE OF FRACTAL GEOMETRY IN TILING MOTIF DESIGN
TWO-DIMENSIONAL INVERSION FINITE ELEMENT MODELING OF MAGNETOTELLURIC DATA: CA...
USING THE GENETIC ALGORITHM TO OPTIMIZE LASER WELDING PARAMETERS FOR MARTENSI...
ANALYSIS AND DESIGN E-MARKETPLACE FOR MICRO, SMALL AND MEDIUM ENTERPRISES
REMOTE SENSING AND GEOGRAPHIC INFORMATION SYSTEMS
EVALUATE THE STRAIN ENERGY ERROR FOR THE LASER WELD BY THE H-REFINEMENT OF TH...
HMM APPLICATION IN ISOLATED WORD SPEECH RECOGNITION
PEDESTRIAN DETECTION IN LOW RESOLUTION VIDEOS USING A MULTI-FRAME HOG-BASED D...
INTELLIGENT BLIND STICK
EFFECT OF SILICON - RUBBER (SR) SHEETS AS AN ALTERNATIVE FILTER ON HIGH AND L...
UTILIZATION OF IMMUNIZATION SERVICES AMONG CHILDREN UNDER FIVE YEARS OF AGE I...
REPRESENTATION OF THE BLOCK DATA ENCRYPTION ALGORITHM IN AN ANALYTICAL FORM F...
OPTICAL CHARACTER RECOGNITION USING RBFNN
DETECTION OF MOVING OBJECT
SIMULATION OF ATMOSPHERIC POLLUTANTS DISPERSION IN AN URBAN ENVIRONMENT
PREPARATION AND EVALUATION OF WOOL KERATIN BASED CHITOSAN NANOFIBERS FOR AIR ...
ANALYSIS ON LOAD BALANCING ALGORITHMS IMPLEMENTATION ON CLOUD COMPUTING ENVIR...
A MODEL BASED APPROACH FOR IMPLEMENTING WLAN SECURITY

Recently uploaded (20)

PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPT
Quality review (1)_presentation of this 21
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PDF
Mega Projects Data Mega Projects Data
PPTX
Introduction to machine learning and Linear Models
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PDF
Foundation of Data Science unit number two notes
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PPTX
Computer network topology notes for revision
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Acceptance and paychological effects of mandatory extra coach I classes.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
Clinical guidelines as a resource for EBP(1).pdf
Quality review (1)_presentation of this 21
climate analysis of Dhaka ,Banglades.pptx
Database Infoormation System (DBIS).pptx
Introduction-to-Cloud-ComputingFinal.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Mega Projects Data Mega Projects Data
Introduction to machine learning and Linear Models
IBA_Chapter_11_Slides_Final_Accessible.pptx
Fluorescence-microscope_Botany_detailed content
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Foundation of Data Science unit number two notes
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Computer network topology notes for revision

Design and Implementation of Hybrid Test Automation Framework for Web Based Application

  • 1. International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163 Issue 03, Volume 4 (March 2017) www.ijirae.com ______________________________________________________________________________________________________ IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 | ISRAJIF (2016): 3.715 IJIRAE © 2014- 17, All Rights Reserved Page -108 Design and Implementation of Hybrid Test Automation Framework for Web Based Application Sabastain Raju J, Vaidhehi V Department of Computer Science, Christ University, Bangalore, India Manuscript History Number: IJIRAE/RS/Vol.04/Issue03/MRAE10097 Received: 07, March 2017 Final Correction: 20, March 2017 Final Accepted: 20, March 2017 Published: March 2017 Abstract -- There many ways to create Web application UI Test Automation Framework. This paper elaborates the creation of the Hybrid Test Automation Framework, and explains the architecture and design of the framework. This Framework is easy to use and incorporate the use of high level programming language allowing object oriented design, permits low level access to the UL components and recover quickly for UI changes in the application under test. The architecture of the framework as multi layer design which isolates the browser UI compounds and test scripts. This Framework Architecture is a merged combination of Library and Data Driven Test Automation Framework. This Framework contents multi packages with classes which isolates the reusable functions and involves the external database on fetching the data. In this framework we can execute the same test case repeatedly in a loop to handle different test input which is retrieved from the database. Keywords— Test Framework, Data driven Architecture, Library Test Architecture. 1. INTRODUCTION In this paper we discuss about creating and overview of the architecture, design and implementation of a browser automatable hybrid framework. The test framework is based on Library Architecture and Data Driven Architecture; both are simple and effective architectures which are used for automation testing. Library Architecture framework are based on higher implementation of Module Based Testing Framework, which is evolved after Module Based Testing Framework. Data Driven Testing Framework helps the user separation of the test script code and the test input data from each other. It lets the user store the test input data into a separate data file. Combination of both the framework would make am efficient and easy process to automate a Web Based application using Selenium as the automation supporting tool. The automation testing performed with the help of testing tools or some kind of programming languages to control the testing class. The main idea behind automation testing is to automatically do the testing work without human interactions; it reduces the cost and also makes testing more reliable and effective. Many tools are developed for this testing requirement.Selenium is automation tool which supports the different way or approaches to test application. The entire suite of tools contains a rich set of testing functions specifically for the needs of testing of web applications of all types. These operations are highly flexible, having many options for locating UI elements and comparing expected test results against actual application behavior. One of Selenium’s features to support for executing one’s tests on multiple browser platforms. 1.1 NEED OF TEST AUTOMATION Software companies are not only required to test the software adequately, but also it is required to test thoroughly and quickly. To perform this goal automation testing is needed. Manual testing is a time taken process and error prone, automation help to overcome this drawback by running the test frequently increases confidence in the application. Execution the test cases will also helps the user to understand the functionality. The set of automation tools can form a regression test suite. Automation also helps in finding the problem in earlier stages and fixing it. 1.2 RELATED WORK This section discusses various methods that have been used on creating the Hybrid Architecture; this section will also state the related works which are done on different framework.
  • 2. International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163 Issue 03, Volume 4 (March 2017) www.ijirae.com ______________________________________________________________________________________________________ IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 | ISRAJIF (2016): 3.715 IJIRAE © 2014- 17, All Rights Reserved Page -109 In [1], Chethan M. proposed a better framework approach then the Modular Based Testing Framework, He claimed using Library Architecture Testing Framework is better as the code can be reused when saved in the methods or functions, the author is also stated the advantages of using the Library architecture. In [2], Anbunathan, proposed Data Driven Architecture for Android Mobile. He mentioned it is challenging task to generate Data Driven architecture. It required an external data base provide input to the test scripts. In Data Driven the same test scripts are executed multiple times for different provided inputs. They have explained the effectiveness of this method based on experimental result. In [3], Zeng Wandan, Jiang Ningkang, Zhou Xubo, in this paper the author as introduce the new framework based on object feature set and dynamic searching policy, using the obtained result it shows that the framework is more convenient and effective with less resources and time cost by higher test coverage. [4] In the paper author Hari SankarChaini, have mentioned the process of test script design and execution as well as failure analysis of the scripts. Author as also mentioned about the different failures which comes under false positive. II. LIBRARY ARCHITECTURE TESTING FRAMEWORK Quality library architecture framework is very similar to the test script modularity structure and offers the same advantages, but it splits the application-under-test into methods and functions (or items and methods with regards to the setup language) rather than scripts. This kind of framework requires the creation of library files that represent modules, sections, and functions of the application-under-test. These library files are then called directly from test case script. Many like script modularization this framework also yields a high amount of modularization and adds to the overall maintainability of the testing. The basic fundamental lurking behind the framework is to determine the common steps and group them into functions under a selection and call those functions in the test intrigue whenever required [1]. Fig 1: Library Based Automation Framework ADVANTAGES  Higher level of code reuse is achieved in Structured Scripting  It is less costly to develop as the higher code reusability achieved  Easier Script Maintenance DISADVANTAGES  Technical expertise is required to write Scripts using Test Library Framework.  Time consuming to plan and prepare test scripts.  Test Data is hard coded within the scripts III. DATA DRIVEN ARCHITECTURE FRAMEWORK On automating or testing any application, sometimes it may be required to test the same functionality repeatedly multiple times with the different set of input values. Thus, in such cases, we can’t let the test data entered in the test script. Hence it is advised to retain test data into some external data base or data files outside the test scripts. A data-driven framework is where test input/output values are read from data files and are loaded into variables or manually coded scripts. In this framework, variables are used for both input values and as well as output verification values. Navigation through the program, reading and retrieving data from the data files, and loading of test status and information are all coded in the test script. This is similar to table-driven testing in which the test case is containing in the data file and not in the script; the script is just a “driver,” or delivery mechanism, for the data. In data-driven testing, only test data is contained in the data files [2]. ADVANTAGES  Less coding required as it covers all the possible combination of test scenario  Changes done on the test data will not affect the test scripts  Increases flexibility and maintainability  A single test scenario can be re executed with multiple test data DISADVANTAGES  The process is complex and required additional efforts to create data sources and read mechanisms
  • 3. International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163 Issue 03, Volume 4 (March 2017) www.ijirae.com ______________________________________________________________________________________________________ IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 | ISRAJIF (2016): 3.715 IJIRAE © 2014- 17, All Rights Reserved Page -110 Fig 2: DDA Based Test Automation Framework IV. PROPOSED FRAMEWORK ON HYBRID ARCHITECTURE TESTING FRAMEWORK In this section, architecture and design constraints of proposed Hybrid architecture based test automation framework is discussed. OVERVIEW OF THE HYBRID ARCHITECTURE TESTING FRAMEWORK This Framework is being combination of Library Architecture and Data driven Architecture. This allows data driven scripts to take advantage of the powerful libraries and utilities that usually accompany library architecture. The framework utilities can make the data driven scripts more compact and less prone to failure than they otherwise would have been. The utilities can also facilitate the gradual and manageable conversion of existing scripts. Here we have the function for each common step under a common library and call it in the test scripts when ever required, it also contain the data file which provides the data from the outside storage medium, like files, SQL or any data storage medium from which we can retrieve the data needed to test the software. ARCHITECTURE OF THE HYBRID FRAMEWORK Hybrid framework is the existences of multiple frameworks forming one single framework. Here the library architecture is merged with data driven architecture to form a hybrid architecture of the both architectures are very efficient in their own ways. Below is the description of the architecture flow. FRAMEWORK FOLDER STRUCTURE Fig 3: Folder Structure of Hybrid Framework
  • 4. International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163 Issue 03, Volume 4 (March 2017) www.ijirae.com ______________________________________________________________________________________________________ IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 | ISRAJIF (2016): 3.715 IJIRAE © 2014- 17, All Rights Reserved Page -111 A. CUSTOM EXCEPTION FOLDER This is a folder which contains the user defined exception class which extends the Exception class, which is mainly used to handle the exception occurred at the time of execution. They are used to provide a simplified message for the users about the errors occurred while executing. They are basically helps the users to understand the failure and for debugging effectively. B. MAIN FOLDER This folder contains the class which would call the XML file for evocation of the test scripts. They are TestNG xml file. This can be used for setting the priority for test cases execution flow. They are the first class which would be executed. C. OBJECT FOLDER In this folder we have captured the various web elements or web element identifiers in the form of variables which can be accessed in other places of the Framework. D. REUSABLE FUNCTION FOLDER The folder is constituted of the classes which contain functions and methods that can be shared and used amongst the multiple classes. Very often, we are suppose to perform certain operation prior and before to the actual test execution like login to the application, setting up environments, activities related to rolls, data manipulations, sending results, methods those perform pre/post-conditions to other methods. Since we tend to perform these activities for all or most of the test script. Thus it is always recommended to create a separate class for such activities instead of coding them repeatedly inside each of the test script. E. TEST CASES FOLDER The "test" folder is constituted of majorly test suite and the folders representing the many modules of the software under test. Thus, each of these folders is made up of the test scripts specific to the module that it is associated. Test suite is a logical blend greater than one test scripts. Thus, the end user can mark an admittance of any of the test script within the test suite that he/she wants to execute in the subsequent runs. F. UTILITIES FOLDER In this folder they are two classes one for the Read Properties –which are having the code to read the properties file and send the data to the test cases and as an input for the test steps, other is Properties file the static variables referencing to the paths and other environmental details. These details can be Application URL, URL to the Databases, Credentials for Databases, and URL to any third party tool being used. Properties class has the string data which would be accessed by the read properties method. G. REPORT FOLDER [5] Reporting is the most important part of any test execution, as it helps the user understand the result of the test execution, point of failure, and the reasons for failure. Logging, on the other hand, is important to know the execution flow or for debugging in case of any failures. TestNG, by default, generates a different type of report for its test execution. This includes an HTML and an XML report. TestNG also allows its users to write their own reporter and use it with TestNG. There are also options to write your own loggers, which are notified at runtime by TestNG. H. LIBRARY FOLDER In the Library folder we have stored all the supporting jar files which are required by the project. These jar files are used by the Java classes. [6] Jar files are in ZIP file format and is used for aggregating many files into one Jar. JARsare used as a general archiving tools, the primary motivation for its development was so that Java applets and their components (.class files, images and sounds) can be downloaded to a browser in a single HTTP instances, rather than opening a new connection for each time. In our project we have used Selenium, TestNG Jars for accessing the functionality of these tools. V. HYBRID ARCHITECTURE FRAMEWORK Fig 4: Process flow for Hybrid Framework
  • 5. International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2163 Issue 03, Volume 4 (March 2017) www.ijirae.com ______________________________________________________________________________________________________ IJIRAE: Impact Factor Value – SJIF: Innospace, Morocco (2016): 3.916 | PIF: 2.469 | Jour Info: 4.085 | ISRAJIF (2016): 3.715 IJIRAE © 2014- 17, All Rights Reserved Page -112 Using Framework is it easy to structure our code and make maintenance quite easy. We would have placed out data and code together which would rather be re usable nr readable without framework. Hence using the framework as provide various benefits like code re-usage, higher portability, reduced script maintenance cost etc. In our Hybrid Framework, Firstly the Main.class would be executed on calling the Main.class which calls the TestNG XML suite file, in which we have arranged the order of testcase execution. When our first test case is been executed it would have the Predefined functions which are retrieved from the Reusable function folder they are code which would be used in many places can be click event, enter the text box value, select value from drop down box and many more. These function are been called in the Custom function, which as the reusable functionality like login page, this class would contain the function which can be used for reusable functionalities. They take the values from Object. class and Properties file. Object.class would have the variables of the web element and where as Properties file would have the details of values which needed to enter like, application URL, Credentials and etc, On executing the test case if they are some error of failure occur in the execution flow they are indeed captured in the CustomException.class. They are extending Exception.class and they are used to handle the exception which occurs in the execution, they provide a meaning full message on every error which appears. On the completion of the execution finally the report would be generated by the TestNG reporting feature [7]. TestNG, by default, generates multiple reports as part of its test execution. These reports mainly include TestNG HTML report, TestNG email able report, TestNG report XML, and JUnit report XML files. These files can be found under the output report folder VI. CONCLUSION Hybrid Framework is rugged, easy to implement, easy to use, easy to expand and easy to maintain. It is Technology and Platform independent and it is also separate from the Test Design. Once it is created it improves the speed and maintainability of automation Test Cases which uses the reusable libraries and reduces cost. In this paper we have explored the implementation of Hybrid Test Automation Framework and the different advantages of independent architectures like Library Architecture and Data Driven Architecture and how it can be effectively used during automation. We have also discussed about the folder structure and the execution flow of the framework. The framework is easy to extended and maintain. In order to support more complex tested cases, more kinds of applications will be researched in future work and it will also be checked for mobile implementation. At the same time, the exception handling in testing will also be further researched and implemented in more effective way. REFERENCES [1] Chethan M and Padma MC, “Test Automation Framework on Library Architecture” Department of Computer science & Engineering, PES College of Engineering, Mandya [2] Anbunathan R and AnirbanBasu, “Data Driven Architecture Based Automated Test Generation for Android Mobile” Test Manager and Research Scholar, Bharathiar University Coimbatore, India [3] Zeng Wandan, Jiang Ningkang, Zhou Xubo, “Design and Implementation of a Web Application Automation Testing Framework”, Software institute of East China Normal University, Shanghai, China [4] Hari SankarChaini and Dr. Sateesh Kumar Pradhan, “Test Script Execution and Effective Result Analysis in Hybrid Test Automation Framework”, Department of Computer Science and Application Utkal University, Vani Vihar Bhubaneswar, Odisha, INDIA [5] CédricBeust, a senior software engineer at Google, about TestNG available at: http://testng.org/doc/documentation- main.html [6] ORACLE, Java Documentation about Jar files is https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jarGuide.html [7] TestNGtutorials for learning the usage of the toolhttp://www.tutorialspoint.com/testng/