logo logo

API Test Automation Flows Combined with Mobile Functional Test

main post image

End-to-end API testing flows can involve multiple input sources, such as HTML, Databases, Telnet/SSH, Mobile, Shell, Data files, other RESTful APIs and more. TestProject‘s test automation platform allows not only testing your APIs manually, but also to complete end-to-end API based test automation flows, schedule and run them periodically, get execution reports and all of that without any third party tools and without a single line of code 🚀

This hands-on tutorial consists of step-by-step examples and real automated test flows, shared here for you to use and practice while automating your APIs. In this chapter (Chapter #2), we will walk through API test automation flows combined with mobile functional tests. You can access the tests mentioned in the examples below by using the following shared test links:

  1. Android and Restful API Test Example
  2. iOS and Restful API Test Example

Table of Contents – Automating End to End API Testing Flows

  1. OverviewAutomating End to End API Testing Flows
  2. Chapter 1Basic API Test Automation
  3. You’re here → Chapter 2 – API Test Automation Flows Combined with Mobile Functional Tests
  4. Chapter 3 – API Test Automation Flows Combined with Databases Flows
  5. Chapter 4 – API Test Automation with Combination of Shell Commands and Local Files
  6. Chapter 5 – Advanced API Test Automation and Validation Flows
  7. Chapter 6 – Scheduling API Automation Flows and CI/CD Execution

Android Mobile Functional Test and RESTful API Test Example

API calls are not limited to web testing only, they can be performed during mobile testing (both Android and iOS tests) as well, as part of your end to end automation flow.

The following example will perform a GET request to the public MetaWeather API and create an alarm with a label extracted using JsonPath from the response.

First, create the HTTP Get request:

Android and RESTful API Test Example

And store the value in a parameter:

Android and RESTful API Test Example - Store Value

Afterward, use your extracted value when necessary in your test:

Android and RESTful API Test Example - Use Extracted Value

iOS Mobile Functional Test and RESTful API Test Example

The same can be achieved for iOS tests, creating API requests and using them in tandem with your functional tests.

The following example once again queries the MetaWeather API, extracts city names using JsonPath and writes them all down inside a reminder note on an iOS application:

⚡ TAKE ME TO CHAPTER #3 ⚡

David Goichman

About the author

David Goichman

Automation has been a great passion of mine from day one. Software Engineer at TestProject.

Join TestProject Community

Get full access to the world's first cloud-based, open source friendly testing community. Enjoy TestProject's end-to-end test automation Platform, Forum, Blog and Docs - All for FREE.

Join Us Now  

Leave a Reply

popup image

A new world for test automation

Join 100,000 testing & dev teams taking their web & mobile testing to new heights, using #1 FREE test automation platform, designed to help deliver quality at speed.
Get Started
FacebookLinkedInTwitterEmail