Java-client: Trying to set appium proxy

Created on 27 Mar 2018  路  9Comments  路  Source: appium/java-client

Description

We are trying to set a proxy to launch appium tests using httpCommandExecutor and we have an issue.
httpCommandExecutor seems to work not correctly (same for appiumCommandExecutor).

Without httpCommandExecutor the test works correctly.

Environment

  • appium java client 5.0.4:
  • Appium v1.6.5 (Desktop)
  • Windows 10
  • Node.js v6.11.5
  • Android 4.4:
  • Android Studio:

Code To Reproduce Issue

Simplified code :

capabilities are correctly defined in the code with following values

image

https://gist.github.com/ryltar/002f7021077297bb82d48ca0b795b448

Exception stacktraces

https://gist.github.com/ryltar/7e7372540a6c1ed568bf69d815d80230

org.openqa.selenium.UnsupportedCommandException: getSession

Link to Appium logs

https://gist.github.com/ryltar/4d039fcca29ec46752ca6bbe16b5076b

bug

All 9 comments

@ryltar can you please try with latest appium server and java-client

I tried with appium server 1.7.2 and java-client 6.0.0-BETA5 and i have the same behavior
I update the code to be more understandable

@ryltar try in latest appium server which is 1.8.0

@SrinivasanTarget i tried with the latest appium server (1.8.0), and the problem is still present

Error message : org.openqa.selenium.UnsupportedCommandException: getSession

Can you try latest version of client and server beta please?

@ryltar
To avoid it preconfigured HttpCommandExecutor with all Appium specific commands should be used. Commands are available in io.appium.java_client.MobileCommand

HttpCommandExecutor executor = new HttpCommandExecutor(MobileCommand.commandRepository, url);

@ryltar
To avoid it preconfigured HttpCommandExecutor with all Appium specific commands should be used. Commands are available in io.appium.java_client.MobileCommand

HttpCommandExecutor executor = new HttpCommandExecutor(MobileCommand.commandRepository, url);

I have tried this, But getting the same error. Any help?

Did anyone set to install a proxy for appium?

Was this page helpful?
0 / 5 - 0 ratings