Appium practice question record-how to get the activity name of an app in Android

Source: Internet
Author: User
Tags appium

Background:

Working with Appium to make Android's automation function use cases

Problem:

The QQ APK is encrypted, and is truncated in the XML file directly apktool the anti-compile. Unable to get startup activity name;

Problem Solving methods:

By observing the log method:

Steps:

  1. Turn on log output: adb logcat>d:/log.txt
  2. Launch the APK to be tested, open the interface (ie open the QQ interface)
  3. Turn off log output: Ctrl + C
  4. To view the logs, follow the COM.TENCENT.MOBILEQQ keyword to find the activity that was initiated in the last step:

Appium practice question record-how to get the activity name of an app in Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.