Ruby Android APK Testing - Error when running cucumber tests

66 views
Skip to first unread message

Eyong Egbe

unread,
Aug 22, 2014, 11:16:50 AM8/22/14
to cucumber-and-c.
Hi,
I have followed all the instructions on the Moble you, Moble Me chapter but I continue getting this error when I try to run cucumber tests for an apk. Please help:

This is what I see in my console on rubymine:

********************************
C:\Ruby193\bin\ruby.exe -EUTF-8 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Ruby193/bin/bin/cucumber C:/Users/legbe/android_flightsearch/features/main_sreen.feature --format Teamcity::Cucumber::Formatter --expand --color -r features
Testing started at 16:00 ...

ADB::ADBError: java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{com.cf.flightsearch.brazenhead/com.leandog.brazenhead.BrazenheadInstrumentation} from pid=2050, uid=2050 not allowed because package com.cf.flightsearch.brazenhead does not have a signature matching the target com.cf.flightsearch
at android.os.Parcel.readException(Parcel.java:1465)
at android.os.Parcel.readException(Parcel.java:1419)
at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:3188)
at com.android.commands.am.Am.runInstrument(Am.java:864)
at com.android.commands.am.Am.onRun(Am.java:282)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:76)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
at dalvik.system.NativeStart.main(Native Method)

C:/Ruby193/bin/gems/ADB-0.5.6/lib/ADB/instrumentation.rb:22:in `instrument'
C:/Ruby193/bin/gems/brazenhead-0.4.8/lib/brazenhead/server.rb:16:in `start'
C:/Ruby193/bin/gems/gametel-0.8/lib/gametel.rb:39:in `start'
C:/Users/legbe/android_flightsearch/features/support/env.rb:11:in `Before'
Failed to send the command commands=[{"name":"waitForActivity","arguments":["MainActivity"]}] 20 times...

Errno::ECONNRESET: An existing connection was forcibly closed by the remote host.
./features/step_definitions/main_screen_steps.rb:2:in `/^I am looking at the main activity$/'
C:\Users\legbe\android_flightsearch\features\main_sreen.feature:4:in `When I am looking at the main activity'

Skipped step1 scenario (1 failed)
2 steps (1 failed, 1 skipped)
0m38.259s

Process finished with exit code 1

Reply all
Reply to author
Forward
0 new messages