I can run the Robotium test, but I can’t debug it

I am testing apk for which I have no sources on my phone. I guaranteed that I have the same certificates as in the pharmacies test and in the app. I can run my tests perfectly from eclipse, but when I try to debug "Debug As", it seems that the eclipse eclipses the test run. In the progress bar below, I see "Launch: creating a source locator ...". I set breakpoints at the corresponding points, and nothing that I can see in the logcat output to suggest that a failure occurred during the testing process or during the application process. Any ideas on what might be the problem or how to explore further?

+2
source share
3 answers

I had similar problems.

The solution for me was that there could be only one instance of DDMS. For example, if I had the /ddms.bat tools, and at the same time an eclipse opened, then debugging did not work for me.

+2
source

I also posted on the same issue, and I figured it out. can't work like robotium debug junit test

So there are two requirements to make this work:

  • you need to set the AUT (App Under Test) setting in your workspace 2. AUT should be debuggable = true (manifest file)
  • My mistake was that since I wanted to debug the test, I did not think that I also needed the AUT project.
+1
source

For me, the solution was that I needed to check the display of my device. I realized that there is a dialogue with the question, but since this dialog box blocked the device, the test could not start ...

0
source

All Articles