How to get appium server response back into testscript


Can someone help me with how to get Appium server response (200, 204, 500 etc) back into test script running on client side.

Appium (server) performs actions based on JSON wire protocol and accepts a JSON request payload and upon completeion of operation returns a JSON response back. I want to get the status from json response back from appium server into my test script for validation and assertion purpose.

Note: I am using Grid where my script runs locally and appium server runs on node which is different machine connected to mobile.

is it possible in appium to get the response code back from server?



1 Like