wtchoi / SwiftHand

Automated Testing Tool for Android Applications.
Other
60 stars 27 forks source link

java.lang.UnsupportedClassVersionError: edu/berkeley/wtchoi/gv/GraphViz #4

Closed kavitadixit closed 9 years ago

kavitadixit commented 11 years ago

Hi,

I amtrying to run this tool however getting this java.lang.UnsupportedClassVersionError: edu/berkeley/wtchoi/gv/GraphViz error.I AM USING JDK 1.6. please let me know if i need to do any changes.

Thanks, Kavita

wtchoi commented 11 years ago

Hi Kavita, Thanks for using our tool.

Would you mind to provide more information? Knowing operating system information and the exact JDK version will be really helpful.

Also, I am currently involved in another project. I'll try to solve the problem this weekend and acknowledge you.

Best, Wontae Choi

On Sep 4, 2013, at 4:47 AM, kavitadixit notifications@github.com wrote:

Hi,

I amtrying to run this tool however getting this java.lang.UnsupportedClassVersionError: edu/berkeley/wtchoi/gv/GraphViz error.I AM USING JDK 1.6. please let me know if i need to do any changes.

Thanks, Kavita

— Reply to this email directly or view it on GitHub.

kavitadixit commented 11 years ago

Hi Wontae,

Operating system is windows XP and I am using jdk1.6.

Thanks, Kavita

kavitadixit commented 11 years ago

Hi Wontae Choi,

I have resolved that error. I have few queries: I need to record user events for example i clicked settings->Display->Clock on mobile. so i should get a graph or data that shows me this navigation information that i had clicked settings than i clicked display etc.... Can swifthand handles this kind of recording?

Looking forward for your reply. Thanks, KD

wtchoi commented 11 years ago

Hi KD, Good to hear that you resolved the previous issue.

Swifthand creates dot file (/.tree.dot) which shows a set of tried input sequences in the tree form. Edges represent an input event. Nodes represent a program state. Circle nodes are a visited program state. Square nodes are a program state yet to be visited.

Best, Wontae Choi

On Sep 13, 2013, at 1:27 AM, kavitadixit notifications@github.com wrote:

Hi Wontae Choi,

I have resolved that error. I have few queries: I need to record user events for example i clicked settings->Display->Clock on mobile. so i should get a graph or data that shows me this navigation information that i had clicked settings than i clicked display etc.... Can swifthand handles this kind of recording?

Looking forward for your reply. Thanks, KD

— Reply to this email directly or view it on GitHub.

kavitadixit commented 11 years ago

Thanks for response. I am running this tool on samsung galaxy s4 and getting this as content of org.totschnig.myexpenses_0.tree

digraph G { 1 [7][color=blue, shape=circle]; } I am not able to understand this content. Can this tool be usefull for preinstalled application on mobile like contacts?

Regards, KD

kavitadixit commented 11 years ago

Also when i run the tool,i get following exceptions: get ChimpChat instance get ADB Sep 14, 2013 2:18:22 PM com.android.chimpchat.ChimpManager sendMonkeyEventAndGetResponse INFO: Monkey Command: wake. Device Connected Sep 14, 2013 2:18:22 PM com.android.chimpchat.ChimpManager sendMonkeyEventAndGetResponse INFO: Monkey Command: wake. Device Waked Target Application Initialized TEST START : es.senselesssolutions.gpl.weightchart_0 02:18:23 E/Device: Error during Sync: Local path doesn't exist. Sep 14, 2013 2:18:23 PM com.android.chimpchat.adb.AdbChimpDevice installPackage SEVERE: Error installing package: weight.modified.apk com.android.ddmlib.InstallException: Local path doesn't exist. at com.android.ddmlib.Device.installPackage(Device.java:643) at com.android.chimpchat.adb.AdbChimpDevice.installPackage(AdbChimpDevice.java:289) at edu.berkeley.wtchoi.swift.driver.Device.installPackage(Device.java:192) at edu.berkeley.wtchoi.swift.driver.Driver.cleanStartApp(Driver.java:115) at edu.berkeley.wtchoi.swift.driver.Driver.startApp(Driver.java:122) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.init(TargetApplication.java:123) at edu.berkeley.wtchoi.swift.testing.Testing.run(Testing.java:75) at edu.berkeley.wtchoi.swift.testing.android.runners.TestRunner.runTesting(TestRunner.java:117) at edu.berkeley.wtchoi.swift.CommandLine.main(CommandLine.java:151) Caused by: com.android.ddmlib.SyncException: Local path doesn't exist. at com.android.ddmlib.SyncService.pushFile(SyncService.java:371) at com.android.ddmlib.Device.syncPackageToDevice(Device.java:663) at com.android.ddmlib.Device.installPackage(Device.java:632) ... 8 more

send wake up! send wake up! wait 1trial. Connected! go Waiting for initial information report Waiting for application to be stable Application Initiated Testing option sent RESTART: Restart by reinstall 02:18:33 E/Device: Error during Sync: Local path doesn't exist. send wake up! Sep 14, 2013 2:18:33 PM com.android.chimpchat.adb.AdbChimpDevice installPackage SEVERE: Error installing package: weight.modified.apk com.android.ddmlib.InstallException: Local path doesn't exist. at com.android.ddmlib.Device.installPackage(Device.java:643) at com.android.chimpchat.adb.AdbChimpDevice.installPackage(AdbChimpDevice.java:289) at edu.berkeley.wtchoi.swift.driver.Device.installPackage(Device.java:192) at edu.berkeley.wtchoi.swift.driver.Driver.cleanStartApp(Driver.java:115) at edu.berkeley.wtchoi.swift.driver.Driver.restartApp(Driver.java:282) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.execute(TargetApplication.java:178) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.execute(TargetApplication.java:1) at edu.berkeley.wtchoi.swift.testing.Testing.doSomething(Testing.java:115) at edu.berkeley.wtchoi.swift.testing.Testing.run(Testing.java:84) at edu.berkeley.wtchoi.swift.testing.android.runners.TestRunner.runTesting(TestRunner.java:117) at edu.berkeley.wtchoi.swift.CommandLine.main(CommandLine.java:151) Caused by: com.android.ddmlib.SyncException: Local path doesn't exist. at com.android.ddmlib.SyncService.pushFile(SyncService.java:371) at com.android.ddmlib.Device.syncPackageToDevice(Device.java:663) at com.android.ddmlib.Device.installPackage(Device.java:632) ... 10 more

send wake up! wait 1trial. 2trial. 3trial. 4trial. 5trial. java.lang.RuntimeException: Connection timeout! at edu.berkeley.wtchoi.util.TcpChannel.connectToServer(TcpChannel.java:121) at edu.berkeley.wtchoi.util.TcpChannel.connect(TcpChannel.java:49) at edu.berkeley.wtchoi.swift.driver.Driver.initiateApp(Driver.java:164) at edu.berkeley.wtchoi.swift.driver.Driver.restartApp(Driver.java:283) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.execute(TargetApplication.java:178) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.execute(TargetApplication.java:1) at edu.berkeley.wtchoi.swift.testing.Testing.doSomething(Testing.java:115) at edu.berkeley.wtchoi.swift.testing.Testing.run(Testing.java:84) at edu.berkeley.wtchoi.swift.testing.android.runners.TestRunner.runTesting(TestRunner.java:117) at edu.berkeley.wtchoi.swift.CommandLine.main(CommandLine.java:151) Error! java.lang.RuntimeException: Cannot connect to server at edu.berkeley.wtchoi.util.TcpChannel.connectToServer(TcpChannel.java:126) at edu.berkeley.wtchoi.util.TcpChannel.connect(TcpChannel.java:49) at edu.berkeley.wtchoi.swift.driver.Driver.initiateApp(Driver.java:164) at edu.berkeley.wtchoi.swift.driver.Driver.restartApp(Driver.java:283) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.execute(TargetApplication.java:178) at edu.berkeley.wtchoi.swift.testing.android.TargetApplication.execute(TargetApplication.java:1) at edu.berkeley.wtchoi.swift.testing.Testing.doSomething(Testing.java:115) at edu.berkeley.wtchoi.swift.testing.Testing.run(Testing.java:84) at edu.berkeley.wtchoi.swift.testing.android.runners.TestRunner.runTesting(TestRunner.java:117) at edu.berkeley.wtchoi.swift.CommandLine.main(CommandLine.java:151)

Please help in running this tool..... :)

wtchoi commented 11 years ago
  1. You need Graphviz tool to render a dot file to an image. 'dot' file is a textual representation of graph like image.
  2. I am afraid that the current version on the repository(back-end only) only supprots apps destributed with the tool. Note that the goal of the current version is just to demonstrate the idea. We have a paper in upcomming OOPSLA'13 conference. You can understand more about the idea and the tool from the paper.

The full version of the tool will include the front-end and it will be able to handle an arbitary app if you have the apk file of the app. The front-end source code is already included in the repository. The missing part is nice commandline intetface.

Best, Wontae Choi

On Sep 14, 2013, at 12:47 AM, kavitadixit notifications@github.com wrote:

Thanks for response. I am running this tool on samsung galaxy s4 and getting this as content of org.totschnig.myexpenses_0.tree

digraph G { 1 [7][color=blue, shape=circle]; } I am not able to understand this content. Can this tool be usefull for preinstalled application on mobile like contacts?

Regards, KD

— Reply to this email directly or view it on GitHub.

kavitadixit commented 11 years ago

I am running swifthand application for myexpense apk and getting 2 file i.e. intermediate.graph.dot and intermediate.tree.dot. content of intermediate.graph.dot is: digraph G { 1 -> 6 [label="DS((25,246),(25,509),ScrollView)", color=black, fontsize=10]; 11567834223 [label="MENU\nBACK\n(240,588,Button)\n(455,588,Button)\nUS((25,246),(25,509),ScrollView)", fontsize=10, fontcolor=gray, color=gray, shape=rectangle]; 1 -> 11567834223 [color=gray]; 1[color=blue, shape=circle]; 61567834223 [label="MENU\n(464,378,Button)\n(464,450,Button)\n(218,794,Button)\n(372,794,Button)\nDS((1,77),(1,713),ScrollView)\nUS((1,77),(1,713),ScrollView)\nE(464,162)android.widget.EditTextFT\nE(464,234)android.widget.EditText\nE(464,306)android.widget.EditText\nTE(363,378)android.widget.AutoCompleteTextView", fontsize=10, fontcolor=gray, color=gray, shape=rectangle]; 6 -> 61567834223 [color=gray]; 6[color=blue, shape=circle];

I have Graphviz jar. Could you please let me know how to use Graphviz tool to get image?

}

chunrong commented 9 years ago

Hi, could you show me how to compile the front end. Thanks.

wtchoi commented 9 years ago

The front end compilation script is now available.