Thursday, April 17, 2014

android project documents do not have a main function


Andrews wrote in the development of tools, written in java file directly main method tests found no way to run, each run also generates a log file, but to rebuild a java project to replicate inside the test. Solving any good way to do
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Seemingly no good way. I am also a new java project, in which the test, with lz with seeking solutions to this problem
Reply:
cited a floor w304970865rui reply:
seemingly no good way. I am also a new java project, in which the test, with lz with seeking solutions to this problem

Amount, would not it, ask an expert
Reply:
Direct discharge activity in the test chant
Reply:
Do not understand, why bother to go inside the main test?
Since it is a utility class, then in your android project where to find the entrance to call your method to test it.
Reply:
references, 4th Floor lyj7015 reply:
not understand why have to go inside to the main test?
Since it is a utility class, then in your android project where to find the entrance to call your method to test it.

For example, I wrote a string of helper classes, you need to use in the activity, and I want to test under the written results, but can not by adding the main method in this class file to test
Reply:
reference to the third floor yinke22222 reply:
direct discharge activity in the test chant

I mean, this is a separate java class, useless to Andrews package, do not reinstall Andrews each virtual machine to run it again to see, but with the java project under the same method of measuring output alone is correct.
Reply:
Amount, nobody encountered this situation?
Reply:
Android is an integrated unit testing above, I hope to help you
http://blog.csdn.net/tibib/article/details/6993608
Reply:
reference to the 6th floor xiaozhubisheng reply:
reference to the third floor yinke22222 reply: direct discharge activity in the test chant
I mean, this is a separate java class, useless to Andrews package, do not reinstall Andrews each virtual machine to run it again to see, but with the java project under the same method of measuring output alone is correct.



No android package? I did not write your java class in android project in?
Reply:
Since useless android class, then you can build another one java project, written inside the main test is not finished.
Reply:
You can create one specifically for Android directly test engineering for the project! You can specify test methods!
Reply:
New - "project-" Android Project-"android test project
Reply:
references, 5th Floor xiaozhubisheng reply:
references, 4th Floor lyj7015 reply:
Do not understand, why bother to go inside the main test?
Since it is a utility class, then in your android project where to find the entrance to call your method to test it.
For example, I wrote a string of helper classes, you need to use in the activity, and I want to test under the written results, but can not by adding the main method in this class file to test


Why must main to test? - Call the method in activity on it.
Many testing methods, provided upstairs Unit 4 test is also available.

Want to test debugging, as long as the program can enter into this method is OK, means to see their habits
Reply:
The reply was deleted administrator at 2012-11-30 08:42:16

Reply:
reference to the 13th floor lyj7015 reply:
references, 5th Floor xiaozhubisheng reply: Quote, 4th Floor lyj7015 reply:
Do not understand, why bother to go inside the main test?
Since it is a utility class, then in your android project where to find the entrance to call your method to test it.
For example, I wrote a string of helper classes, you need to use in the activity, and I want to test under the written results, but can not by adding the main method in this class file to test

Why ......


+1
Reply:
Why not AndroidTestCase? What main function
Reply:
reference to the 16th floor Anyhascome reply:
Why not AndroidTestCase? What main function

Not used
Reply:
reference to the 13th floor lyj7015 reply:
references, 5th Floor xiaozhubisheng reply: Quote, 4th Floor lyj7015 reply:
Do not understand, why bother to go inside the main test?
Since it is a utility class, then in your android project where to find the entrance to call your method to test it.
For example, I wrote a string of helper classes, you need to use in the activity, and I want to test under the written results, but can not by adding the main method in this class file to test

Why ......

If the activity test, each had to re-compile and install into the virtual machine. I want to be like that when you write java program, write directly to look after a main function to run the output is correct
Reply:
Inheritance ActivityInstrumentationTestCase2 write a test class
You can see http://www.51testing.com/html/71/n-197671-3.html
Reply:
I also want to. This class how to test slightly. . . As to why that really want to say in the main test stoned him. You Tube these people certainly have this demand, the most annoying people in this way to ask the questioner

No comments:

Post a Comment