Feri73 / deep-gui

Deep-GUI is a tool for generating intelligent inputs to test UI-based applications, such as Android or web applications.
GNU General Public License v3.0
13 stars 4 forks source link

What is the purpose of ./clone_avd.sh tester_ref collector_ref #9

Open RichardHoOoOo opened 2 years ago

RichardHoOoOo commented 2 years ago

Hi, I am reading the scripts under /scripts and trying to understand them.

In the 1st subsection of Android Experiments (Monkey++) in the README, we need to create an emulator by

cd scripts
./create_tester_ref
./clone_avd.sh tester_ref collector_ref

May I ask what is the purpose of the 3rd line? In particular, why we need to clone an avd from tester_ref to collector_ref? If we only use the pre-trained model, is it necessary to "clone" the avd?

RichardHoOoOo commented 2 years ago

Sorry I have another question. I think I can understand all the scripts under /scripts. Basically, the Android SDK needs to be put under the user's home directory in order to make many commands (e.g., adb, aapt, emulator, etc.) work. May I ask can I change the command paths in these scripts to make them point to the path of my SDK if the SDK is not put under the home directory? For example, I may change ~/android-sdk/tools/bin/avdmanager to <my_sdk_root>/tools/bin/avdmanager. I think I am confident to adapt the scripts under /scripts, but I am not sure if the change of path affect other parts of the tool (e.g., python scripts under /src, the pre-trained model, monkey.jar, etc.). Can you give me some advise? Thanks in advance!

Feri73 commented 2 years ago

Hey

So the clone from tester to controller is probably not necessary. I just looked at it and I think I included that line by mistake (but honestly I can't be sure because it's been a long time). For the sdk location, I think if you change the path to all these function calls AND also change the path in the config files you must be good to go. I believe the reason I didn't do it is that it was a lot of work :D If you change it and it works, maybe you can submit a pull request :?

RichardHoOoOo commented 2 years ago

Hi, thanks for your prompt reply! I will see whether the modification will work or not. Thanks again.