Software Testing for SEO

Michael King
Michael KingManaging Director at iPullRank
@iPullRank
iPullRank
Software Testing for SEO
http://www.slideshare.net/ipullrank
Has this ever happened to
you?
IPULLRANK.COM @ IPULLRANKhttps://twitter.com/iPullRank/status/1045435603851063296
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
What is Automated
Testing?
So first, let’s talk just a little
bit about modern web
development and how it
works.
IPULLRANK.COM @ IPULLRANK
Model-View-Controller Design Pattern
A lot of modern software frameworks follow this design pattern that allows for a separation of concerns between data, logic and
frontend.
IPULLRANK.COM @ IPULLRANK
React + Laravel Example
In this example the PHP framework Laravel manages the Model and the Controller and the JavaScript framework React acts as
the View.
IPULLRANK.COM @ IPULLRANK
A URL is Converted
into a Route
URLs point to controllers
which then return the right
views featuring data from
the right models.
This is why segmented
crawls are important to
developers being able to
implement
recommendations.
IPULLRANK.COM @ IPULLRANK
Waterfall Rarely Makes
Sense Anymore
It’s unlikely that the websites
you work on will follow a
waterfall methodology.
Everything is agile now.
IPULLRANK.COM @ IPULLRANK
Most Dev Teams
Follow Agile
Methodology
Small pieces of functionality
are tackled in short time
frames or “sprints.”
IPULLRANK.COM @ IPULLRANK
Continuous Integration
Often engineering teams are following a Continuous Integration model where teams and individuals are
autonomously pushing their code as they complete it.
IPULLRANK.COM @ IPULLRANK
Continuous Integration means lots of people can break
things
IPULLRANK.COM @ IPULLRANK
Deployment Pipelines feature Automated Tests
Deployment pipelines allow for safeguards to be put in place to ensure that everyone is following the same process to get things
deployed.
IPULLRANK.COM @ IPULLRANK
Tests Can Make the Build Fail
Certain tests are deemed as critical to the infrastructure of the website and will cause the deployment process to fail and the
developer has to go back and fix it before they can continue with their work.
IPULLRANK.COM @ IPULLRANK
IPULLRANK.COM @ IPULLRANK
Automated Testing
There are three flavors of testing that are most relevant to us as SEOs: Unit Tests, Integration Tests and GUI Tests.
IPULLRANK.COM @ IPULLRANK
Unit Testing
With Unit tests you are
testing an individual function
or procedure to ensure that
that it works.
These are generally small
and fast. Codebases can
have many of these.
Unit tests can be used to determine the presence of tags and attributes in structure of code to be served to the
client, but not the rendered code.
IPULLRANK.COM @ IPULLRANK
Integration Testing
With integration testing you’re
testing how your logic comes
together to build the bigger
system. It can involve external
data such as APIs and
databases or how the various
pieces of the systems work
together.
This is significantly slower than
unit testing, but depends on
how much of the system needs
to be rendered in order to
complete the test.
Integration tests can be used to determine tags, features and content of completed HTML source being
served to the client. However, there can be overlap with what can be viewed in an UI test.
IPULLRANK.COM @ IPULLRANK
UI Testing
UI Testing is the testing of
the frontend interface of
your website. This is largely
used for ensuring front end
components work as
intended.
This is the slowest version of
testing because it requires
the page to be fully
rendered.
UI tests can be used to determine tags, features and content of the rendered DOM being served to the client.
IPULLRANK.COM @ IPULLRANK
This is What Headless Browsers are Actually For
In SEO we primarily use headless browsers for scraping JavaScript-rendered content, but they are actually intended for
automated tests.
IPULLRANK.COM @ IPULLRANK
Read Why the Chrome DevTools Team Made Puppeteer
https://github.com/GoogleChrome/puppeteer
IPULLRANK.COM @ IPULLRANK
Test Driven Development
Some moderndevelopersfollow thismethodologywhereintheywritetheirtestsfirstandthenwrite theircode until the tests pass.Unit
testsare primarilyusedforthis,butanytype of test could be used.Note:UITestswill dramatically slow downdeployment.
How Does This Apply to
SEO?
IPULLRANK.COM @ IPULLRANK
Last Year I Talked about Using Task Runners
https://searchengineland.com/get-developers-implement-seo-recommendations-280318
IPULLRANK.COM @ IPULLRANK
I explained the Anderson-Alderson Scale
This is a scale of which the developers you interface with are somewhere between an underachieving known-it-all and
overachieving do-it-all.
IPULLRANK.COM @ IPULLRANK
@BritneyMuller brings
upp a great point
My goal with that post and
talk is to introduce you to
another way to integrate
developers and ensure we’re
all moving towards working
better together.
Let’s go back through those
horror stories.
IPULLRANK.COM @ IPULLRANK
A Test Can Catch This
Unit Test Failure Condition
– Presence of meta noindex
tag on functions that impact
the <head>.
Integration Test Failure
Condition – Presence of
meta noindex on routes that
should not have them.
This is a critical issue so this test should fail the build.
IPULLRANK.COM @ IPULLRANK
Not Sure I’d Test for
this One
Integration Test Failure
Condition – H1 tag is the same
in the HTML on every accessed
page in our test dataset.
UI Test Failure Condition -
H1 tag is the same in the
rendered DOM on every
accessed page in our test
dataset.
I would not recommend having this test fail the build though.
IPULLRANK.COM @ IPULLRANK
Robots.txt Test
Unit Test Failure Condition
– Presence of “User-agent: *
Disallow: /” on prod in a
function for the robots.txt
route.
Integration Test Failure
Condition – Presence of
“User-agent: * Disallow: /” on
prod in robots.txt URL.
This is a critical issue so this test should fail the build.
IPULLRANK.COM @ IPULLRANK
SSR Test
Integrated Test/UI Test
Failure Condition -
Key body content is not
available in the HTML version.
This one requires the rendered
DOM as a comparison so it
technically could be a UI and/or
Integrated Test.
This should definitely fail the build.
IPULLRANK.COM @ IPULLRANK
Rel-canonical
UI Test Failure Condition –
URLs that should have a self-
referencing canonical do not in
the DOM.
Integration Test Failure
Condition – URLs that should
have a self-referencing
canonical do not in the HTML.
Unit Test Failure Condition -
Route does not set canonical
tag on the server side.
This is a critical issue so this test should fail the build.
IPULLRANK.COM @ IPULLRANK
SSR Test
Integrated Test/UI Test
Failure Condition -
Key body content is not
available in the HTML version.
This one requires the rendered
DOM as a comparison so it
technically could be a UI and/or
Integrated Test.
This should definitely fail the build.
IPULLRANK.COM @ IPULLRANK
Invalid Tag Tests
UI Test Failure Condition –
Rendered DOM features tags in
the <head> sub-tree that are
invalid.
Integration Test Failure
Condition – HTML features
tags in the <head> that are
invalid or HTML does not pass
W3C validation.
Unit Test Failure Condition -
Function that returns the
<head> features tags that
don’t fit a list of valid <head>
tags.
This is a critical issue so this test should fail the build.
IPULLRANK.COM @ IPULLRANK
But Testing is Not a
Magic Bullet
Sure, we can develop tests
for to look for the presence
of structured markup and to
enforce metadata
specifications, but when
things go this wrong, you
have to put your team
member, project
management, consultant,
management hat on and get
to the bottom of what went
wrong.
IPULLRANK.COM @ IPULLRANKIn my experience, it’s usually developers writing their own tests, but I’ve heard of QA Engineers also writing tests after the fact to
help ensure quality moving forward.
Who Usually Does this Work?
Developer QA Engineer
Doing an SEO Audit is
basically doing similar work
to that of a QA Engineer.
IPULLRANK.COM @ IPULLRANK
Crawling HTML is
Somewhat like
Integration Testing
You’re looking at the results
of what the software spits
out when all the systems
come together.
IPULLRANK.COM @ IPULLRANK
Crawling JavaScript is
more like UI Testing
You’re looking at the results
when the user interface is
rendered.
IPULLRANK.COM @ IPULLRANK
…And you should be comparing the differences
John Hogg from ClickConsult shared his diff comparison Chrome extension that computes the DIFF
between HTML and rendered DOM. When it’s released I encourage you to check it out.
IPULLRANK.COM @ IPULLRANK
Your Role is To Help Plan the Tests
You’ll want to work with a QA Engineer, a Product Manager or a Developer to develop test cases that can then be built into
IPULLRANK.COM @ IPULLRANK
Here are Few Examples
These examples of tests should be enough to get you started on defining your own potential tests for SEO.
Test Case ID Test
Scenario
Test Type Test
Steps
Test Data Expected
Results
Actual
Results
Pass/Fail
SEO01
Presence of Meta
Descriptions
Unit Test Check for presence
of meta
description tag in
HTML
Page template
code
All URLs should
have meta
description
Product Detail
Page is missing
meta description
PASS
SEO02
Viable Internal
Links
Functional Test 1. Render pages
2. Open all
internal links
3. Review
response codes
Crawled URL data All links return 200
response code
Many links to
redirects and 404s
FAIL
SEO03
Average Page
Speed Less than 2
Seconds
Functional/Integrat
ion Test
1. Render pages
2. Capture page
speed
3. Determine
average page
speed per page
type
Render all page
types from URL list
All page types
should return an
average of 2
seconds load time
Homepage takes 5
seconds to load
FAIL
Tools
Some tools you canuse to get your automated testing
for SEO off the ground
IPULLRANK.COM @ IPULLRANK
Meet Jenkins
If your developers are doing Continuous Integration or Continuous Delivery, it’s likely that they are using Jenkins.
https://jenkins.io/
IPULLRANK.COM @ IPULLRANK
Get Failure Alerts in Slack
https://plugins.jenkins.io/slack
IPULLRANK.COM @ IPULLRANK
Or in Jenkins’ logs
You could also just regularly the logs that Jenkins provides.
IPULLRANK.COM @ IPULLRANK
Or Pipe it into MySQL
Sending the Jenkins logs
into MySQL gives you the
opportunity to monitor and
visualize failures and
successes of builds with
respect to SEO in a variety of
ways such as through
Google Data Studio.
https://chburmeister.github.io/2017/01/27/jenkins-logging-directly-to-mysql-database.html
IPULLRANK.COM @ IPULLRANKYou’ll want a headless crawler and a text-based crawler to spin up pages and run tests on and a fixed list of pages that represent
all of the public-facing routes.
You’ll Also Need a Crawler
https://github.com/yujiosaka/
headless-chrome-crawler
https://github.com/antivanov/
js-crawler
IPULLRANK.COM @ IPULLRANK
Consider Making them Serverless
Building your crawler with AWS Lambda, Azure Functions or Google Clouds Functions may be a great way to enjoy scale without
having to manage additional servers.
Shoutout to @vvgomes
IPULLRANK.COM @ IPULLRANK
Vini’s Blog Post on Serverless Architectures
http://vvgomes.com/edas-and-serverless/
IPULLRANK.COM @ IPULLRANK
Tips On Testing
Make only mission critical SEO tests potentially fail the build.
Most SEO issues will be spotted in your integration tests.
Include your SEO tests in every build.
Keep your testing suites separate.
Do all crawling in parallel.
Things to Play With
BecauseI never like to leaveyou without having
something you can do
IPULLRANK.COM @ IPULLRANK
Check out these Video Tutorials on Jenkins
Play with Jenkins: https://www.youtube.com/playlist?list=PLzvRQMJ9HDiSaisKr7OnM4Fl7JXCDDcmt
IPULLRANK.COM @ IPULLRANK
Kantu Browser Automation Tool
See how Browser Automation tests work with a chrome extension: https://chrome.google.com/webstore/detail/kantu-
browser-automation/gcbalfbdmfieckjlnblleoemohcganoc?hl=en
IPULLRANK.COM @ IPULLRANK
Codeception
If you dabble in PHP or have a WP site you want to play around with, check out Codeception.
https://codeception.com
Wrapping Up
Who am I and where am I from?
IPULLRANK.COM @ IPULLRANK
I’M #ZORASDAD
First and foremost.
IPULLRANK.COM @ IPULLRANK
MY NAME IS MIKE
KING
Razorfish, Publicis Modem alum
Full Stack Developer
Full Stack Marketer
Moz Associate
Software Testing for SEO
IPULLRANK.COM @ IPULLRANK
We Do These Things
Machine
Learning
SEOContent
Strategy
Paid Media Measurement
& Optimization
Marketing
Automation
IPULLRANK.COM @ IPULLRANK
Machine Learning for Marketers Guide
skratchcoin.com
http://ipullrank.com/machine-learning-guide/
IPULLRANK.COM @ IPULLRANK
skratchcoin.com
Software Testing for SEO
Software Testing for SEO
THANK YOU /
Q&A
MICHAEL KING
FOUNDER &
MANAGING DIRECTOR
IPULLRANK
mike@ipullrank.com
DOWNLOAD THESE SLIDES: http://bit.ly/testeo
1 of 74

Recommended

SEO low hanging Fruit - Identifying High Impact Opportunities Fast #SEOforUkr... by
SEO low hanging Fruit - Identifying High Impact Opportunities Fast #SEOforUkr...SEO low hanging Fruit - Identifying High Impact Opportunities Fast #SEOforUkr...
SEO low hanging Fruit - Identifying High Impact Opportunities Fast #SEOforUkr...Aleyda Solís
6.5K views77 slides
BrightonSEO - Master Crawl Budget Optimization for Enterprise Websites by
BrightonSEO - Master Crawl Budget Optimization for Enterprise WebsitesBrightonSEO - Master Crawl Budget Optimization for Enterprise Websites
BrightonSEO - Master Crawl Budget Optimization for Enterprise WebsitesManick Bhan
2.2K views52 slides
Technical SEO on the Jamstack by Zahid Mahmood @ BrightonSEO 2022 by
Technical SEO on the Jamstack by Zahid Mahmood @ BrightonSEO 2022Technical SEO on the Jamstack by Zahid Mahmood @ BrightonSEO 2022
Technical SEO on the Jamstack by Zahid Mahmood @ BrightonSEO 2022Zahid106217
1.7K views49 slides
Goodbye SEO fck ups! Learn to set an SEO Quality Assurance Framework by
Goodbye SEO fck ups! Learn to set an SEO Quality Assurance FrameworkGoodbye SEO fck ups! Learn to set an SEO Quality Assurance Framework
Goodbye SEO fck ups! Learn to set an SEO Quality Assurance FrameworkAleyda Solís
12.6K views61 slides
Why Scaling (Great) Content Is So Bloody Hard by
Why Scaling (Great) Content Is So Bloody HardWhy Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody HardJoshuaHardwickAhrefs
2.8K views41 slides
Brighton SEO April 2022 - Automate the technical SEO stuff by
Brighton SEO April 2022 - Automate the technical SEO stuffBrighton SEO April 2022 - Automate the technical SEO stuff
Brighton SEO April 2022 - Automate the technical SEO stuffMichael Van Den Reym
6.3K views81 slides

More Related Content

What's hot

How to Automatically Subcategorise Your Website Automatically With Python by
How to Automatically Subcategorise Your Website Automatically With PythonHow to Automatically Subcategorise Your Website Automatically With Python
How to Automatically Subcategorise Your Website Automatically With Pythonsearchsolved
2.4K views113 slides
Vanda Pokecz - brightonSEO presentation.pptx by
Vanda Pokecz  - brightonSEO presentation.pptxVanda Pokecz  - brightonSEO presentation.pptx
Vanda Pokecz - brightonSEO presentation.pptxVanda Pokecz
184 views70 slides
Influencing Discovery, Indexing Strategies For Complex Websites by
Influencing Discovery, Indexing Strategies For Complex WebsitesInfluencing Discovery, Indexing Strategies For Complex Websites
Influencing Discovery, Indexing Strategies For Complex WebsitesDan Taylor
193 views24 slides
How To EAT Links.pptx by
How To EAT Links.pptxHow To EAT Links.pptx
How To EAT Links.pptxDixon Jones
1.6K views27 slides
TECHNICAL SEO QA - SHINING A LIGHT ON INVISIBLE WORK (BrightonSEO April 2022) by
TECHNICAL SEO QA - SHINING A LIGHT ON INVISIBLE WORK (BrightonSEO April 2022)TECHNICAL SEO QA - SHINING A LIGHT ON INVISIBLE WORK (BrightonSEO April 2022)
TECHNICAL SEO QA - SHINING A LIGHT ON INVISIBLE WORK (BrightonSEO April 2022)Gianna Brachetti-Truskawa 🐙
828 views47 slides
How to leverage indexation tracking to monitor issues and improve performance by
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performanceSimon Lesser
682 views111 slides

What's hot(20)

How to Automatically Subcategorise Your Website Automatically With Python by searchsolved
How to Automatically Subcategorise Your Website Automatically With PythonHow to Automatically Subcategorise Your Website Automatically With Python
How to Automatically Subcategorise Your Website Automatically With Python
searchsolved2.4K views
Vanda Pokecz - brightonSEO presentation.pptx by Vanda Pokecz
Vanda Pokecz  - brightonSEO presentation.pptxVanda Pokecz  - brightonSEO presentation.pptx
Vanda Pokecz - brightonSEO presentation.pptx
Vanda Pokecz184 views
Influencing Discovery, Indexing Strategies For Complex Websites by Dan Taylor
Influencing Discovery, Indexing Strategies For Complex WebsitesInfluencing Discovery, Indexing Strategies For Complex Websites
Influencing Discovery, Indexing Strategies For Complex Websites
Dan Taylor193 views
How To EAT Links.pptx by Dixon Jones
How To EAT Links.pptxHow To EAT Links.pptx
How To EAT Links.pptx
Dixon Jones1.6K views
How to leverage indexation tracking to monitor issues and improve performance by Simon Lesser
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performance
Simon Lesser682 views
BrightonSEO - Apr 2022 - No excuses for doing UX by Oban International
BrightonSEO - Apr 2022 - No excuses for doing UXBrightonSEO - Apr 2022 - No excuses for doing UX
BrightonSEO - Apr 2022 - No excuses for doing UX
Oban International2.2K views
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S... by LazarinaStoyanova
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
LazarinaStoyanova6.1K views
Why your tech optimisations are still sat in the backlog by Vicky481083
Why your tech optimisations are still sat in the backlogWhy your tech optimisations are still sat in the backlog
Why your tech optimisations are still sat in the backlog
Vicky481083294 views
Brighton SEO: SEO + PPC Working Together by Navah Hopkins
Brighton SEO: SEO + PPC Working TogetherBrighton SEO: SEO + PPC Working Together
Brighton SEO: SEO + PPC Working Together
Navah Hopkins174 views
SEO Tool Overload😱... Google Data Studio to the rescue by Nils De Moor
SEO Tool Overload😱... Google Data Studio to the rescueSEO Tool Overload😱... Google Data Studio to the rescue
SEO Tool Overload😱... Google Data Studio to the rescue
Nils De Moor1.5K views
How to improve Core Web Vitals on a WordPress website by Indigo Tree Digital
How to improve Core Web Vitals on a WordPress websiteHow to improve Core Web Vitals on a WordPress website
How to improve Core Web Vitals on a WordPress website
Indigo Tree Digital1.8K views
Get Your Ticket Effective zero-volume keyword research and why it’s important by MarkWilliamsCook1
 Get Your Ticket Effective zero-volume keyword research and why it’s important Get Your Ticket Effective zero-volume keyword research and why it’s important
Get Your Ticket Effective zero-volume keyword research and why it’s important
MarkWilliamsCook11.7K views
[BrightonSEO Oct 2022] Remarketing SEO - Himani Kankaria - Missive Digital.pdf by Himani Kankaria
[BrightonSEO Oct 2022] Remarketing SEO - Himani Kankaria - Missive Digital.pdf[BrightonSEO Oct 2022] Remarketing SEO - Himani Kankaria - Missive Digital.pdf
[BrightonSEO Oct 2022] Remarketing SEO - Himani Kankaria - Missive Digital.pdf
Himani Kankaria1.3K views
SEO Audits that Maximize Growth #SMXL19 by Aleyda Solís
SEO Audits that Maximize Growth #SMXL19SEO Audits that Maximize Growth #SMXL19
SEO Audits that Maximize Growth #SMXL19
Aleyda Solís9.5K views
Beth Barnham Schema Auditing BrightonSEO Slides.pptx by BethBarnham1
Beth Barnham Schema Auditing BrightonSEO Slides.pptxBeth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptx
BethBarnham11.6K views
Brighton SEO April 2023 - Basic Automation Hacks For SEO by Tom Pool
Brighton SEO April 2023 - Basic Automation Hacks For SEOBrighton SEO April 2023 - Basic Automation Hacks For SEO
Brighton SEO April 2023 - Basic Automation Hacks For SEO
Tom Pool1.6K views
Developing Technical SEO Skills - Brighton SEO Sept 2021 by Mike Osolinski
Developing Technical SEO Skills - Brighton SEO Sept 2021Developing Technical SEO Skills - Brighton SEO Sept 2021
Developing Technical SEO Skills - Brighton SEO Sept 2021
Mike Osolinski11.9K views
The Value of Featured Snippets (BrightonSEO 2023).pdf by Niki Mosier
The Value of Featured Snippets (BrightonSEO 2023).pdfThe Value of Featured Snippets (BrightonSEO 2023).pdf
The Value of Featured Snippets (BrightonSEO 2023).pdf
Niki Mosier744 views

Similar to Software Testing for SEO

iPullRank Webinar - Automated Testing For SEO With Hamlet Batista by
iPullRank Webinar - Automated Testing For SEO With Hamlet BatistaiPullRank Webinar - Automated Testing For SEO With Hamlet Batista
iPullRank Webinar - Automated Testing For SEO With Hamlet BatistaMichael King
633 views83 slides
TechSEO Boost 2018: The Statelessness of Technical SEO by
TechSEO Boost 2018: The Statelessness of Technical SEOTechSEO Boost 2018: The Statelessness of Technical SEO
TechSEO Boost 2018: The Statelessness of Technical SEOCatalyst
1.2K views110 slides
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap... by
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Applitools
1.7K views114 slides
The Technical SEO Renaissance by
The Technical SEO RenaissanceThe Technical SEO Renaissance
The Technical SEO RenaissanceMichael King
529.3K views119 slides
How to scale your Test Automation by
How to scale your Test AutomationHow to scale your Test Automation
How to scale your Test AutomationKlaus Salchner
799 views22 slides
The Technical Seo Renaissance - Mike King by
 The Technical Seo Renaissance - Mike King   The Technical Seo Renaissance - Mike King
The Technical Seo Renaissance - Mike King Glen Dimaandal
1.4K views144 slides

Similar to Software Testing for SEO(20)

iPullRank Webinar - Automated Testing For SEO With Hamlet Batista by Michael King
iPullRank Webinar - Automated Testing For SEO With Hamlet BatistaiPullRank Webinar - Automated Testing For SEO With Hamlet Batista
iPullRank Webinar - Automated Testing For SEO With Hamlet Batista
Michael King633 views
TechSEO Boost 2018: The Statelessness of Technical SEO by Catalyst
TechSEO Boost 2018: The Statelessness of Technical SEOTechSEO Boost 2018: The Statelessness of Technical SEO
TechSEO Boost 2018: The Statelessness of Technical SEO
Catalyst1.2K views
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Applitools1.7K views
The Technical SEO Renaissance by Michael King
The Technical SEO RenaissanceThe Technical SEO Renaissance
The Technical SEO Renaissance
Michael King529.3K views
How to scale your Test Automation by Klaus Salchner
How to scale your Test AutomationHow to scale your Test Automation
How to scale your Test Automation
Klaus Salchner799 views
The Technical Seo Renaissance - Mike King by Glen Dimaandal
 The Technical Seo Renaissance - Mike King   The Technical Seo Renaissance - Mike King
The Technical Seo Renaissance - Mike King
Glen Dimaandal1.4K views
Core Web Vitals and Your Search Rankings by Michael King
Core Web Vitals and Your Search Rankings Core Web Vitals and Your Search Rankings
Core Web Vitals and Your Search Rankings
Michael King377 views
SearchLove Boston 2016 | Mike King | Developer Thinking for SEOs by Distilled
SearchLove Boston 2016 | Mike King | Developer Thinking for SEOsSearchLove Boston 2016 | Mike King | Developer Thinking for SEOs
SearchLove Boston 2016 | Mike King | Developer Thinking for SEOs
Distilled4.9K views
Software Development Standard Operating Procedure by rupeshchanchal
Software Development Standard Operating Procedure Software Development Standard Operating Procedure
Software Development Standard Operating Procedure
rupeshchanchal2.4K views
Trouble with Performance Debugging? Not Anymore with Choreo, the AI-Assisted ... by WSO2
Trouble with Performance Debugging? Not Anymore with Choreo, the AI-Assisted ...Trouble with Performance Debugging? Not Anymore with Choreo, the AI-Assisted ...
Trouble with Performance Debugging? Not Anymore with Choreo, the AI-Assisted ...
WSO297 views
Appium Interview Questions and Answers | Edureka by Edureka!
Appium Interview Questions and Answers | EdurekaAppium Interview Questions and Answers | Edureka
Appium Interview Questions and Answers | Edureka
Edureka!575 views
A journey to_be_a_software_craftsman by Jaehoon Oh
A journey to_be_a_software_craftsmanA journey to_be_a_software_craftsman
A journey to_be_a_software_craftsman
Jaehoon Oh1.6K views
Refactoring to Testable Code by Richard Taylor
Refactoring to Testable CodeRefactoring to Testable Code
Refactoring to Testable Code
Richard Taylor2.1K views
Microsoft DevOps Solution - DevOps by Chetan Gordhan
Microsoft DevOps Solution - DevOps  Microsoft DevOps Solution - DevOps
Microsoft DevOps Solution - DevOps
Chetan Gordhan709 views
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond by mguillem
WebTest - Efficient Functional Web Testing with HtmlUnit and BeyondWebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
mguillem5.1K views

More from Michael King

Using Tags & Taxonomies to super charge your eCommerce SEO by
Using Tags & Taxonomies to super charge your eCommerce SEOUsing Tags & Taxonomies to super charge your eCommerce SEO
Using Tags & Taxonomies to super charge your eCommerce SEOMichael King
390 views39 slides
Building the content machine by
Building the content machine Building the content machine
Building the content machine Michael King
328 views102 slides
iPullRank Webinar - Forecasting and Calculating ROI for SEO by
iPullRank Webinar - Forecasting and Calculating ROI for SEOiPullRank Webinar - Forecasting and Calculating ROI for SEO
iPullRank Webinar - Forecasting and Calculating ROI for SEOMichael King
446 views63 slides
iPullRank Webinar - Navigating Black Friday in COVID-19 by
iPullRank Webinar - Navigating Black Friday in COVID-19iPullRank Webinar - Navigating Black Friday in COVID-19
iPullRank Webinar - Navigating Black Friday in COVID-19Michael King
445 views67 slides
iPullRank Webinar - Planning SEO for 2021 by
iPullRank Webinar - Planning SEO for 2021 iPullRank Webinar - Planning SEO for 2021
iPullRank Webinar - Planning SEO for 2021 Michael King
681 views59 slides
The Essentials to Modern Enterprise SEO by
The Essentials to Modern Enterprise SEOThe Essentials to Modern Enterprise SEO
The Essentials to Modern Enterprise SEOMichael King
842 views90 slides

More from Michael King(20)

Using Tags & Taxonomies to super charge your eCommerce SEO by Michael King
Using Tags & Taxonomies to super charge your eCommerce SEOUsing Tags & Taxonomies to super charge your eCommerce SEO
Using Tags & Taxonomies to super charge your eCommerce SEO
Michael King390 views
Building the content machine by Michael King
Building the content machine Building the content machine
Building the content machine
Michael King328 views
iPullRank Webinar - Forecasting and Calculating ROI for SEO by Michael King
iPullRank Webinar - Forecasting and Calculating ROI for SEOiPullRank Webinar - Forecasting and Calculating ROI for SEO
iPullRank Webinar - Forecasting and Calculating ROI for SEO
Michael King446 views
iPullRank Webinar - Navigating Black Friday in COVID-19 by Michael King
iPullRank Webinar - Navigating Black Friday in COVID-19iPullRank Webinar - Navigating Black Friday in COVID-19
iPullRank Webinar - Navigating Black Friday in COVID-19
Michael King445 views
iPullRank Webinar - Planning SEO for 2021 by Michael King
iPullRank Webinar - Planning SEO for 2021 iPullRank Webinar - Planning SEO for 2021
iPullRank Webinar - Planning SEO for 2021
Michael King681 views
The Essentials to Modern Enterprise SEO by Michael King
The Essentials to Modern Enterprise SEOThe Essentials to Modern Enterprise SEO
The Essentials to Modern Enterprise SEO
Michael King842 views
Marketing in the Age of COVID-19 by Michael King
Marketing in the Age of COVID-19Marketing in the Age of COVID-19
Marketing in the Age of COVID-19
Michael King551 views
How to Build an Empathetic Marketing Strategy During the Times of COVID19 by Michael King
How to Build an Empathetic Marketing Strategy During the Times of COVID19How to Build an Empathetic Marketing Strategy During the Times of COVID19
How to Build an Empathetic Marketing Strategy During the Times of COVID19
Michael King351 views
Technical Content Optimization by Michael King
Technical Content OptimizationTechnical Content Optimization
Technical Content Optimization
Michael King14.3K views
You Don't Know SEO by Michael King
You Don't Know SEOYou Don't Know SEO
You Don't Know SEO
Michael King120.9K views
Modern SEO Players Guide by Michael King
Modern SEO Players GuideModern SEO Players Guide
Modern SEO Players Guide
Michael King27.9K views
Building your outreach machine by Michael King
Building your outreach machineBuilding your outreach machine
Building your outreach machine
Michael King8.3K views
The Pragmatic Future of Search by Michael King
The Pragmatic Future of SearchThe Pragmatic Future of Search
The Pragmatic Future of Search
Michael King5.6K views
SEO: Same as it Ever Was by Michael King
SEO: Same as it Ever WasSEO: Same as it Ever Was
SEO: Same as it Ever Was
Michael King4K views
Major Keys to Video Content Strategy by Michael King
Major Keys to Video Content StrategyMajor Keys to Video Content Strategy
Major Keys to Video Content Strategy
Michael King3.7K views
How to generate those leads all day everyday by Michael King
How to generate those leads all day everydayHow to generate those leads all day everyday
How to generate those leads all day everyday
Michael King74.4K views
Technical Marketing is the Price of Admission by Michael King
Technical Marketing is the Price of AdmissionTechnical Marketing is the Price of Admission
Technical Marketing is the Price of Admission
Michael King76K views
Actionable Data-Driven Personas for CRO by Michael King
Actionable Data-Driven Personas for CROActionable Data-Driven Personas for CRO
Actionable Data-Driven Personas for CRO
Michael King10.2K views
Perfect Starts: How to Get the Right Traffic with a Content Audit by Michael King
Perfect Starts: How to Get the Right Traffic with a Content AuditPerfect Starts: How to Get the Right Traffic with a Content Audit
Perfect Starts: How to Get the Right Traffic with a Content Audit
Michael King82.3K views
Storytelling By Numbers by Michael King
Storytelling By NumbersStorytelling By Numbers
Storytelling By Numbers
Michael King25.4K views

Recently uploaded

Startup Fleuron presentation.pptx by
Startup Fleuron presentation.pptxStartup Fleuron presentation.pptx
Startup Fleuron presentation.pptxJView Narratives
27 views30 slides
Deltaplan - SEO Search by
Deltaplan - SEO SearchDeltaplan - SEO Search
Deltaplan - SEO SearchRoy Huiskes
49 views57 slides
ExperientialEtc Cred Deck.pdf by
ExperientialEtc Cred Deck.pdfExperientialEtc Cred Deck.pdf
ExperientialEtc Cred Deck.pdfjayesh301619
5 views30 slides
DM.pdf by
DM.pdfDM.pdf
DM.pdfvrp2861
5 views2 slides
16.2 Distribution through Intermediaries.pdf by
16.2 Distribution through Intermediaries.pdf16.2 Distribution through Intermediaries.pdf
16.2 Distribution through Intermediaries.pdfRitikSharma251462
6 views76 slides
The evolution of internet.pptx by
The evolution of internet.pptxThe evolution of internet.pptx
The evolution of internet.pptxssuser520a351
6 views19 slides

Recently uploaded(20)

Deltaplan - SEO Search by Roy Huiskes
Deltaplan - SEO SearchDeltaplan - SEO Search
Deltaplan - SEO Search
Roy Huiskes49 views
ExperientialEtc Cred Deck.pdf by jayesh301619
ExperientialEtc Cred Deck.pdfExperientialEtc Cred Deck.pdf
ExperientialEtc Cred Deck.pdf
jayesh3016195 views
DM.pdf by vrp2861
DM.pdfDM.pdf
DM.pdf
vrp28615 views
The evolution of internet.pptx by ssuser520a351
The evolution of internet.pptxThe evolution of internet.pptx
The evolution of internet.pptx
ssuser520a3516 views
How to create and present logo. pdf by Gaurav Singh
How to create and present logo. pdfHow to create and present logo. pdf
How to create and present logo. pdf
Gaurav Singh14 views
Performance Max Pros and Cons by akisselev
Performance Max Pros and ConsPerformance Max Pros and Cons
Performance Max Pros and Cons
akisselev5 views
Weekly Media Update_28_11_2023.pdf by BalmerLawrie
Weekly Media Update_28_11_2023.pdfWeekly Media Update_28_11_2023.pdf
Weekly Media Update_28_11_2023.pdf
BalmerLawrie10 views
QMS SOP [QUALITY MANAGEMENT SYSTEM - STANDARD OPERATING PROCEDURE] by Nabeela Moosakutty
QMS SOP [QUALITY MANAGEMENT SYSTEM - STANDARD OPERATING PROCEDURE]QMS SOP [QUALITY MANAGEMENT SYSTEM - STANDARD OPERATING PROCEDURE]
QMS SOP [QUALITY MANAGEMENT SYSTEM - STANDARD OPERATING PROCEDURE]
7 Crucial aspects to maintaining authenticity in modern marketing: dispelling... by Reversed Out Creative
7 Crucial aspects to maintaining authenticity in modern marketing: dispelling...7 Crucial aspects to maintaining authenticity in modern marketing: dispelling...
7 Crucial aspects to maintaining authenticity in modern marketing: dispelling...

Software Testing for SEO

  • 1. @iPullRank iPullRank Software Testing for SEO http://www.slideshare.net/ipullrank
  • 2. Has this ever happened to you?
  • 13. So first, let’s talk just a little bit about modern web development and how it works.
  • 14. IPULLRANK.COM @ IPULLRANK Model-View-Controller Design Pattern A lot of modern software frameworks follow this design pattern that allows for a separation of concerns between data, logic and frontend.
  • 15. IPULLRANK.COM @ IPULLRANK React + Laravel Example In this example the PHP framework Laravel manages the Model and the Controller and the JavaScript framework React acts as the View.
  • 16. IPULLRANK.COM @ IPULLRANK A URL is Converted into a Route URLs point to controllers which then return the right views featuring data from the right models. This is why segmented crawls are important to developers being able to implement recommendations.
  • 17. IPULLRANK.COM @ IPULLRANK Waterfall Rarely Makes Sense Anymore It’s unlikely that the websites you work on will follow a waterfall methodology. Everything is agile now.
  • 18. IPULLRANK.COM @ IPULLRANK Most Dev Teams Follow Agile Methodology Small pieces of functionality are tackled in short time frames or “sprints.”
  • 19. IPULLRANK.COM @ IPULLRANK Continuous Integration Often engineering teams are following a Continuous Integration model where teams and individuals are autonomously pushing their code as they complete it.
  • 20. IPULLRANK.COM @ IPULLRANK Continuous Integration means lots of people can break things
  • 21. IPULLRANK.COM @ IPULLRANK Deployment Pipelines feature Automated Tests Deployment pipelines allow for safeguards to be put in place to ensure that everyone is following the same process to get things deployed.
  • 22. IPULLRANK.COM @ IPULLRANK Tests Can Make the Build Fail Certain tests are deemed as critical to the infrastructure of the website and will cause the deployment process to fail and the developer has to go back and fix it before they can continue with their work.
  • 24. IPULLRANK.COM @ IPULLRANK Automated Testing There are three flavors of testing that are most relevant to us as SEOs: Unit Tests, Integration Tests and GUI Tests.
  • 25. IPULLRANK.COM @ IPULLRANK Unit Testing With Unit tests you are testing an individual function or procedure to ensure that that it works. These are generally small and fast. Codebases can have many of these. Unit tests can be used to determine the presence of tags and attributes in structure of code to be served to the client, but not the rendered code.
  • 26. IPULLRANK.COM @ IPULLRANK Integration Testing With integration testing you’re testing how your logic comes together to build the bigger system. It can involve external data such as APIs and databases or how the various pieces of the systems work together. This is significantly slower than unit testing, but depends on how much of the system needs to be rendered in order to complete the test. Integration tests can be used to determine tags, features and content of completed HTML source being served to the client. However, there can be overlap with what can be viewed in an UI test.
  • 27. IPULLRANK.COM @ IPULLRANK UI Testing UI Testing is the testing of the frontend interface of your website. This is largely used for ensuring front end components work as intended. This is the slowest version of testing because it requires the page to be fully rendered. UI tests can be used to determine tags, features and content of the rendered DOM being served to the client.
  • 28. IPULLRANK.COM @ IPULLRANK This is What Headless Browsers are Actually For In SEO we primarily use headless browsers for scraping JavaScript-rendered content, but they are actually intended for automated tests.
  • 29. IPULLRANK.COM @ IPULLRANK Read Why the Chrome DevTools Team Made Puppeteer https://github.com/GoogleChrome/puppeteer
  • 30. IPULLRANK.COM @ IPULLRANK Test Driven Development Some moderndevelopersfollow thismethodologywhereintheywritetheirtestsfirstandthenwrite theircode until the tests pass.Unit testsare primarilyusedforthis,butanytype of test could be used.Note:UITestswill dramatically slow downdeployment.
  • 31. How Does This Apply to SEO?
  • 32. IPULLRANK.COM @ IPULLRANK Last Year I Talked about Using Task Runners https://searchengineland.com/get-developers-implement-seo-recommendations-280318
  • 33. IPULLRANK.COM @ IPULLRANK I explained the Anderson-Alderson Scale This is a scale of which the developers you interface with are somewhere between an underachieving known-it-all and overachieving do-it-all.
  • 34. IPULLRANK.COM @ IPULLRANK @BritneyMuller brings upp a great point My goal with that post and talk is to introduce you to another way to integrate developers and ensure we’re all moving towards working better together.
  • 35. Let’s go back through those horror stories.
  • 36. IPULLRANK.COM @ IPULLRANK A Test Can Catch This Unit Test Failure Condition – Presence of meta noindex tag on functions that impact the <head>. Integration Test Failure Condition – Presence of meta noindex on routes that should not have them. This is a critical issue so this test should fail the build.
  • 37. IPULLRANK.COM @ IPULLRANK Not Sure I’d Test for this One Integration Test Failure Condition – H1 tag is the same in the HTML on every accessed page in our test dataset. UI Test Failure Condition - H1 tag is the same in the rendered DOM on every accessed page in our test dataset. I would not recommend having this test fail the build though.
  • 38. IPULLRANK.COM @ IPULLRANK Robots.txt Test Unit Test Failure Condition – Presence of “User-agent: * Disallow: /” on prod in a function for the robots.txt route. Integration Test Failure Condition – Presence of “User-agent: * Disallow: /” on prod in robots.txt URL. This is a critical issue so this test should fail the build.
  • 39. IPULLRANK.COM @ IPULLRANK SSR Test Integrated Test/UI Test Failure Condition - Key body content is not available in the HTML version. This one requires the rendered DOM as a comparison so it technically could be a UI and/or Integrated Test. This should definitely fail the build.
  • 40. IPULLRANK.COM @ IPULLRANK Rel-canonical UI Test Failure Condition – URLs that should have a self- referencing canonical do not in the DOM. Integration Test Failure Condition – URLs that should have a self-referencing canonical do not in the HTML. Unit Test Failure Condition - Route does not set canonical tag on the server side. This is a critical issue so this test should fail the build.
  • 41. IPULLRANK.COM @ IPULLRANK SSR Test Integrated Test/UI Test Failure Condition - Key body content is not available in the HTML version. This one requires the rendered DOM as a comparison so it technically could be a UI and/or Integrated Test. This should definitely fail the build.
  • 42. IPULLRANK.COM @ IPULLRANK Invalid Tag Tests UI Test Failure Condition – Rendered DOM features tags in the <head> sub-tree that are invalid. Integration Test Failure Condition – HTML features tags in the <head> that are invalid or HTML does not pass W3C validation. Unit Test Failure Condition - Function that returns the <head> features tags that don’t fit a list of valid <head> tags. This is a critical issue so this test should fail the build.
  • 43. IPULLRANK.COM @ IPULLRANK But Testing is Not a Magic Bullet Sure, we can develop tests for to look for the presence of structured markup and to enforce metadata specifications, but when things go this wrong, you have to put your team member, project management, consultant, management hat on and get to the bottom of what went wrong.
  • 44. IPULLRANK.COM @ IPULLRANKIn my experience, it’s usually developers writing their own tests, but I’ve heard of QA Engineers also writing tests after the fact to help ensure quality moving forward. Who Usually Does this Work? Developer QA Engineer
  • 45. Doing an SEO Audit is basically doing similar work to that of a QA Engineer.
  • 46. IPULLRANK.COM @ IPULLRANK Crawling HTML is Somewhat like Integration Testing You’re looking at the results of what the software spits out when all the systems come together.
  • 47. IPULLRANK.COM @ IPULLRANK Crawling JavaScript is more like UI Testing You’re looking at the results when the user interface is rendered.
  • 48. IPULLRANK.COM @ IPULLRANK …And you should be comparing the differences John Hogg from ClickConsult shared his diff comparison Chrome extension that computes the DIFF between HTML and rendered DOM. When it’s released I encourage you to check it out.
  • 49. IPULLRANK.COM @ IPULLRANK Your Role is To Help Plan the Tests You’ll want to work with a QA Engineer, a Product Manager or a Developer to develop test cases that can then be built into
  • 50. IPULLRANK.COM @ IPULLRANK Here are Few Examples These examples of tests should be enough to get you started on defining your own potential tests for SEO. Test Case ID Test Scenario Test Type Test Steps Test Data Expected Results Actual Results Pass/Fail SEO01 Presence of Meta Descriptions Unit Test Check for presence of meta description tag in HTML Page template code All URLs should have meta description Product Detail Page is missing meta description PASS SEO02 Viable Internal Links Functional Test 1. Render pages 2. Open all internal links 3. Review response codes Crawled URL data All links return 200 response code Many links to redirects and 404s FAIL SEO03 Average Page Speed Less than 2 Seconds Functional/Integrat ion Test 1. Render pages 2. Capture page speed 3. Determine average page speed per page type Render all page types from URL list All page types should return an average of 2 seconds load time Homepage takes 5 seconds to load FAIL
  • 51. Tools Some tools you canuse to get your automated testing for SEO off the ground
  • 52. IPULLRANK.COM @ IPULLRANK Meet Jenkins If your developers are doing Continuous Integration or Continuous Delivery, it’s likely that they are using Jenkins. https://jenkins.io/
  • 53. IPULLRANK.COM @ IPULLRANK Get Failure Alerts in Slack https://plugins.jenkins.io/slack
  • 54. IPULLRANK.COM @ IPULLRANK Or in Jenkins’ logs You could also just regularly the logs that Jenkins provides.
  • 55. IPULLRANK.COM @ IPULLRANK Or Pipe it into MySQL Sending the Jenkins logs into MySQL gives you the opportunity to monitor and visualize failures and successes of builds with respect to SEO in a variety of ways such as through Google Data Studio. https://chburmeister.github.io/2017/01/27/jenkins-logging-directly-to-mysql-database.html
  • 56. IPULLRANK.COM @ IPULLRANKYou’ll want a headless crawler and a text-based crawler to spin up pages and run tests on and a fixed list of pages that represent all of the public-facing routes. You’ll Also Need a Crawler https://github.com/yujiosaka/ headless-chrome-crawler https://github.com/antivanov/ js-crawler
  • 57. IPULLRANK.COM @ IPULLRANK Consider Making them Serverless Building your crawler with AWS Lambda, Azure Functions or Google Clouds Functions may be a great way to enjoy scale without having to manage additional servers.
  • 59. IPULLRANK.COM @ IPULLRANK Vini’s Blog Post on Serverless Architectures http://vvgomes.com/edas-and-serverless/
  • 60. IPULLRANK.COM @ IPULLRANK Tips On Testing Make only mission critical SEO tests potentially fail the build. Most SEO issues will be spotted in your integration tests. Include your SEO tests in every build. Keep your testing suites separate. Do all crawling in parallel.
  • 61. Things to Play With BecauseI never like to leaveyou without having something you can do
  • 62. IPULLRANK.COM @ IPULLRANK Check out these Video Tutorials on Jenkins Play with Jenkins: https://www.youtube.com/playlist?list=PLzvRQMJ9HDiSaisKr7OnM4Fl7JXCDDcmt
  • 63. IPULLRANK.COM @ IPULLRANK Kantu Browser Automation Tool See how Browser Automation tests work with a chrome extension: https://chrome.google.com/webstore/detail/kantu- browser-automation/gcbalfbdmfieckjlnblleoemohcganoc?hl=en
  • 64. IPULLRANK.COM @ IPULLRANK Codeception If you dabble in PHP or have a WP site you want to play around with, check out Codeception. https://codeception.com
  • 65. Wrapping Up Who am I and where am I from?
  • 66. IPULLRANK.COM @ IPULLRANK I’M #ZORASDAD First and foremost.
  • 67. IPULLRANK.COM @ IPULLRANK MY NAME IS MIKE KING Razorfish, Publicis Modem alum Full Stack Developer Full Stack Marketer Moz Associate
  • 69. IPULLRANK.COM @ IPULLRANK We Do These Things Machine Learning SEOContent Strategy Paid Media Measurement & Optimization Marketing Automation
  • 70. IPULLRANK.COM @ IPULLRANK Machine Learning for Marketers Guide skratchcoin.com http://ipullrank.com/machine-learning-guide/
  • 74. THANK YOU / Q&A MICHAEL KING FOUNDER & MANAGING DIRECTOR IPULLRANK mike@ipullrank.com DOWNLOAD THESE SLIDES: http://bit.ly/testeo