I am writing a mobile test case using Appium. I reach a state in the app where I am forced to call APIs to continue testing the full cycle. Therefore, I have decided to use RestAssured library to call those APIs and assert between each API call. However, when I call the APIs, the Mobile App almost always doesn’t not respond in the front-end to those call, but the APIs affect the back-end correctly. When the process is done without the automation, it works perfectly fine. For example,
I have 3 stages in the mobile app “Preparing” “Ready” and “Done”, and each stage is reached through the backend API call. I simulate this call using the RestAssured calls. I call Preparing, Ready and Done APIs. When the automation function is finalised, the front-end is not affected by it. And when I go back to the home screen, it shows that the stages are “Done” without being able to assert the changes in the Stages screen.
I hope I made this clear in my example. Might this issue be from the automation side or could it be from the App’s code itself? If anyone has faced any issue related to mine please feel free to share your thoughts and suggestions on it.