SlideShare a Scribd company logo
1 of 35
Do not automate GUI
Reinvention of wheel (HTTP performance testing) like an effective tool
for regression testing
Atila Inovecký
Something about pyramids
WHY to do API Testing
Abraham Maslow – Human Needs
Don't reinvent a wheel
Gojko Adzic - Quality Criteria
Don't reinvent a wheel
Mike Cohn (2009)– Automated regression testing
Don't reinvent a wheel
API testing in 2001
• Kaner, Bach, Pettichord: Lessons Learned in Software Testing – Lesson 132:
Automate tests using programming interfaces
“…When we look at many product testing effort we’ve observed, we conclude
that there is a strong correlation between the availability of programming
interfaces for testing and the development of powerful automated test
suites. Programming interfaces include APIs, command-line interfaces, COM
interfaces, HTTP and more. …If you’re serious about automation, you’ll learn
or get someone who knows this to help..
…Focus your attention on where automation can help the most. Sometimes,
you can effectively automate the GUI; other times you can’t. Don’t let
people’s preconceptions of what automation has to look like limit you.”
Don't reinvent a wheel
Ice Cream Cone Antipattern
Don't reinvent a wheel
Reasons for antipattern(traditional approach)
• Automate everything!
• Just QA is responsible for quality
• Few testing rounds – no Continuous Integration
• WHAT TO TEST(Business Functionality)=HOW TO TEST (GUI)?
• “This small hotfix won’t break anything”
• Production delivery 1 per year
• DIDN’T FAIL YET
• Trying to find a lot bugs
Don't reinvent a wheel
Test find bugs, not automation
• Value of the regression test depend on value of the covered
functionality
• Count of found bugs say nothig about valueeffectivity of automated
test
• Most of regression bugs is caused by unexpected impact of backend
integration not GUI
• Automation is not medicine for wrong communication
Don't reinvent a wheel
Conclusions
• Unit testing is the core of regression testing
• API testing is not the FUTURE but it is really just a reinvented wheel
• Future of automated GUI testing is (Exploratory tests, …)???
• GUI testing vs API testing
Don't reinvent a wheel
Something about REST API
How to test API through HTTP (REST)
Don't reinvent a wheel
REST – Representational State Transfer
• REST or RESTful web services are one way of providing
interoperability between computer systems on the internet. REST-
compliant web services allow requesting systems to access and
manipulate textual representations of web resources using a uniform
and predefined set of stateless operations.
Don't reinvent a wheel
Layered architecture of RESTful interactions
Don't reinvent a wheel
RESTful URLs
• URLs intended to improve the usability and accessibility of
a website or web service by being immediately and intuitively
meaningful to non-expert users.
Don't reinvent a wheel
Non-semantic URL Semantic URL
http://example.com/index.php?page=name http://example.com/name
http://example.com/index.php?page=consulting/mar
keting
http://example.com/consulting/marketing
http://example.com/products?category=2&pid=25 http://example.com/products/2/25
http://example.com/cgi-
bin/feed.cgi?feed=news&frm=rss
http://example.com/news.rss
http://example.com/services/index.jsp?category=lega
l&id=patents
http://example.com/services/legal/patents
Relationships between URL and HTTP methods
Don't reinvent a wheel
Uniform Resource Locator (URL) GET POST
Collection, such as
http://mgs.com/resources/
List the URIs and perhaps other
details of the collection's
members.
Create a new entry in the
collection. The new entry's URI is
assigned automatically and is
usually returned by the operation.
Element, such as
http://mgs.com/resources/item17
Retrieve a representation of the
addressed member of the
collection, expressed in an
appropriate Internet media type.
Not generally used. Treat the
addressed member as a collection
in its own right and create a new
entry within it.
HTTP API Design
Don't reinvent a wheel
Important HTTP Request Headers
Don't reinvent a wheel
Header field
name
Description Example
Cache-Control
Used to specify directives that must be obeyed by all
caching mechanisms along the request-response chain.
Cache-Control: no-cache
Content-Type
The MIME type of the body of the request (used with
POST and PUT requests).
Content-Type: application/x-www-form-urlencoded
Content-Type: application/json
Content-Type: multipart/form-data
Cookie
An HTTP cookie previously sent by the server with Set-
Cookie.
Cookie: $Version=1; Skin=new;
Host
The domain name of the server (for virtual hosting), and
the TCP port number on which the server is listening. The
port number may be omitted if the port is the standard
port for the service requested.
Host: qa16-ats.mgspdtesting.com
Important HTTP Status Codes
Don't reinvent a wheel
Status Code Description
200
Ok
Standard response for successful HTTP requests. The actual response will depend on the request method
used. In a GET request, the response will contain an entity corresponding to the requested resource. In a
POST request, the response will contain an entity describing or containing the result of the action.
302 Found Common way of performing URL redirection.
400 Bad Request The server cannot or will not process the request due to an apparent client error
403 Forbidden
The request was a valid request, but the server is refusing to respond to it. The user might be logged in but
does not have the necessary permissions for the resource.
404
Not Found
The request was a valid request, but the server is refusing to respond to it. The user might be logged in but
does not have the necessary permissions for the resource. Usually means that the resource already didn’t
exist.
501 Internal Server
Error
Indicates that the request could not be processed because of conflict in the request, such as an edit
conflict between multiple simultaneous updates.
Open Source Tools for API Testing
• Performance testing tools
• SoapUI (SoapUI NG Pro), Jmeter(SmartMeter, Blazemeter)
• Web Service testing tool
• Postman, DHC, HTTPRequester, Wizdler, WebInject, Http Master, …
• Automation Frameworks
• FitNesse, Cucumber, Robot Framework, …
Don't reinvent a wheel
SoapUI
• Open-source web service testing application:
• for service-oriented architectures (SOA)
• for representational state transfers (REST).
• Covers:
• web service inspection, invoking, development, simulation and mocking,
• functional testing,
• load and compliance testing.
• A commercial version, SoapUI Pro (Api Ready), which mainly focuses
on features designed to enhance productivity.
Don't reinvent a wheel
SoapUI Open Source– pros and cons
• Pros
• support HTTP(S), REST, SOAP, JDBC, AMF
• IDE -Groovy -> command line, visible SoapUI API
• User forums, tradition
• Easy to learn, easy to use
• Cons
• Team work support
• No recording
• Weak user documentation
• Test history, test debugging, compare results
• Buggy
Don't reinvent a wheel
Conclusions
• Web application automated testing is possible through HTTP(S)
• Web application automated testing is effective through REST
• REST API popularity is growing
Don't reinvent a wheel
Something about fiddling
How to capture HTTPS communication
Don't reinvent a wheel
Fiddler
• Captures HTTP and HTTPS traffic and logs it for the user to
review (the latter by implementing man-in-the-middle interception
using self-signed certificates).
• https://www.telerik.com/download/fiddler
Don't reinvent a wheel
HTTPS Traffic settings
• Capture - F12 or Click on left bottom corner
• Select captured process by
• Preview - Tab Inspector
• Request – Top part
• Response – Bottom part
Don't reinvent a wheel
Icon help
Don't reinvent a wheel
Fiddler - Inspector
• Request Inspectors
• Headers—Shows request headers and status.
• Webforms – Shows parameters visualized as table from QueryString and Body
• Raw—Shows the “real” request header and body
• Response Inspectors
• Headers—Shows response headers and status.
• SyntaxView—Shows the response body with HTML syntax
• WebView – Shows the browser output
• Raw – Shows “real” response header and body
Don't reinvent a wheel
Fiddler - Settings
ToolsTelerik Fiddler OptionsHTTPS Filters settings
Don't reinvent a wheel
Something about soap with UI
REST testing in SoapUI Open Source
Don't reinvent a wheel
Initial settings
• FilePreferences –
• Proxy Settings -> Manual 127.0.0.1:8888
• UI Settings – Size of Req Response Message to Show – 1000000
• FileImport project (FileCreate Empty Project)
Don't reinvent a wheel
Don't reinvent a wheel
What you get for 500$ in SoapUI NG Pro
• a
• FileImport project (FileCreate Empty Project)
Don't reinvent a wheel
Useful links
 REST 101: The Beginner's Guide to Using and Testing RESTful APIs
 SoapUI - Getting Started with REST Testing
 SoapUI - Functional Testing
 SoapUI – Scripting & Properties
 SoapUI – API Docs
Don't reinvent a wheel
Reference List
• Gojko Adzic, David Evans - Fifty Quick Ideas To Improve Your Tests
• Mike Cohn - Succeeding with Agile: Software Development Using
Scrum
• Lisa Crispin, Janet Gregory - Agile Testing: A Practical Guide for Testers
and Agile Teams
• Dorothy Graham, Mark Fewster - Experiences of Test Automation:
Case Studies of Software Test Automation
• Cem Kaner, James Bach, Bret Pettichord - Lessons Learned in Software
Testing: A Context-Driven Approach
Don't reinvent a wheel
Don't reinvent a wheel

More Related Content

What's hot

Pentesting RESTful webservices
Pentesting RESTful webservicesPentesting RESTful webservices
Pentesting RESTful webservicesMohammed A. Imran
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testingb4usolution .
 
Understanding and testing restful web services
Understanding and testing restful web servicesUnderstanding and testing restful web services
Understanding and testing restful web servicesmwinteringham
 
Postman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenarioPostman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenarioHYS Enterprise
 
The never-ending REST API design debate
The never-ending REST API design debateThe never-ending REST API design debate
The never-ending REST API design debateRestlet
 
Securty Testing For RESTful Applications
Securty Testing For RESTful ApplicationsSecurty Testing For RESTful Applications
Securty Testing For RESTful ApplicationsSource Conference
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberKMS Technology
 
Rest api design by george reese
Rest api design by george reeseRest api design by george reese
Rest api design by george reesebuildacloud
 
Secure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScriptSecure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScriptJonathan LeBlanc
 
Automate REST Services Testing with RestAssured
Automate REST Services Testing with RestAssuredAutomate REST Services Testing with RestAssured
Automate REST Services Testing with RestAssuredTechWell
 
Restful api design
Restful api designRestful api design
Restful api designMizan Riqzia
 
REST API Design & Development
REST API Design & DevelopmentREST API Design & Development
REST API Design & DevelopmentAshok Pundit
 
Web Services Testing
Web Services TestingWeb Services Testing
Web Services TestingDataArt
 
Reasons To Automate API Testing Process
Reasons To Automate API Testing ProcessReasons To Automate API Testing Process
Reasons To Automate API Testing ProcessQASource
 
APIs: A Better Alternative to Page Objects
APIs: A Better Alternative to Page ObjectsAPIs: A Better Alternative to Page Objects
APIs: A Better Alternative to Page ObjectsSauce Labs
 
BDD in Java using Cucumber
BDD in Java using CucumberBDD in Java using Cucumber
BDD in Java using Cucumberslavkurochkin
 
Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]ColdFusionConference
 
The REST And Then Some
The REST And Then SomeThe REST And Then Some
The REST And Then SomeNordic APIs
 

What's hot (20)

Pentesting RESTful webservices
Pentesting RESTful webservicesPentesting RESTful webservices
Pentesting RESTful webservices
 
Rest api testing
Rest api testingRest api testing
Rest api testing
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
Understanding and testing restful web services
Understanding and testing restful web servicesUnderstanding and testing restful web services
Understanding and testing restful web services
 
Postman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenarioPostman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenario
 
The never-ending REST API design debate
The never-ending REST API design debateThe never-ending REST API design debate
The never-ending REST API design debate
 
Securty Testing For RESTful Applications
Securty Testing For RESTful ApplicationsSecurty Testing For RESTful Applications
Securty Testing For RESTful Applications
 
REST APIs
REST APIsREST APIs
REST APIs
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
 
Rest api design by george reese
Rest api design by george reeseRest api design by george reese
Rest api design by george reese
 
Secure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScriptSecure RESTful API Automation With JavaScript
Secure RESTful API Automation With JavaScript
 
Automate REST Services Testing with RestAssured
Automate REST Services Testing with RestAssuredAutomate REST Services Testing with RestAssured
Automate REST Services Testing with RestAssured
 
Restful api design
Restful api designRestful api design
Restful api design
 
REST API Design & Development
REST API Design & DevelopmentREST API Design & Development
REST API Design & Development
 
Web Services Testing
Web Services TestingWeb Services Testing
Web Services Testing
 
Reasons To Automate API Testing Process
Reasons To Automate API Testing ProcessReasons To Automate API Testing Process
Reasons To Automate API Testing Process
 
APIs: A Better Alternative to Page Objects
APIs: A Better Alternative to Page ObjectsAPIs: A Better Alternative to Page Objects
APIs: A Better Alternative to Page Objects
 
BDD in Java using Cucumber
BDD in Java using CucumberBDD in Java using Cucumber
BDD in Java using Cucumber
 
Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]Single page apps_with_cf_and_angular[1]
Single page apps_with_cf_and_angular[1]
 
The REST And Then Some
The REST And Then SomeThe REST And Then Some
The REST And Then Some
 

Viewers also liked

What will testing look like in year 2020
What will testing look like in year 2020What will testing look like in year 2020
What will testing look like in year 2020BugRaptors
 
World Quality Report 2015 - 16
World Quality Report 2015 - 16World Quality Report 2015 - 16
World Quality Report 2015 - 16Piotr Kula
 
Emerging Trends in Testing - Conclusions from the 2013-2014 World Quality Report
Emerging Trends in Testing - Conclusions from the 2013-2014 World Quality ReportEmerging Trends in Testing - Conclusions from the 2013-2014 World Quality Report
Emerging Trends in Testing - Conclusions from the 2013-2014 World Quality ReportTEST Huddle
 
Key Findings from the World Quality Report 2012-13 at HP Discover
Key Findings from the World Quality Report 2012-13 at HP DiscoverKey Findings from the World Quality Report 2012-13 at HP Discover
Key Findings from the World Quality Report 2012-13 at HP DiscoverCapgemini
 
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk... Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...TEST Huddle
 
Understand regression testing
Understand regression testingUnderstand regression testing
Understand regression testinggaoliang641
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Leonard Fingerman
 
REST API testing with SpecFlow
REST API testing with SpecFlowREST API testing with SpecFlow
REST API testing with SpecFlowAiste Stikliute
 
Webservices testing using SoapUI
Webservices testing using SoapUIWebservices testing using SoapUI
Webservices testing using SoapUITesting World
 
Areas In Statistics
Areas In StatisticsAreas In Statistics
Areas In Statisticsguestc94d8c
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAiden Yeh
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it mattersPaul Brody
 
Web Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI ToolWeb Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI ToolSperasoft
 
Testing web services
Testing web servicesTesting web services
Testing web servicesTaras Lytvyn
 

Viewers also liked (15)

What will testing look like in year 2020
What will testing look like in year 2020What will testing look like in year 2020
What will testing look like in year 2020
 
World Quality Report 2015 - 16
World Quality Report 2015 - 16World Quality Report 2015 - 16
World Quality Report 2015 - 16
 
Emerging Trends in Testing - Conclusions from the 2013-2014 World Quality Report
Emerging Trends in Testing - Conclusions from the 2013-2014 World Quality ReportEmerging Trends in Testing - Conclusions from the 2013-2014 World Quality Report
Emerging Trends in Testing - Conclusions from the 2013-2014 World Quality Report
 
Key Findings from the World Quality Report 2012-13 at HP Discover
Key Findings from the World Quality Report 2012-13 at HP DiscoverKey Findings from the World Quality Report 2012-13 at HP Discover
Key Findings from the World Quality Report 2012-13 at HP Discover
 
Automated Testing in DevOps
Automated Testing in DevOpsAutomated Testing in DevOps
Automated Testing in DevOps
 
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk... Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 
Understand regression testing
Understand regression testingUnderstand regression testing
Understand regression testing
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)
 
REST API testing with SpecFlow
REST API testing with SpecFlowREST API testing with SpecFlow
REST API testing with SpecFlow
 
Webservices testing using SoapUI
Webservices testing using SoapUIWebservices testing using SoapUI
Webservices testing using SoapUI
 
Areas In Statistics
Areas In StatisticsAreas In Statistics
Areas In Statistics
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Block chain 101 what it is, why it matters
Block chain 101  what it is, why it mattersBlock chain 101  what it is, why it matters
Block chain 101 what it is, why it matters
 
Web Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI ToolWeb Services Automated Testing via SoapUI Tool
Web Services Automated Testing via SoapUI Tool
 
Testing web services
Testing web servicesTesting web services
Testing web services
 

Similar to Do not automate GUI testing

Structured Functional Automated Web Service Testing
Structured Functional Automated Web Service TestingStructured Functional Automated Web Service Testing
Structured Functional Automated Web Service Testingrdekleijn
 
JOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJordan Open Source Association
 
Tools. Techniques. Trouble?
Tools. Techniques. Trouble?Tools. Techniques. Trouble?
Tools. Techniques. Trouble?Testplant
 
Load Impact
Load Impact Load Impact
Load Impact z-999
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiTiago Knoch
 
What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...Kim Clark
 
API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend IntegrationElewayte
 
Business Applications Integration In The Cloud
Business Applications Integration In The CloudBusiness Applications Integration In The Cloud
Business Applications Integration In The CloudAnna Brzezińska
 
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...apidays
 
Sinergija2012 - Developing REST API for Windows Azure with ASP.NET Web API
Sinergija2012 - Developing REST API for Windows Azure with ASP.NET Web APISinergija2012 - Developing REST API for Windows Azure with ASP.NET Web API
Sinergija2012 - Developing REST API for Windows Azure with ASP.NET Web APIRadenko Zec
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Knoldus Inc.
 
Restful风格ž„web服务架构
Restful风格ž„web服务架构Restful风格ž„web服务架构
Restful风格ž„web服务架构Benjamin Tan
 
Top open source tools to consider for web service performance testing
Top open source tools to consider for web service performance testingTop open source tools to consider for web service performance testing
Top open source tools to consider for web service performance testingAlisha Henderson
 

Similar to Do not automate GUI testing (20)

Structured Functional Automated Web Service Testing
Structured Functional Automated Web Service TestingStructured Functional Automated Web Service Testing
Structured Functional Automated Web Service Testing
 
JOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best PracticesJOSA TechTalks - RESTful API Concepts and Best Practices
JOSA TechTalks - RESTful API Concepts and Best Practices
 
REST API Basics
REST API BasicsREST API Basics
REST API Basics
 
Tools. Techniques. Trouble?
Tools. Techniques. Trouble?Tools. Techniques. Trouble?
Tools. Techniques. Trouble?
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 
Rest assured
Rest assuredRest assured
Rest assured
 
Web APIs
Web APIsWeb APIs
Web APIs
 
Load Impact
Load Impact Load Impact
Load Impact
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 
APITalkMeetupSharable
APITalkMeetupSharableAPITalkMeetupSharable
APITalkMeetupSharable
 
What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...
 
API & Backend Integration
API & Backend IntegrationAPI & Backend Integration
API & Backend Integration
 
API testing - Japura.pptx
API testing - Japura.pptxAPI testing - Japura.pptx
API testing - Japura.pptx
 
SOA Testing
SOA TestingSOA Testing
SOA Testing
 
Business Applications Integration In The Cloud
Business Applications Integration In The CloudBusiness Applications Integration In The Cloud
Business Applications Integration In The Cloud
 
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
 
Sinergija2012 - Developing REST API for Windows Azure with ASP.NET Web API
Sinergija2012 - Developing REST API for Windows Azure with ASP.NET Web APISinergija2012 - Developing REST API for Windows Azure with ASP.NET Web API
Sinergija2012 - Developing REST API for Windows Azure with ASP.NET Web API
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6
 
Restful风格ž„web服务架构
Restful风格ž„web服务架构Restful风格ž„web服务架构
Restful风格ž„web服务架构
 
Top open source tools to consider for web service performance testing
Top open source tools to consider for web service performance testingTop open source tools to consider for web service performance testing
Top open source tools to consider for web service performance testing
 

Recently uploaded

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 

Recently uploaded (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 

Do not automate GUI testing

  • 1. Do not automate GUI Reinvention of wheel (HTTP performance testing) like an effective tool for regression testing Atila Inovecký
  • 2. Something about pyramids WHY to do API Testing
  • 3. Abraham Maslow – Human Needs Don't reinvent a wheel
  • 4. Gojko Adzic - Quality Criteria Don't reinvent a wheel
  • 5. Mike Cohn (2009)– Automated regression testing Don't reinvent a wheel
  • 6. API testing in 2001 • Kaner, Bach, Pettichord: Lessons Learned in Software Testing – Lesson 132: Automate tests using programming interfaces “…When we look at many product testing effort we’ve observed, we conclude that there is a strong correlation between the availability of programming interfaces for testing and the development of powerful automated test suites. Programming interfaces include APIs, command-line interfaces, COM interfaces, HTTP and more. …If you’re serious about automation, you’ll learn or get someone who knows this to help.. …Focus your attention on where automation can help the most. Sometimes, you can effectively automate the GUI; other times you can’t. Don’t let people’s preconceptions of what automation has to look like limit you.” Don't reinvent a wheel
  • 7. Ice Cream Cone Antipattern Don't reinvent a wheel
  • 8. Reasons for antipattern(traditional approach) • Automate everything! • Just QA is responsible for quality • Few testing rounds – no Continuous Integration • WHAT TO TEST(Business Functionality)=HOW TO TEST (GUI)? • “This small hotfix won’t break anything” • Production delivery 1 per year • DIDN’T FAIL YET • Trying to find a lot bugs Don't reinvent a wheel
  • 9. Test find bugs, not automation • Value of the regression test depend on value of the covered functionality • Count of found bugs say nothig about valueeffectivity of automated test • Most of regression bugs is caused by unexpected impact of backend integration not GUI • Automation is not medicine for wrong communication Don't reinvent a wheel
  • 10. Conclusions • Unit testing is the core of regression testing • API testing is not the FUTURE but it is really just a reinvented wheel • Future of automated GUI testing is (Exploratory tests, …)??? • GUI testing vs API testing Don't reinvent a wheel
  • 11. Something about REST API How to test API through HTTP (REST) Don't reinvent a wheel
  • 12. REST – Representational State Transfer • REST or RESTful web services are one way of providing interoperability between computer systems on the internet. REST- compliant web services allow requesting systems to access and manipulate textual representations of web resources using a uniform and predefined set of stateless operations. Don't reinvent a wheel
  • 13. Layered architecture of RESTful interactions Don't reinvent a wheel
  • 14. RESTful URLs • URLs intended to improve the usability and accessibility of a website or web service by being immediately and intuitively meaningful to non-expert users. Don't reinvent a wheel Non-semantic URL Semantic URL http://example.com/index.php?page=name http://example.com/name http://example.com/index.php?page=consulting/mar keting http://example.com/consulting/marketing http://example.com/products?category=2&pid=25 http://example.com/products/2/25 http://example.com/cgi- bin/feed.cgi?feed=news&frm=rss http://example.com/news.rss http://example.com/services/index.jsp?category=lega l&id=patents http://example.com/services/legal/patents
  • 15. Relationships between URL and HTTP methods Don't reinvent a wheel Uniform Resource Locator (URL) GET POST Collection, such as http://mgs.com/resources/ List the URIs and perhaps other details of the collection's members. Create a new entry in the collection. The new entry's URI is assigned automatically and is usually returned by the operation. Element, such as http://mgs.com/resources/item17 Retrieve a representation of the addressed member of the collection, expressed in an appropriate Internet media type. Not generally used. Treat the addressed member as a collection in its own right and create a new entry within it.
  • 16. HTTP API Design Don't reinvent a wheel
  • 17. Important HTTP Request Headers Don't reinvent a wheel Header field name Description Example Cache-Control Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain. Cache-Control: no-cache Content-Type The MIME type of the body of the request (used with POST and PUT requests). Content-Type: application/x-www-form-urlencoded Content-Type: application/json Content-Type: multipart/form-data Cookie An HTTP cookie previously sent by the server with Set- Cookie. Cookie: $Version=1; Skin=new; Host The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The port number may be omitted if the port is the standard port for the service requested. Host: qa16-ats.mgspdtesting.com
  • 18. Important HTTP Status Codes Don't reinvent a wheel Status Code Description 200 Ok Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action. 302 Found Common way of performing URL redirection. 400 Bad Request The server cannot or will not process the request due to an apparent client error 403 Forbidden The request was a valid request, but the server is refusing to respond to it. The user might be logged in but does not have the necessary permissions for the resource. 404 Not Found The request was a valid request, but the server is refusing to respond to it. The user might be logged in but does not have the necessary permissions for the resource. Usually means that the resource already didn’t exist. 501 Internal Server Error Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.
  • 19. Open Source Tools for API Testing • Performance testing tools • SoapUI (SoapUI NG Pro), Jmeter(SmartMeter, Blazemeter) • Web Service testing tool • Postman, DHC, HTTPRequester, Wizdler, WebInject, Http Master, … • Automation Frameworks • FitNesse, Cucumber, Robot Framework, … Don't reinvent a wheel
  • 20. SoapUI • Open-source web service testing application: • for service-oriented architectures (SOA) • for representational state transfers (REST). • Covers: • web service inspection, invoking, development, simulation and mocking, • functional testing, • load and compliance testing. • A commercial version, SoapUI Pro (Api Ready), which mainly focuses on features designed to enhance productivity. Don't reinvent a wheel
  • 21. SoapUI Open Source– pros and cons • Pros • support HTTP(S), REST, SOAP, JDBC, AMF • IDE -Groovy -> command line, visible SoapUI API • User forums, tradition • Easy to learn, easy to use • Cons • Team work support • No recording • Weak user documentation • Test history, test debugging, compare results • Buggy Don't reinvent a wheel
  • 22. Conclusions • Web application automated testing is possible through HTTP(S) • Web application automated testing is effective through REST • REST API popularity is growing Don't reinvent a wheel
  • 23. Something about fiddling How to capture HTTPS communication Don't reinvent a wheel
  • 24. Fiddler • Captures HTTP and HTTPS traffic and logs it for the user to review (the latter by implementing man-in-the-middle interception using self-signed certificates). • https://www.telerik.com/download/fiddler Don't reinvent a wheel
  • 25. HTTPS Traffic settings • Capture - F12 or Click on left bottom corner • Select captured process by • Preview - Tab Inspector • Request – Top part • Response – Bottom part Don't reinvent a wheel
  • 27. Fiddler - Inspector • Request Inspectors • Headers—Shows request headers and status. • Webforms – Shows parameters visualized as table from QueryString and Body • Raw—Shows the “real” request header and body • Response Inspectors • Headers—Shows response headers and status. • SyntaxView—Shows the response body with HTML syntax • WebView – Shows the browser output • Raw – Shows “real” response header and body Don't reinvent a wheel
  • 28. Fiddler - Settings ToolsTelerik Fiddler OptionsHTTPS Filters settings Don't reinvent a wheel
  • 29. Something about soap with UI REST testing in SoapUI Open Source Don't reinvent a wheel
  • 30. Initial settings • FilePreferences – • Proxy Settings -> Manual 127.0.0.1:8888 • UI Settings – Size of Req Response Message to Show – 1000000 • FileImport project (FileCreate Empty Project) Don't reinvent a wheel
  • 32. What you get for 500$ in SoapUI NG Pro • a • FileImport project (FileCreate Empty Project) Don't reinvent a wheel
  • 33. Useful links  REST 101: The Beginner's Guide to Using and Testing RESTful APIs  SoapUI - Getting Started with REST Testing  SoapUI - Functional Testing  SoapUI – Scripting & Properties  SoapUI – API Docs Don't reinvent a wheel
  • 34. Reference List • Gojko Adzic, David Evans - Fifty Quick Ideas To Improve Your Tests • Mike Cohn - Succeeding with Agile: Software Development Using Scrum • Lisa Crispin, Janet Gregory - Agile Testing: A Practical Guide for Testers and Agile Teams • Dorothy Graham, Mark Fewster - Experiences of Test Automation: Case Studies of Software Test Automation • Cem Kaner, James Bach, Bret Pettichord - Lessons Learned in Software Testing: A Context-Driven Approach Don't reinvent a wheel

Editor's Notes

  1. Google Compare