How to Configure Javadoc for RoboLibrary

来源:互联网 发布:java精简版 编辑:程序博客网 时间:2024/05/18 02:20

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:


With Javadoc Configured


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"


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


Robotium Library as External JAR


Check that the JavaDoc property of the Robotium Library is editable


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.

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.


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

------------------------------------------------------------The End-------------------------------------------------
0 0
原创粉丝点击