mmcc007/sylph

port forwarding conflict in case of flutter along with appium bases test suite

Closed this issue · 1 comments

I am working on to run our flutter based application on device farm. The Smoke Test suite that we are using have both flutter and appium based test cases. When using flutter along with appium in our test suite, the port 4723 is causing a conflict. to enable appium for my test cases in device farm, I have upfront started appium server on default port 4723 before starting the application by modifying test_spec.yaml.

Appium REST http interface listener started on 0.0.0.0:4723

Now when port forward happened through 4723, the application is not responding-

Local port 4723 forwarded to observatory port 42063
......
Connecting to Flutter application at http://127.0.0.1:4723/ajveTCoR24M=/
[warning] FlutterDriver: It is taking an unusually long time to connect to the VM...
[warning] FlutterDriver: It is taking an unusually long time to connect to the VM...
.......
......
Terminated.

Is there a way I can use another port for forwarding and use 4723 for appium server only?

Used port (4724) other than the default port for appium and kept 4723 for adb forward. This worked for me.