We have issues with our Bitrise execution flow.
We have Android application and developed a workflow that installs and configures all the required dependencies for a solution with appium.
but running tests crash!
We are struggling this for a long time, but have no results yet,
As im not sure anymore if Bitrise is the good solution for us!
the first issue is with the device itself, normally, the device should start via our code;
in the line where we instantiate the AndroidDriver
(
androidDriver = new AndroidDriver(options);
)
for the iOS, this works, it starts a new emulator and installs all the appropriate apks that are required for Appium.
for Android however, no emulator starts, that’s why we included in the bitrise script the starting of the emulator before starting the tests.
However, we also need to “manually” download and install into the avd the appium settings apk
which is required for the communication between our tests → appium server → avd.
eventhough we make sure that the device is started, recorgnised, online,
the appium server is online and operational, while running the tests, randomly,
the communication with the appium server is lost which means all the rest of the tests from that point on will fail.
(ex stacktrace: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8200)