qqdown / dyno-droid

Automatically exported from code.google.com/p/dyno-droid
0 stars 0 forks source link

InvalidAttributesException: Provided Data for App Instrumentation is invalid #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy the source code folder of AppSwitch 
(https://f-droid.org/repository/browse/?fdfilter=ch.blinken&fdid=ch.blinkenlight
s.android.apnswitch) into the apps folder.
2. Run "ant run"

What is the expected output? What do you see instead?
I expected coverage results as in other apps.

I see:
run:
     [java] INFO:Total Number of Test Profiles:1
     [java] INFO:Total Number of Threads scheduled:1
     [java] INFO:Starting to Run Emulator:emulator -avd emu1 -verbose -scale 0.70 -show-kernel -kernel /home/paulodebarros/repository/dyno-droid-read-only/deploy/dynodroidsetup/kernelfiles/zImage -system /home/paulodebarros/repository/dyno-droid-read-only/deploy/dynodroidsetup/customimage/system.img -ramdisk /home/paulodebarros/repository/dyno-droid-read-only/deploy/dynodroidsetup/customimage/ramdisk.img
     [java] INFO:Running_M3:adb -s emulator-5554 logcat
     [java] INFO:Created New DeviceEmulator Object
     [java] INFO:ch.blinkenlights.android.apnswitch:Got Device:emulator-5554
     [java] ERROR:Unable to get Main Activity from AndroidManifest.xml
     [java] EXCEPTION: Stack Trace:
     [java] javax.naming.directory.InvalidAttributesException: Provided Data for App Instrumentation is invalid..refer log for more details
     [java]     at edu.gatech.dynodroid.appHandler.AppInstrumenter.<init>(AppInstrumenter.java:66)
     [java]     at edu.gatech.dynodroid.appHandler.AppSrcHandler.<init>(AppSrcHandler.java:49)
     [java]     at edu.gatech.dynodroid.master.TestProfileHandler.run(MainHarness.java:373)
     [java]     at java.lang.Thread.run(Thread.java:745)
     [java] Provided Data for App Instrumentation is invalid..refer log for more details
     [java] INFO:In destroyDevice
     [java] INFO:Got Lock
     [java] INFO:Before Trying to delete
     [java] INFO:Trying to delete:/home/paulodebarros/.android/avd/emu1.avd
     [java] INFO:Trying to delete:/home/paulodebarros/.android/avd/emu1.ini
     [java] INFO:Emulator :emulator-5554 destroyed sucessfully
     [java] INFO:-----START RUN SUMMARY-----
     [java] INFO:ch.blinkenlights.android.apnswitch:WidgetBasedTesting:RandomBiasBased:ch.blinkenlights.android.apnswitch:/home/paulodebarros/repository/dyno-droid-read-only/deploy/workingDir/ch.blinkenlights.android.apnswitch_WBT_RandomBiasBased_100:100::Result:,Problem Occured..
     [java] INFO:-----END RUN SUMMARY-----
     [java] INFO:All Threads Completed Execution..Exiting
     [java] EXCEPTION: Stack Trace:
     [java] javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
     [java] 535 5.7.8  https://support.google.com/mail/answer/14257 b16sm12901005qga.48 - gsmtp
     [java]
     [java]     at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823)
     [java]     at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)
     [java]     at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673)
     [java]     at javax.mail.Service.connect(Service.java:295)
     [java]     at edu.gatech.dynodroid.reporting.TestProfileReporting.sendCompletionMail(TestProfileReporting.java:44)
     [java]     at edu.gatech.dynodroid.master.MainHarness.main(MainHarness.java:103)
     [java] 535-5.7.8 Username and Password not accepted. Learn more at
     [java] 535 5.7.8  https://support.google.com/mail/answer/14257 b16sm12901005qga.48 - gsmtp
     [java]

The only file generated was CompleteTestProfile.log, and its output can be 
found in part of the log above.

What version of the product are you using? On what operating system?
Trunk version of Dyno-droid. Ubuntu 12.04 64 bits.

Please provide any additional information below.
dynodroid.properties file is attached.

Original issue reported on code.google.com by pbsf...@gmail.com on 21 Jul 2015 at 3:56

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

It seems that you're trying to pass the app source to dynodroid. 

I've sometimes found the instrumentation code problematic as well. An easy fix 
though it to make these changes manually (or with a simple script). 
- Create  EmmaInstrument package and copy the BroadcastReceiver & 
InstrumentedActivity into it.
- Change the AndroidManifest to add the relevant XML.
You can find these in all androtest subjects.

Once you've done this, build the debug apk and pass that to Dyno-droid instead.

~Shauvik

Original comment by shau...@gmail.com on 22 Jul 2015 at 10:01