appium / appium-espresso-driver

Espresso integration for Appium
Apache License 2.0
191 stars 75 forks source link

Windows: keytool command fails on extra escaping for keystore password #757

Open headsvk opened 2 years ago

headsvk commented 2 years ago

Issue: Running Appium tests fails with appium:keystorePassword = "START&END" property fails on keytool command:

Encountered internal error running command: A new session could not be created.
Details: Cannot get the hash of 'C:\\...\\keystore.jks' keystore.
Original error: Command 'C:\\...\\keytool.exe -v -list -alias myalias -keystore C:\\...\\keystore.jks -storepass '"START&END"'' exited with code 1.

Expected: Keytool command is invoked with -storepass "START&END" argument without the extra single quotes shown in the error message.

Environment: Appium v2.0.0-beta.25 Espresso driver 2.1.1 OS Windows

Related issue #752

KazuCocoa commented 2 years ago

appium-adb 9.2.0 has the change. You can use it by building this repository on your local. (current released ones may have 9.1.0 for the appium-adb)

headsvk commented 2 years ago

Awesome. I didn't manage to build this repo in a way that Appium would recognize it, worked last time 🤷

I'll try it out when it's released.