RESTful (web services) API PERFORMANCE TESTING · 2. API Performance Testing • Load Testing •...
Transcript of RESTful (web services) API PERFORMANCE TESTING · 2. API Performance Testing • Load Testing •...
++++
Case Study
RESTful (web services) API PERFORMANCE TESTING
For more information visit our website www.kualitatem.com or write to us at [email protected] Copyright© 2015 Kualitatem. All rights reserved.
1. Product The product under test was an e-safety solution which protects over 1 million students in the UK by keeping them safe online while allowing them access to all of the benefits of the online world. The product protects students by monitoring, capturing and alerting of any potentially harmful content or behaviour allowing school admins to safeguard against online dangers such as inadvertent exposure to inappropriate websites, cyberbullying, grooming, online gambling and un-moderated chatrooms.
This case study focuses on load testing of RESTful API’s for this e-safety solution. For performance testing we simulated real world load on Services and then monitored application behaviors before and after deployment on production servers. Kualitatem has been working to help secure different enterprises by performing penetration tests and doing pen tests for due diligence of the business partners. Human resource portals galore and Kualitatem has developed a pen testing certificate specific to HR applications.
For more information visit our website www.kualitatem.com or write to us at [email protected] Copyright© 2015 Kualitatem. All rights reserved.
2. API Performance Testing
• Load Testing • Stress Testing
3. Challenges • Following is the list of different activities that were performed during the Performance testing process. • In hand technical requirement as taken before and during functional testing of API’s • Collect requirement specific to Performance testing:
o To check Min, Max & average response time under very low, medium & very high load o Measure resource utilization in each case.
• Selected JMeter as a tool for performance testing of RESTful API’s • Creating a new Test Plan & add HTTP Request Default that will only contain server endpoint (domain name) • Add thread group where no: of thread, time duration, ram up period etc. can be defined • Add HTTP Header Manager under Thread group, where metadata info can be placed like Content-Type set as
“application/json” • Add HTTP Request under thread group, where API’s URI can be past in PATH by excluding the endpoint as it was already
taken in HTTP Request Default. In first request there should be Oauth API as it creates a session & all other API’s depends on that session.
• Add different listeners under Thread group for different types of output like Response time graph, aggregate results, transactions per second etc.
• Repeat the process for other API’s but remember that TokenKey & TokenSecret generated from Oauth API should be included in others HTTP Header Manager
For more information visit our website www.kualitatem.com or write to us at [email protected] Copyright© 2015 Kualitatem. All rights reserved.
Testing Process
Technical Requirement
Requirement specific to Performance Testing
Select JMeter as a tool for Performance Testing
Add HTTP Header Manager
Add Thread Groups Test Plan & Add a HTTP
Request Default
Add HTTP Request for first Oauth Request
Add dfferent listeners for different Output types
Repeat the Process for other API's
For more information visit our website www.kualitatem.com or write to us at [email protected] Copyright© 2015 Kualitatem. All rights reserved.
4. Tools and Technologies
Test Management & Defect Reporting: Basecamp, MS Office Operating System: Windows 7 Tools: JMeter, SnagIt, Paint etc.
Benefits Performance testing of RESTful API’s enabled the client to launch the application with confidence
Provision of detailed analysis on the resource utilization of web service helped the client orevamp application architecture and hence better serve their end users in terms of response times
For more information visit our website www.kualitatem.com or write to us at [email protected] Copyright© 2015 Kualitatem. All rights reserved.
Why Kualitatem
Kualitatem performance experts are specialized in due diligence investigation. Our performance experts adapt a holistic approach towards understanding your performance needs, as well as identifying the performance deterrents you might
be facing.
Email us at [email protected]. Our performance expert will get in touch to understand your requirements and will help to propose solutions that fit your needs.
For more information visit our website www.kualitatem.com or write to us at [email protected] Copyright© 2015 Kualitatem. All rights reserved.
Copyright© 2015 Kualitatem. All rights reserved.
For more information please visit: www.kualitatem.com
Write to us at: [email protected]
NOTHING HAPPENS UNTIL YOU MOVE, TEST NOW
Our certified testing experts will get in touch to understand your challenges and help propose a solution that fit your needs
Copyright© 2015 Kualitatem. All rights reserved.