-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Appium-Android] Teardown taking longer time due to getting huge "bugreport" log #178
Comments
Thanks for reviewing it, I guess that your proposal sounds good, so I will implemented and notify you. |
rgonalo
added a commit
that referenced
this issue
Aug 30, 2020
rgonalo
added a commit
that referenced
this issue
Aug 30, 2020
rgonalo
added a commit
that referenced
this issue
Aug 30, 2020
rgonalo
added a commit
that referenced
this issue
Aug 30, 2020
rgonalo
added a commit
that referenced
this issue
Aug 31, 2020
1.7.2 version is already published with this feature. Now log types can be defined in .cfg file:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Problem
Given my test is failing, then my test runner session is freeze some minutes before execution aborted, I'm debugging the codes find out that as part of teardown process toolium will automatically getting log (event not seeing config setting, since
toolium.driver_wrappers_pool.DriverWrappersPool.save_all_webdriver_logs
conditionif driver_wrapper.config.getboolean_optional('Server', 'logs_enabled') or not test_passed:
always return True for failing test)It impacted in getting big data of
bugreport
, here are the process in my appium server:[HTTP] --> POST /wd/hub/session/0d78ddf2-16a3-4796-a42a-1265b9bf4a47/log [HTTP] {"type":"bugreport"} [debug] [W3C (0d78ddf2)] Calling AppiumDriver.getLog() with args: ["bugreport","0d78ddf2-16a3-4796-a42a-1265b9bf4a47"] [debug] [BaseDriver] Retrieving 'bugreport' logs [debug] [BaseDriver] Retrieving supported log types [debug] [ADB] Running '/Users/fachrulch/Library/Android/sdk/platform-tools/adb -P 5037 -s 520021f0fec984c1 bugreport' [debug] [W3C (0d78ddf2)] Responding to client with driver.getLog() result: [{"timestamp":1597125881669,"level":"ALL","message":"/data/user_de/0/com.android.shell/files/bugreports/bugreport-2020-08-11-13-03-00.zip: 1 file pulled. 31.1 MB/s (7403500 bytes in 0.227s)"}] [HTTP] <-- POST /wd/hub/session/0d78ddf2-16a3-4796-a42a-1265b9bf4a47/log 200 103499 ms - 202 [HTTP]
What I did
adb logcat -c
before test run to make all log clear and getting the log will much become faster, but apparently this command not clearingbugreport
, getting bugreport is still huge (31 MB in myPossible solution
I'm thinking it will be good if:
selenium.webdriver.remote.webdriver.WebDriver.log_types
in toolium.utils.Utils.save_webdriver_logs)Thank you
The text was updated successfully, but these errors were encountered: