SlideShare a Scribd company logo
CREATIVE AUTOMATION
All you need to know
2
© Copyright Publicis.Sapient | Confidential
Agenda
1. What Are We Validating?
2. Evolution in process
3. Steps to Execute
4. Reports (Test Results)
5. Overview (Approaches)
6. Proposed Process Plan
7. Future Scope
8. Q&A
01 What Are We Validating?
4
© Copyright Publicis.Sapient | Confidential
Scenarios:
• Overlapping of Elements.
• Relative alignment of elements inside component.
• Relative width of elements.
• CSS properties like fonts, colors, size, margins and paddings etc…..
• Image Validation pixel by pixel.
• Broken Assets and empty (invalid components).
• Functionality to identify regression impact.
5
© Copyright Publicis.Sapient | Confidential
Validations: http://galenframework.com/docs/reference-galen-spec-language-guide
• Near
• Below and Above
• Left of and Right of
• Inside , Centered
• Width and Height
• Aligned (aligned horizontally all ,aligned horizontally top ,aligned horizontally bottom ,aligned horizontally
centered , aligned vertically all , aligned vertically left , aligned vertically right , aligned vertically centered)
• CSS Properties
• Visible , Absent
• Count
• Color scheme , Image etc.
02 Evolution in process
7
© Copyright Publicis.Sapient | Confidential
One Click Local
(Component
Wise Execution)
MVC Structure
(Code
Structuring)
Galen
Framework
(Creative and
Reporting)
Selenium
Webdriver
(Base)
Architectural Layers
8
© Copyright Publicis.Sapient | Confidential
Controller
(Runner.test.js)
View
(Gspec)
Model
(init.js)
Our Code Structure
Browser.js,getUrl.js,loginPage.js,
LoginBrand.js
03 Steps to execute (Local)
10
© Copyright Publicis.Sapient | Confidential
Running a Script: (After Prerequisites)
1. Go to your Automation folder, and there you will see two folders, named Desktop and Mobile.
2. Choose 1 folder , according to your breakpoint preference and go to Batch folder.
3. Double Click on any component batch file and wait for the reports.
4. After execution, Go to Reports folder and check the reports.
Making Changes:
• To change URL:
i. Go to Desktop/Mobile ->tests->init.js
ii. Now find array of component in which you want to make changes and replace the URL there.
• To Change Browser:
i. Go to Desktop/Mobile ->tests->browser.js
ii. Now uncomment the browser line according to your browser preference.
• To Change Environment:
i. Go to Desktop/Mobile ->tests->environment.js
ii. Now assign a variable value test or UAT.
• To Change Environment Password: Again user have to make a change in the code.
04 HTML Reports (Test Results)
12
© Copyright Publicis.Sapient | Confidential
Summery Of Each Run:
• Total number of validations.
• Number of validation failures.
• Number of passed validations
• Start time and End time.
• Total time took for each test.
Test Details:
• Heat Map functionality show Component’s/Element’s coverage.
• Each validation (object wise)
• Screenshot of each validation with highlighted object.
13
© Copyright Publicis.Sapient | Confidential
Test Summery
14
© Copyright Publicis.Sapient | Confidential
Test Details
15
© Copyright Publicis.Sapient | Confidential
Heat Map: Test Coverage
05 Problem Statements and Solution
17
© Copyright Publicis.Sapient | Confidential
1. Every validation we are doing here(on responsive websites), is screen size
dependent. Users will get different results, as they have different screen sizes.
2. To run this automation on individual level , every user have to install lot of
softwares and do the settings for the same.
3. In future if there’s any small change or further component development, again
user have to take the package from SVN or any other mode, which is a painful
process.
Problems with Local Approach
18
© Copyright Publicis.Sapient | Confidential
One Click Local
(Component Wise
Execution)
MVC Structure
(Code Structuring)
Galen Framework
(Creative and
Reporting)
Selenium Webdriver
(Base)
Server Approach
(Automation
Web App)
Approach Transformation
05 Overview (Approaches)
20
© Copyright Publicis.Sapient | Confidential
• One Click / Local Approach: We have a defined package of batch files and controllers, which user have to take it
from SVN to local and then user can run it after installing all the required softwares. Scripts will run on user’s
machine.
How to run: User has to trigger the batch file.(Double Click on batch file)
Whole Package and Reports will be stored in User’s machine.
• Automation Web App/ Server Approach: It is an intuitive web app, which you can run on your desktop, tablet or
mobile to run the scripts. Scripts will run on server machine. It will trigger the code based on your inputs.
How to run: User has to give input to a form.
Nothing will be stored in User’s machine.
06
Summarizing advantages of Server
approach
22
© Copyright Publicis.Sapient | Confidential
Sr. No. One Click/Local Approach Web App/Server Approach
1
User has to take the whole package from SVN
to Local
No Local Setup Needed.
2
User need to click on batch file from the
package
User is given a login screen and a UI form
for execution
3
Prerequisites: Installations and settings needed.
Softwares like Java, galen, node.js, adb, appium
are to be installed and setting should be done
for the same
No Prerquisites.
4 Component wise Yes, Component wise
5 Remotely Execution is not possible.
User can also run scripts from user’s mobile
phone.
6
URL is to be added in init fileif new URL is to be
added or modified
Form driven.
7
Changes should be done in browser.js in test
folder, if user want to change the browser.
Form driven.
23
© Copyright Publicis.Sapient | Confidential
Sr. No. One Click/Local Approach Web App/Server Approach
8
Changes should be done in environment.js in
test folder, if user want to change the
environment.
Form driven.
9
Changes should be done in password.js in test
folder, if user want to change the
environment password.
Form driven.
10
User has to check to know if reports are
generated.
User will be notified by push notification on the
browser
11 Appium has to be triggered manually Form driven. With a AJAX call.
12
Real device should be connected to users
machine.
Real device should be connected to sever machine.
13 Package Size is of 2.43 GB.
Package Size is of 48 MB. Because we are reusing
the most of code and we are generating it on
runtime.
14 New project compatibility is not that easy. It is comparatively easy.
24
© Copyright Publicis.Sapient | Confidential
Pros:
1. No Prerequisites, No need to install anything in users machine.
2. No KT’s required because of it’s User Experience, It very easy to change breakpoint, environment or its
password, browser or URLs (different domains) .
3. Reusable code. Package size is 70% decreased.
4. Easy maintenance.
5. Easy access to your own reports.
Cons:
1. User can’t see the execution on the browser. But from server it can be seen.
Server Approach: Pros and Cons
06 Proposed Process Plan
26
© Copyright Publicis.Sapient | Confidential
• Report Generation
•Review from component
owners
•Taking care of CR’s
•Taking care of new variations
•Creation of Dump on test
pages
•Creation of modal, gspec ,
and controller
•Add the whole
component to WEB APP
•From Site Dev & QA
(Owners)
•Decide the validations
using Pareto principle.
•Making of Test pages,
with all the variations of
that particular
component
Component
KT
Development
Report
Analyses &
Review
Maintenance
Process:
07 Future Scope
28
© Copyright Publicis.Sapient | Confidential
• Switching to Amazon Device farm for small breakpoints.
• Adding an admin panel so we can add scripts form the App (Independent of coding knowledge).
Future Plans
29
© Copyright Publicis.Sapient | Confidential
Q&A

More Related Content

PDF
Continuous testing in agile projects 2015
PPT
Loadrunner presentation
PPTX
Orchestrating Automated Tests in Different Systems - Please Download to watch...
PPTX
Continuous Testing in the Agile Age
PDF
Virtual Meetup - MuleSoft Catalyst and Accelerator for Banking
PDF
Jmeter Tester Certification
PPTX
Load Runner
PDF
Automated Performance Testing With J Meter And Maven
Continuous testing in agile projects 2015
Loadrunner presentation
Orchestrating Automated Tests in Different Systems - Please Download to watch...
Continuous Testing in the Agile Age
Virtual Meetup - MuleSoft Catalyst and Accelerator for Banking
Jmeter Tester Certification
Load Runner
Automated Performance Testing With J Meter And Maven

What's hot (18)

PPTX
Introduction to Performance Testing & Loadrunner
PDF
Uncovering breaking changes behind UI on mobile applications
PPTX
Using Jenkins and Jmeter to build a scalable Load Testing solution
PPT
Performance and load testing
PDF
Automation Testing with JMeter
PDF
Jmeter Performance Testing
PDF
LoadRunner walkthrough
PPTX
Performance Engineering
PDF
Performance testing with JMeter
PPT
Hp Loadrunner
PDF
Automation - Apache JMeter
PDF
Tutorial ranorex
PDF
This Is How We Test Our Performance With JMeter
PPTX
Web and load testing with Visual Studio 2010 Ultimate
PPTX
Performance Testing using LoadRunner
PPTX
Presentation on Apache Jmeter
PDF
Fundamentals Performance Testing
PPT
Performance testing jmeter
Introduction to Performance Testing & Loadrunner
Uncovering breaking changes behind UI on mobile applications
Using Jenkins and Jmeter to build a scalable Load Testing solution
Performance and load testing
Automation Testing with JMeter
Jmeter Performance Testing
LoadRunner walkthrough
Performance Engineering
Performance testing with JMeter
Hp Loadrunner
Automation - Apache JMeter
Tutorial ranorex
This Is How We Test Our Performance With JMeter
Web and load testing with Visual Studio 2010 Ultimate
Performance Testing using LoadRunner
Presentation on Apache Jmeter
Fundamentals Performance Testing
Performance testing jmeter
Ad

Similar to Creative Automation with Galen Framework (20)

DOC
Neha Arora_Resume
DOC
Ashish Baraiya
PPTX
Practical Software Testing Tools
PPTX
PPTX
What's New? - February 2017
PPTX
Cloud Migration - The Earlier You Instrument, The Faster You Go
PDF
Automated Browser Compatibility Testing
DOC
Mayur_Resume (2) (1)
PDF
Continuous Integration for z using Test Data Management and Application D...
DOCX
SRS for online examination system
PPTX
Neev QA Offering
PDF
28791456 web-testing
PPTX
Migrating to Windows 7 or 8 with Lenovo's Deployment Optimization Solutions
DOC
Navin Latest
PPT
Hybrid Automation Framework Developement
DOC
Gajanan Bhat
PPTX
Joget Workflow v6 Training Slides - 22 - Best Practices on Application Building
DOC
Musharraf_Syed_Resume
PDF
MuleSoft Surat Virtual Meetup#16 - Anypoint Deployment Option, API and Operat...
DOC
Raji_QA
Neha Arora_Resume
Ashish Baraiya
Practical Software Testing Tools
What's New? - February 2017
Cloud Migration - The Earlier You Instrument, The Faster You Go
Automated Browser Compatibility Testing
Mayur_Resume (2) (1)
Continuous Integration for z using Test Data Management and Application D...
SRS for online examination system
Neev QA Offering
28791456 web-testing
Migrating to Windows 7 or 8 with Lenovo's Deployment Optimization Solutions
Navin Latest
Hybrid Automation Framework Developement
Gajanan Bhat
Joget Workflow v6 Training Slides - 22 - Best Practices on Application Building
Musharraf_Syed_Resume
MuleSoft Surat Virtual Meetup#16 - Anypoint Deployment Option, API and Operat...
Raji_QA
Ad

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
August Patch Tuesday
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Encapsulation theory and applications.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
project resource management chapter-09.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Hybrid model detection and classification of lung cancer
PPTX
Tartificialntelligence_presentation.pptx
A comparative analysis of optical character recognition models for extracting...
NewMind AI Weekly Chronicles - August'25-Week II
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
August Patch Tuesday
1 - Historical Antecedents, Social Consideration.pdf
Encapsulation theory and applications.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Web App vs Mobile App What Should You Build First.pdf
Getting Started with Data Integration: FME Form 101
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Group 1 Presentation -Planning and Decision Making .pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
project resource management chapter-09.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Heart disease approach using modified random forest and particle swarm optimi...
Hindi spoken digit analysis for native and non-native speakers
Hybrid model detection and classification of lung cancer
Tartificialntelligence_presentation.pptx

Creative Automation with Galen Framework

  • 2. 2 © Copyright Publicis.Sapient | Confidential Agenda 1. What Are We Validating? 2. Evolution in process 3. Steps to Execute 4. Reports (Test Results) 5. Overview (Approaches) 6. Proposed Process Plan 7. Future Scope 8. Q&A
  • 3. 01 What Are We Validating?
  • 4. 4 © Copyright Publicis.Sapient | Confidential Scenarios: • Overlapping of Elements. • Relative alignment of elements inside component. • Relative width of elements. • CSS properties like fonts, colors, size, margins and paddings etc….. • Image Validation pixel by pixel. • Broken Assets and empty (invalid components). • Functionality to identify regression impact.
  • 5. 5 © Copyright Publicis.Sapient | Confidential Validations: http://galenframework.com/docs/reference-galen-spec-language-guide • Near • Below and Above • Left of and Right of • Inside , Centered • Width and Height • Aligned (aligned horizontally all ,aligned horizontally top ,aligned horizontally bottom ,aligned horizontally centered , aligned vertically all , aligned vertically left , aligned vertically right , aligned vertically centered) • CSS Properties • Visible , Absent • Count • Color scheme , Image etc.
  • 6. 02 Evolution in process
  • 7. 7 © Copyright Publicis.Sapient | Confidential One Click Local (Component Wise Execution) MVC Structure (Code Structuring) Galen Framework (Creative and Reporting) Selenium Webdriver (Base) Architectural Layers
  • 8. 8 © Copyright Publicis.Sapient | Confidential Controller (Runner.test.js) View (Gspec) Model (init.js) Our Code Structure Browser.js,getUrl.js,loginPage.js, LoginBrand.js
  • 9. 03 Steps to execute (Local)
  • 10. 10 © Copyright Publicis.Sapient | Confidential Running a Script: (After Prerequisites) 1. Go to your Automation folder, and there you will see two folders, named Desktop and Mobile. 2. Choose 1 folder , according to your breakpoint preference and go to Batch folder. 3. Double Click on any component batch file and wait for the reports. 4. After execution, Go to Reports folder and check the reports. Making Changes: • To change URL: i. Go to Desktop/Mobile ->tests->init.js ii. Now find array of component in which you want to make changes and replace the URL there. • To Change Browser: i. Go to Desktop/Mobile ->tests->browser.js ii. Now uncomment the browser line according to your browser preference. • To Change Environment: i. Go to Desktop/Mobile ->tests->environment.js ii. Now assign a variable value test or UAT. • To Change Environment Password: Again user have to make a change in the code.
  • 11. 04 HTML Reports (Test Results)
  • 12. 12 © Copyright Publicis.Sapient | Confidential Summery Of Each Run: • Total number of validations. • Number of validation failures. • Number of passed validations • Start time and End time. • Total time took for each test. Test Details: • Heat Map functionality show Component’s/Element’s coverage. • Each validation (object wise) • Screenshot of each validation with highlighted object.
  • 13. 13 © Copyright Publicis.Sapient | Confidential Test Summery
  • 14. 14 © Copyright Publicis.Sapient | Confidential Test Details
  • 15. 15 © Copyright Publicis.Sapient | Confidential Heat Map: Test Coverage
  • 16. 05 Problem Statements and Solution
  • 17. 17 © Copyright Publicis.Sapient | Confidential 1. Every validation we are doing here(on responsive websites), is screen size dependent. Users will get different results, as they have different screen sizes. 2. To run this automation on individual level , every user have to install lot of softwares and do the settings for the same. 3. In future if there’s any small change or further component development, again user have to take the package from SVN or any other mode, which is a painful process. Problems with Local Approach
  • 18. 18 © Copyright Publicis.Sapient | Confidential One Click Local (Component Wise Execution) MVC Structure (Code Structuring) Galen Framework (Creative and Reporting) Selenium Webdriver (Base) Server Approach (Automation Web App) Approach Transformation
  • 20. 20 © Copyright Publicis.Sapient | Confidential • One Click / Local Approach: We have a defined package of batch files and controllers, which user have to take it from SVN to local and then user can run it after installing all the required softwares. Scripts will run on user’s machine. How to run: User has to trigger the batch file.(Double Click on batch file) Whole Package and Reports will be stored in User’s machine. • Automation Web App/ Server Approach: It is an intuitive web app, which you can run on your desktop, tablet or mobile to run the scripts. Scripts will run on server machine. It will trigger the code based on your inputs. How to run: User has to give input to a form. Nothing will be stored in User’s machine.
  • 21. 06 Summarizing advantages of Server approach
  • 22. 22 © Copyright Publicis.Sapient | Confidential Sr. No. One Click/Local Approach Web App/Server Approach 1 User has to take the whole package from SVN to Local No Local Setup Needed. 2 User need to click on batch file from the package User is given a login screen and a UI form for execution 3 Prerequisites: Installations and settings needed. Softwares like Java, galen, node.js, adb, appium are to be installed and setting should be done for the same No Prerquisites. 4 Component wise Yes, Component wise 5 Remotely Execution is not possible. User can also run scripts from user’s mobile phone. 6 URL is to be added in init fileif new URL is to be added or modified Form driven. 7 Changes should be done in browser.js in test folder, if user want to change the browser. Form driven.
  • 23. 23 © Copyright Publicis.Sapient | Confidential Sr. No. One Click/Local Approach Web App/Server Approach 8 Changes should be done in environment.js in test folder, if user want to change the environment. Form driven. 9 Changes should be done in password.js in test folder, if user want to change the environment password. Form driven. 10 User has to check to know if reports are generated. User will be notified by push notification on the browser 11 Appium has to be triggered manually Form driven. With a AJAX call. 12 Real device should be connected to users machine. Real device should be connected to sever machine. 13 Package Size is of 2.43 GB. Package Size is of 48 MB. Because we are reusing the most of code and we are generating it on runtime. 14 New project compatibility is not that easy. It is comparatively easy.
  • 24. 24 © Copyright Publicis.Sapient | Confidential Pros: 1. No Prerequisites, No need to install anything in users machine. 2. No KT’s required because of it’s User Experience, It very easy to change breakpoint, environment or its password, browser or URLs (different domains) . 3. Reusable code. Package size is 70% decreased. 4. Easy maintenance. 5. Easy access to your own reports. Cons: 1. User can’t see the execution on the browser. But from server it can be seen. Server Approach: Pros and Cons
  • 26. 26 © Copyright Publicis.Sapient | Confidential • Report Generation •Review from component owners •Taking care of CR’s •Taking care of new variations •Creation of Dump on test pages •Creation of modal, gspec , and controller •Add the whole component to WEB APP •From Site Dev & QA (Owners) •Decide the validations using Pareto principle. •Making of Test pages, with all the variations of that particular component Component KT Development Report Analyses & Review Maintenance Process:
  • 28. 28 © Copyright Publicis.Sapient | Confidential • Switching to Amazon Device farm for small breakpoints. • Adding an admin panel so we can add scripts form the App (Independent of coding knowledge). Future Plans
  • 29. 29 © Copyright Publicis.Sapient | Confidential Q&A