Test Android làm sao để bắt được log crash của app?
Nếu test trên android mà muốn lấy log thì làm theo cách sau
trong console nhập lệnh: adb logcat >tenfile.txt
Sau đó nhấn Ctr+C
File nó lưu trữ ở thư mục của SDK
hoặc
Dùng Eclipse, thì có cái Error log cũng xem được crash log.
Thanks Gim và Vũ
Tham khảo thêm cách lấy log crash của app trên iOS
Test Android làm sao để bắt được log crash của app?
Forum rules
Nơi chia sẻ thảo luận các vấn đề liên quan đến kiểm thử trên các thiết bị Andoird
Nơi chia sẻ thảo luận các vấn đề liên quan đến kiểm thử trên các thiết bị Andoird
-
- Admin
- Posts: 4900
- Joined: Tue 10 Aug, 2010 10:11 am
- Location: HCM
- Contact:
-
- Jr. Tester
- Posts: 58
- Joined: Fri 20 Apr, 2012 10:43 am
- Contact:
Re: Test Android làm sao để bắt được log crash của app?
Đối với Android mà nói thì có rất rất nhiều cách để có thể lấy được Crash log, dưới đây là một số cách mình sưu tầm được (Cách 3 là cách mình hay sử dụng nhất khi mình test Android)
Note: Cách 1 là dùng trực tiếp trên device, còn cách 2+3 đều dành cho Window nhé.
Way 1:
Please download the free “aLogcat” application from the Google Play app store.
Steps:
1.Start intended app (Lets say: it is "AppName") on the device. – if it crashes, repeat this step 2-3 times
2.Immediately after, start "aLogCat app" and wait approximately ~1 minute
3.Press “Menu” button and select “Filter”
4.Type “AppName” in the text field and press “Okay” button
5.Wait approximately ~1 minute
6.Press “Menu” button and select “Share”
7. Collect log via any sharing option you have access (i.e: can send to your email, share via Blutooth etc)
Way2:
1. Download DroidExplorer from here: http://de.codeplex.com/ and Install in your PC
2. Connect your device via USB (I assume you have USB driver for that device installed) and turn ON developer options and allow USB debugging
3. Run DE in the PC, click on LogCat Console and see its running.
4. Now run the intended app
5. Reproduce the crash
6. Immediately, Save the logcat.
Way2:
1. Download Eclipse IDE, Run Eclipse
2. Connect device (I assume you have USB driver installed, Developer option enabled along with USB debugging)
3. Click on Logcat tab
4. Run the intended app
5. Ge the crash
6. Select Logs and save in your PC in text file.
Source: https://testlio.com/question/how-to-get ... or-android
Note: Cách 1 là dùng trực tiếp trên device, còn cách 2+3 đều dành cho Window nhé.
Way 1:
Please download the free “aLogcat” application from the Google Play app store.
Steps:
1.Start intended app (Lets say: it is "AppName") on the device. – if it crashes, repeat this step 2-3 times
2.Immediately after, start "aLogCat app" and wait approximately ~1 minute
3.Press “Menu” button and select “Filter”
4.Type “AppName” in the text field and press “Okay” button
5.Wait approximately ~1 minute
6.Press “Menu” button and select “Share”
7. Collect log via any sharing option you have access (i.e: can send to your email, share via Blutooth etc)
Way2:
1. Download DroidExplorer from here: http://de.codeplex.com/ and Install in your PC
2. Connect your device via USB (I assume you have USB driver for that device installed) and turn ON developer options and allow USB debugging
3. Run DE in the PC, click on LogCat Console and see its running.
4. Now run the intended app
5. Reproduce the crash
6. Immediately, Save the logcat.
Way2:
1. Download Eclipse IDE, Run Eclipse
2. Connect device (I assume you have USB driver installed, Developer option enabled along with USB debugging)
3. Click on Logcat tab
4. Run the intended app
5. Ge the crash
6. Select Logs and save in your PC in text file.
Source: https://testlio.com/question/how-to-get ... or-android
-
- Hoc Tester
- Posts: 2
- Joined: Thu 21 Jul, 2016 9:11 am
- Contact: