AirtestProject / AirtestProject/Airtest

Airtest adb.exe runs code 200x faster than Python adb.exe.

Ouverte
#470 23 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
9.6k
Forks
1.5k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Python version: python3.7.2
AirtestIDE version: V1.2.0
Poco version: pocoui==1.0.76
Airtest version: airtest==1.0.27

**Describe the bug**
Airtest adb. exe runs test code 200x faster than Python's adb.exe. This means, people who visited this Airtest documentation might face this problem.

```https://airtest.netease.com/docs/en/3_faq/script_related_faqs.html```

![image](https://user-images.githubusercontent.com/19833754/61614792-2c9c7100-ac97-11e9-8140-5a17d71e9c4f.png)

The problem comes from running Airtest in Command Line Interface. I need to run Airtest using the Command Line Interface because I have a powershell script that manages and configures each game test to run in a specific order, and also goes to the next test if a test fails. I can't complete this if I use default python to run tests, tests will take too long.

**Storing 1000 Game Objects Operation**
Python's adb.exe : https://www.youtube.com/watch?v=SCfecqok8Ag&feature=youtu.be **Result : 23 Minutes**
Airtest's built-in adb.exe : https://www.youtube.com/watch?v=ipvnVGj9r40&feature=youtu.be **Result : Instant**

**To Reproduce**
Steps to reproduce the behavior:
1. Download ProjectForAirtestBug.rar
2. Extract ProjectForAirtestBug.rar
3. Open ForAirtestTeam.air using Airtest IDE
4. Open 1000ObjectsUnityProject using Windows
5. Connect to 1000ObjectsForAirtest window
6. Don't use custom python path, and run project code
7. Note how fast the code runs
8. After that, Use Python path provided with python download
![image](https://user-images.githubusercontent.com/19833754/61622940-5a3de600-aca8-11e9-8602-26773ca6cc94.png)
7. Run ForAirtestTeam.air project code
8. Notice how long it takes

**Expected behavior**
1) Documentation should show users how to run command line interface using Airtest's runner
2) Running airtest test in Command Line needs to be as fast as running test in IDE

Smartphone (please complete the following information):

Device: Pocophone F1
Android Version : Android 9 PKQ1.18076
**Additional context**
Add any other context about the problem here.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.