How to Configure Javadoc for Robotium Library

Why we need to configure the robotium Javadoc? With the JavaDoc configured, we could easily get the description hint of a variable,class,function of the third-party Robotium library during coding. Let's check following screenshots on the different of with/without Robotium Javadoc configured.

Without Javadoc Configured:

How to Configure Javadoc for Robotium Library_第1张图片

With Javadoc Configured

How to Configure Javadoc for Robotium Library_第2张图片

To configure the Robotium JavaDoc, first you should make sure that you've the javadoc downloaded, if not, please download it according to your Robotium library version.

Then, you should make sure that you did add your Robotium Library into your test project as an external JAR rather than as an "Android Private Libraries". Following are the ways help you to check which it is.

Robotium Library as "Android Private Libraries"

How to Configure Javadoc for Robotium Library_第3张图片

To check the project properties you would see that the JavaDoc properties of the library is not configurable.

How to Configure Javadoc for Robotium Library_第4张图片

Robotium Library as External JAR

How to Configure Javadoc for Robotium Library_第5张图片
Check that the JavaDoc property of the Robotium Library is editable
How to Configure Javadoc for Robotium Library_第6张图片

Since that using Robotium Library as 'Android Private Library" could not add JavaDoc, following we would illustrate the way on how to add Robotium JavaDoc to the Robotium Library, assuming which's been added to the test project as an External 
Step 1: Choose "Robotium-solo-xxx.jar>Javadoc locationL(None)" and then click on the Edit button as following screenshot shows.
How to Configure Javadoc for Robotium Library_第7张图片
Step 2: Check the "Javadoc in archive" option and Browse to select the Robotium Javadoc file on your file system, then "OK" to save.

Step 3: Click on the "OK" button to save the changes.
How to Configure Javadoc for Robotium Library_第8张图片

After saving the changes, try move cursor on the Robotum functions/Class to check whether it take effects.

------------------------------------------------------------The End-------------------------------------------------

你可能感兴趣的:(android,测试,javadoc,手机)