天天看点

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

With Javadoc Configured

How to Configure Javadoc for Robotium Library

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

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

Robotium Library as External JAR

How to Configure Javadoc for Robotium Library

Check that the JavaDoc property of the Robotium Library is editable

How to Configure Javadoc for Robotium Library

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

Step 2: Check the "Javadoc in archive" option and Browse to select the Robotium Javadoc file on your file system, then "OK" to save.

How to Configure Javadoc for Robotium Library

Step 3: Click on the "OK" button to save the changes.

How to Configure Javadoc for Robotium Library

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

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