About some questions in the using

34 views
Skip to first unread message

tykuy...@gmail.com

unread,
Aug 3, 2017, 1:57:02 AM8/3/17
to Dynodroid
Hello,I am try to use DD,but when I do the "ant run",it return a null point exception

I search the source code and find that "adbBridge.getDevices();" just get null.
However I don‘t know why it is happened.
And I am also interested in the tool "acteve" that you write ,but there is not a user guide.
Could you help me?

Here is the log. Thank you!

xyr@ubuntu:~/tools/dyno-droid/dtd$ ant run
Buildfile: /home/xyr/tools/dyno-droid/dtd/build.xml

compile:
    [javac] /home/xyr/tools/dyno-droid/dtd/build.xml:11: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /home/xyr/tools/dyno-droid/dtd/build/classes

run:
     [java] INFO:Total Number of Test Profiles:1
     [java] INFO:Total Number of Threads scheduled:1
     [java] EXCEPTION: Stack Trace:
     [java] java.lang.NullPointerException
     [java] at edu.gatech.dynodroid.devHandler.ADevice.getFreeDevice(ADevice.java:52)
     [java] at edu.gatech.dynodroid.devHandler.DeviceEmulator.getFreeEmulator(DeviceEmulator.java:55)
     [java] at edu.gatech.dynodroid.master.TestProfileHandler.run(MainHarness.java:364)
     [java] at java.lang.Thread.run(Thread.java:745)
     [java] null
     [java] INFO:-----START RUN SUMMARY-----
     [java] INFO:ContactManager.apk:WidgetBasedTesting:RandomBiasBased:ContactManager.apk:/home/xyr/tools/dyno-droid/dtd/workingDir/ContactManager.apk_WBT_RandomBiasBased_10:100::Result:,Problem Occured..
     [java] INFO:-----END RUN SUMMARY-----
     [java] INFO:All Threads Completed Execution..Exiting
     [java] EXCEPTION: Stack Trace:
     [java] javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 587;
     [java]   nested exception is:
     [java] java.net.ConnectException: Connection refused
     [java] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
     [java] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
     [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] Caused by: java.net.ConnectException: Connection refused
     [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
     [java] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
     [java] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
     [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
     [java] at java.net.Socket.connect(Socket.java:579)
     [java] at java.net.Socket.connect(Socket.java:528)
     [java] at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
     [java] at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
     [java] at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
     [java] ... 4 more
     [java] Could not connect to SMTP host: smtp.gmail.com, port: 587

BUILD SUCCESSFUL
Total time: 29 seconds

Machiry Aravind Kumar

unread,
Aug 4, 2017, 1:03:45 PM8/4/17
to dyno...@googlegroups.com
Hi,

The user guide of Dynodroid is at https://machiry.github.io/files/dd_use.pdf

All details are in the document.
Could you please look into that and see if you missed any setup for emulator etc.?

-Aravind

--
You received this message because you are subscribed to the Google Groups "Dynodroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynodroid+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tykuy...@gmail.com

unread,
Aug 8, 2017, 3:04:58 AM8/8/17
to Dynodroid
Hello,

Firstly I should apologize for my poor English and maybe there are some wrong usage of words.

Then……I should say I have done the work follow the guide in the beginning.

I write the process that I install DD.And if you have spare time,could you help me?

Firstly is that the source in the guide can't be get.So I get the tools from the page: https://code.google.com/archive/p/dyno-droid/downloads

And I tried DD in a ubuntu virtual machine which with python 2.7 have been installed already.After that I download the sdk from the page in the guide and download the api10 and platform-tools without updating the tools

And the java7 and environment set in ~/.bashrc are also be done.

Then the problem happened,after I execute the .py, there is a hint that:

3)Add the text required in to textBoxInput files under the src folder of the app
The format of the file is: <uniqueid>:<textToBeEntered>

But I can't find this file under src folder or inside the folder.

After the app is put in the right folder, I tried "ant run" directly.However,it returns that "MethodProfilingStatus.ON" is illegal.
I tried to change it to "   ! MethodProfilingStatus.OFF  " and try ant again

This time the problem that I have said before happened.
"java.lang.NullPointerException" when execute the word adbBridge.getDevices()

I have even tried to create a new api10 emulator with ARM,but it also not work.
So I am very confued……I think maybe is because the textBoxInput files?

Could you help me if you are free?

With my sincerely thanks!


在 2017年8月5日星期六 UTC+8上午1:03:45,makrvcs写道:
To unsubscribe from this group and stop receiving emails from it, send an email to dynodroid+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages