Parasoft API Testing Guide PDF
Parasoft API Testing Guide PDF
Parasoft API Testing Guide PDF
1 http://blog.programmableweb.com/2013/09/23/programmablewebs-directory-hits-10000-apis-and-counting/
1
2. Elevated Potential for Unexpected Misuse
Considering the range and number of people who will have access to published APIs, it’s virtually
inevitable that they will be exercised in a number of unexpected ways: both by people innocently
using them in ways the producer never anticipated and by attackers maliciously trying to exploit
them. In the early days of SOA—when services were exposed internally through controlled
networks—you could be fairly certain that your services would be used by colleagues or partners
who were familiar with their intended uses cases. Now, when an API is exposed to the public, the
producer surrenders all control and certainty over how those APIs are consumed.
2
Recommended capabilities for this goal include an intuitive interface for automating complex
scenarios across the messaging layer, ESBs, databases, and mainframes:
Defining automated test scenarios across the broad range of protocols and message
types used in APIs: REST, WADL, JSON, MQ, JMS, EDI, fixed-length messages, etc.
Automating rich multilayer validation across multiple endpoints involved in end-to-end test
scenarios.
Parameterizing test messages, validations, and configurations from data sources, values
extracted from test scenarios, or variables.
Visualizing how messages and events flow through distributed architectures as tests
execute.
These are all capabilities that should—or at least could—have been applied to web service
testing for SOA. In fact, most of these capabilities were invented, tested, and refined in the
context of SOA testing. APIs—with their extreme exposure and myriad opportunities for misuse—
brings us to the tipping point that makes these automated testing and validation capabilities a
“must have” for organizations serious about delivering APIs that satisfy user needs and
expectations.
To simulate access to the dependent resource behavior (e.g., from a mobile app,
database, legacy system, or third-party service) that you need in order to thoroughly
validate your API.
3
To simulate the behavior of your APIs, creating a test environment that API consumers
can develop and test against without impacting your production environment—or to
enable development and testing to begin before APIs are completed.
Running penetration attack scenarios against your existing functional test scenarios.
Monitoring the back-end during test execution in order to determine whether security is
actually compromised.
In addition, if you’re adopting service virtualization (covered above) you can leverage it to take
your security testing to the next level:
It provides rapid ways to emulate attack scenarios as well as emulate different security
behaviors of dependencies. This lets you derive more value from your existing functional
test scenarios (since you can run them vs. different security scenarios that would
otherwise be difficult to configure and unfeasible to test against).
It helps you isolate and zero in on your APIs response to various attack scenarios and
different security behaviors of dependencies.
4
About Parasoft
For 25 years, Parasoft has researched and developed software solutions that help organizations
define and deliver defect-free software efficiently. By integrating Development Testing, cloud/API
testing, and service virtualization, we reduce the time, effort, and cost of delivering secure,
reliable, and compliant software. Parasoft's enterprise and embedded development solutions are
the industry's most comprehensive—including static analysis, unit testing, requirements
traceability, functional & load testing, dev/test environment management, and more. The majority
of Fortune 500 companies rely on Parasoft in order to produce top-quality software consistently
and efficiently. For more information, visit the Parasoft web site and ALM Best Practices blog.
Contacting Parasoft
USA Phone: (888) 305-0041 Email: info@parasoft.com
NORDICS Phone: +31-70-3922000 Email: info@parasoft.nl
GERMANY Phone: +49 731 880309-0 Email: info-de@parasoft.com
POLAND Phone: +48 12 290 91 01 Email: info-pl@parasoft.com
UK Phone: +44 (0)208 263 6005 Email: sales@parasoft-uk.com
FRANCE Phone: (33 1) 64 89 26 00, Email: sales@parasoft-fr.com
ITALY Phone: (+39) 06 96 03 86 74 Email: c.soulat@parasoft-fr.com
Author Information
This paper was written by:
5
Parasoft API Integrity
Modern composite applications are aggregating and consuming private, partner, and public APIs at a staggering pace
in order to achieve business goals. As applications grow increasingly interdependent, the security, functionality, and
performance of the composite “mashup” is only as strong as its weakest link. The success of an end-to-end transaction
depends upon all the parts working flawlessly all the time; even small glitches from a popular API can singlehandedly
choke thousands of transactions.
© Parasoft Corporation All rights reserved. Parasoft and all Parasoft products and services listed within are trademarks or registered trademarks of Parasoft Corporation.
All other products, services, and companies are trademarks, registered trademarks, or servicemarks of their respective holders in the US and/or other countries.