anlalalu / Q-testing

22 stars 7 forks source link

Non deterministic behavior at startup #5

Open H2SO4T opened 3 years ago

H2SO4T commented 3 years ago

When the program is launched with the command: ./Q-testing/main -r CONF.txt it usually ends reporting the exception: Cannot open self /home/se_non_bestemmio_guarda/Q-testing/Q-testing/main[�� or archive /home/se_non_bestemmio_guarda/Q-testing/Q-testing/main[��.pkg

After many trials it seems to startup correctly. Please consider to release the source code, at the time of writing the tool is not useful.

H2SO4T commented 3 years ago

Just to be clear: Ubuntu 16.04, python 2.7, Android 4.4

totoR13 commented 3 years ago

I have the same problem. Could you provide more details?

Thank you

RichardHoOoOo commented 3 years ago

I also have the same problem. Sometimes it requires less than 10 trials, sometime more than 20 trials.

xixiAndpipi commented 3 years ago

We have updated our Q-testing, try it again, and if the problem still occurs please contact us as soon.

RichardHoOoOo commented 3 years ago

@destinyfucker Hi, the problem has been fixed but the fix induces other errors...

First, UiAutomator becomes unstable. The error "UNKNOWN uiautomator dump error" occurs every time I run the tool. But interesting, it disappears if I ran the old-version tool first, then ran the new-version tool.

Second, sometimes the tool complains the output folder is not empty, or the output does not exist. Sometimes it can work if the output folder is not empty. I am very confused about what I have to prepare before running the tool.

xixiAndpipi commented 3 years ago

For the first problem, check if the version of your uiautomator is 0.3.6? If yes, uninstall app ''uiautomator" and "com.github.uiautomator.test" in the AVD, and retry Q-testing. For the second problem, Q-testing will clean the output folder every time. However, we have never met errors as 'output does not exist'. Would you please tell us your enviroment ?