RobotiumTech / robotium

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

Can not launch testcases when apk is encrypted #733

Closed renas closed 9 years ago

renas commented 9 years ago

From andrew...@126.com on February 02, 2015 00:36:54

The dex in apk is encrypted into DAT to protect from decompiling,and then testcases can not be launched.

So why this happened? And what is the principle of running robotium testcases?

Hope someone can help me , much thanks!

Original issue: http://code.google.com/p/robotium/issues/detail?id=654

renas commented 9 years ago

From renasr...@gmail.com on February 02, 2015 09:06:29

Robotium does not launch the test cases. It's Junit that does that. Unfortunately there is nothing we can do about this from our side.

Status: Invalid
Owner: renasr...@gmail.com

renas commented 9 years ago

From andrew...@126.com on February 02, 2015 17:52:43

Sorry for my incorrect description. The test cases can be launched but it will raise RuntimeException:

java.lang.RuntimeException: Could not find test class. Class: XXX.BaseTest

So I wonder maybe it is the Encrypted Dex that stop robotium.

Actually I want to know how can I run autotest when the dex is encrypted into DAT to protect from decompiling?