RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

signing issue with Version 2.4.1 #836

Closed hannesa2 closed 2 years ago

hannesa2 commented 8 years ago

Today I upgraded in Android Studio to Robotium Recorder 2.4.1 plugin (I've a valid license) But when I try to record a test with flavor Debug an error appear, ~/Robotium.log.txt show this

/Users/hannes/git/tracks/code/executorproject/gradlew -Dorg.gradle.daemon=true assembleDebugAndroidTest -u -b /Users/hannes/git/tracks/code/executorproject/build.gradle

with error

Keystore was tampered with, or password was incorrect but this seams not to be the error. When I look to generated (by Robotium) file

/Users/hannes/git/tracks/code/executorproject/build.gradle

  signingConfigs {
     debug {
          storeFile file('/Users/hannes/git/release-key.keystore')
     }

it has no information about password and alias ! In my original build.gradle

signingConfigs {
    debug {
        storePassword "android"
        keyPassword "android"
        keyAlias "androiddebugkey"
    }
    release {
        keyAlias "release"
        storeFile file('/Users/hannes/git/release-key.keystore')
        storePassword 'mypass'
        keyPassword 'mypass'
    }

So I see the bug that Robotium uses for flavor debug the wrong storeFile ! This happen with new version ! Btw, please show us a changelog !

renas commented 8 years ago

Thanks for reporting this. We have not made any changes that could break this. Probably this bug has existed for a while. We'll have a look at it.

On Tue, Jun 28, 2016 at 11:34 AM, hannesa2 notifications@github.com wrote:

Today I upgraded in Android Studio to Robotium Recorder 2.4.1 plugin (I've a valid license) But when I try to record a test with flavor Debug an error appear, ~/Robotium.log.txt show this

/Users/hannes/git/tracks/code/executorproject/gradlew -Dorg.gradle.daemon=true assembleDebugAndroidTest -u -b /Users/hannes/git/tracks/code/executorproject/build.gradle

with error

Keystore was tampered with, or password was incorrect but this seams not to be the error. When I look to generated (by Robotium) file

/Users/hannes/git/tracks/code/executorproject/build.gradle

signingConfigs { debug { storeFile file('/Users/hannes/git/release-key.keystore') }

it has no information about password and alias ! In my original build.gradle

signingConfigs { debug { storePassword "android" keyPassword "android" keyAlias "androiddebugkey" } release { keyAlias "release" storeFile file('/Users/hannes/git/release-key.keystore') storePassword 'mypass' keyPassword 'mypass' }

So I see the bug that Robotium uses for flavor debug the wrong storeFile ! This happen with new version ! Btw, please show us a changelog !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RobotiumTech/robotium/issues/836, or mute the thread https://github.com/notifications/unsubscribe/AAKGpfQXhOBXoe30SlqipB_VS3uVQZnbks5qQWkrgaJpZM4JAZkL .