Due to APIs, the world is changing faster than ever. Daily, a large number of APIs are developed and adjusted to fulfill the needs of various businesses. These APIs give developers the tools they need to create top-notch applications. The growth of API-first enterprises is one of the key factors influencing interest in API testing. It is currently mentioned in almost all job descriptions for testers. Some suggested techniques can help and make our work more efficient. Automation of our doable daily tasks has benefits. Mocking and monitoring are two crucial elements that aid in improving the API testing procedure. We don't give these two aspects enough consideration as API testers.
You can move forward with the testing thanks to mocking, which also provides a number of other benefits. By keeping an eye on your APIs, you can easily see the trend of the API in terms of performance, availability, and functionality. It is advantageous to maintain your awareness of API behaviors. Most apps warn you when something goes wrong, which enables you to act immediately.
Takeaways for the audience:
Introduction to Mock Servers
Mock Process and types of Mocks
Advantages of mocking and Tools available
What is API Monitoring?
Why is API monitoring required?
2. Hello!
I am Pricilla Bilavendran
I am here because, I love to talk about APIs and spreading API literacy
among Test engineers!!
2
3. We will discuss about
◈ Introduction to Mock Servers
◈ Mock Process
◈ Mocking types and tools
◈ Advantages of mocks
◈ Introduction to API Monitoring
◈ Why monitoring?
◈ Tools available
◈ Demo
3
6. When we talk about Mocks
Mock Objects
In OOPS, mock object is
a simulated object
6
Mock Testing
With the help of mock
objects, simulation is
done for the integration
testing of the individual
components
7. Is mocking good or bad?
😉
Ofcourse, it is bad with
people and unacceptable.
But it’s good for your API
testing process.
7
8. 8
What is a Mock Server?
◈ Simulate real server
◈ Not real server (call is fake)
◈ Gives the mocked response
9. How does it work?
Finalize your
expected
response
Configure
your Mock
Server
Server sends
the same
response
9
10. Types of Mock Servers
10
Public
◈ Accessible to everyone
◈ No Auth required
Private
◈ Only to the intended
user and requires
authentication
◈ Sensitive data
11. When to use Mock Servers?
◈ New APIs feedback before real development
◈ Under-developed applications/APIs
◈ Unstable server
◈ Integration tests/chaining of APIs
◈ External dependencies
◈ Reduce load to real server
11
12. “
Don’t watch the clock; do what it does. Keep going
- Sam Levenson
12
13. Advantages of Mocks
◈ Analysis of responses and provide feedbacks
◈ Testers to write assertions
◈ Development continues when the external service
fails
◈ Avoids data sharing and data privacy is maintained
◈ Supports to test the endpoints individually
13
22. As per “The 2021 Data Breach Investigations
Report”, 20% of the breaches stay
undiscovered for months. This helps the
hackers to cross layer-by-layer
22
23. Why API Monitoring?
◈ Understand the trend
◈ Find the security leaks/threats
◈ Outages detection and quick actions
◈ Happy customers
23
30. Credits
Special thanks to all the people who made and
released these awesome resources for free:
◈ Presentation template by SlidesCarnival
◈ Photographs by Unsplash
◈ Backgrounds by SubtlePatterns
30