Saturday, 18 June 2016

How to find app Launcher activity name in Appium



We have two options for find app activity name

1) By using Command Prompt
2) Manifest Info
3) Hierarchy Viewer


1) By using Command Prompt

Please find below steps to find app activity name using command prompt.


-> app APK package name. EX : com.android.calculator2

-> Launch the Android Emulator and wait till starts properly.

-> Goto command prompt and goto E:\android-sdks\platform-tools and verify the device connected properly (not offline). by using below command

E:\SDK\platform-tools>adb devices

List of devices attached
emulator-5554   device

-> Open the reuired app and keep on active in Emulator

-> GOTO and command prompt and use below commands

E:\android-sdks\platform-tools>adb logcat >log.txt

-> Now its generated log text file. Here you can search by app Package name (com.android.calculator2) then we will have log like

I/ActivityManager(  878): Displayed com.android.calculator2/.Calculator: +7s332ms


Here com.android.calculator2.Calculator is app activity name.



2) By using AndroidManifest.xml Info



http://software-testing-tutorials-automation.blogspot.in/2015/10/find-launcher-activity-and-package-name.html


-> Right click on .apk file of APK Info app(or any other .apk file for which you wants to know package and activity name).

-> Select Open with -> WinRAR archiver option from right click context menu.

-> It will open .apk file in WinRAR window and you can see AndroidManifest.xml.

-> Open AndroidManifest.xml file in notepad. Now find keyword "p a c k a g e" In notepad.

-> Package name for my APK Info app is : com.intelloware.apkinfo Find keyword "a c t i v i t y" In notepad. It will show you activity name of your app.


-> Activity name for my APK Info app is display: .MainActivity. Here you need to append package name ahead of activity name so full activity name is : com.intelloware.apkinfo.MainActivity



3) Hierarchy Viewer 


-> Launch the Android Emulator and wait till starts properly.

-> Launch the appium and start the server.

-> Open the Hierarchy viewer from below path. Android Emulator should be starts properly, its should not be closed.

C:\android-sdks\tools\hierarchyviewer.bat


-> Then goto page in emulator which activity needs to be record.

-> Then automatically we can see the package name and activity name in Hierarchy viewer

we can see in bold color

com.android.calculator2/com.android.calculator2.calculator

Here,

package Name = com.android.calculator2
Activity Name = com.android.calculator2.calculator

46 comments:

  1. Found Interesting and wonderfull keep sharing
    visit here

    ReplyDelete
  2. I think it's a great option. Thanks for sharing this knowledge with us.

    ReplyDelete
  3. I am searching for some great blog sites for contemplating. I was seeking over web search tools and discovered your blog webpage Well i like your astounding Blade Runner 2 Coat web journal webpage outline in addition to your posting capacities. Continue doing it.Feel free to surf

    ReplyDelete
  4. I just loved your way of presentation. enjoyed reading this .Thanks for sharing and keep writing. It is good to read blogs like this. As constantly, JFK Car Service we appreciate yourself assurance and accept as true within us.

    ReplyDelete
  5. I’m going to bookmark your web page and maintain checking for new details. I am looking for some good blog sites for studying. I was write my paper for me and found your blog site. Well i like your high quality blog site design plus your posting abilities. Keep doing it.

    ReplyDelete
  6. The post is really superb. It’s varied accessory information that consists during a basic and necessary method. Thanks for sharing this text. The substance is genuinely composed. This web log is frequently sharing useful actualities. help with assignment Keep sharing a lot of posts.

    ReplyDelete
  7. Thank you for every other informative site. Where else may just I am getting that type of information written in such a perfect method? I've a undertaking that Buy Vin Diesel Jacket Online I am simply now running on, and I have been on the glance out for such information.

    ReplyDelete
  8. Also often has good discussions but it's not a blog. Just some very sharp sewing enthusiasts from a wide range of. Eight Ball David Puddy Jacket

    ReplyDelete
  9. You play the latest free cell online card game and create the best score to choose the best card forever most people excited to connect the online so have the essay helper help full entertainment thanks for the visit here share this with your friends.

    ReplyDelete
  10. I want to say that is one of the top notch posts that i've perused in all my existence. the whole thing right here is certainly remarkable. I couldn't have requested a highly improved put up than this. . i am capable of bookmark your assignment crux internet web site and advocate to all my pals

    ReplyDelete
  11. I really thanks to your for sharing this awesome content to us. Actually, I found this type post on the Google and finally I got...

    ReplyDelete
  12. I am searching for some great blog sites for contemplating. I was seeking over web search tools and discovered your blog webpage Well i like your astounding web journal webpage outline in addition to your posting capacities. Blade Runner 2049 Coat Continue doing it.Feel free to surf

    ReplyDelete
  13. Incredible post. Articles that have significant and savvy remarks are more agreeable, at any rate to me. It’s fascinating to peruse what other individuals thought and Buy Sons of Anarchy Jacket Online how it identifies with them or their customers, as their point of view could help you later on.

    ReplyDelete
  14. Thanks for sharing this amazing information with us.
    rokka no yuusha season 2

    ReplyDelete
  15. Hey admin your sharing way is unique. This is fantastic site.I enjoyed reading your articles. This is truly a great read for me.

    no game no life season 2 - Techleem

    ReplyDelete
  16. Thanks all for your feedback.

    ReplyDelete
  17. Teamindia Webdesign offers best solution for your travel business. We provide custom travel portal development as per your requirement. We provide best solution for travel portal development,b2b travel portal development,b2c travel portal development, travel website design company, airline reservation system, CAR reservation system at pocket friendly price.

    ReplyDelete
  18. It was a pleasure reading this article. Thank you! I have you bookmarked to check out new posts on your blog and I have enjoyed every bit of it.
    buy real YouTube Views

    ReplyDelete
  19. I have learned so much from your site. Thank you for your time and knowledge. buy cheap YouTube Views

    ReplyDelete
  20. I am so happy to come across this piece of write up, very much advanced my understanding to the next top level.

    Goku Drip jacket


    ReplyDelete
  21. This is an authentically decent site post. Not very numerous individuals would authentically, the way you simply did. I am authentically Moses Brings SO4 Wool Coat inspired that there is such a substantial magnitude of data about this subject have been revealed and you've put forth a valiant effort with so much class. On the off chance that needed to ken more about green smoke surveys, than by all methods come in and check our paraphernalia.

    ReplyDelete
  22. I loved your way of presentation. I always enjoyed reading this pcloud vs degoo articles. This is truly a great read for me.

    ReplyDelete
  23. Great work! I have also written the article based on the Spacebar games. If you are a gamer, you must have to focus on improving your spacebar clicking speed. In many games, the spacebar key is where your character gets jumped or get crawled. Visit it and please comment on your view.

    ReplyDelete
  24. Nice one bro. These small details are something which makes life much much easier. Especially for someone who uses their PC frequently for work. Your blog was really informative

    ReplyDelete
  25. Gaining good knowledge in this blog. I would like to say thank you for this great blog. If you want to know about the cps calculator then you can Go with Clicks Speed Test and CPS calculator.

    ReplyDelete
  26. Very nice post! thanks. I am going to share about Spacebar clicker-Game, in this, you can improve your spacebar clicking speed by playing multiple games. It is fun as well as an interesting game, very popular this spacebar clicker and important.

    ReplyDelete
  27. Your post hit home for me. It's like you read my mind and addressed all the questions and concerns I had about the topic. Thanks for being a mind reader.Beyond sports, improve reaction time has practical applications in daily life. It can enhance safety on the road by enabling drivers to react swiftly to unexpected events, potentially preventing accidents and promoting responsible driving habits.

    ReplyDelete
  28. Your blog posts always leave me feeling inspired and motivated. The Click Test provided a fun and interactive way to challenge my clicking speed. Great job on incorporating it into your post!

    ReplyDelete
  29. Your mastery of the English language is awe-inspiring; Shakespeare would be proud. If you're tired of endless clicking, look no further than this amazing Auto Clicker website!

    ReplyDelete
  30. Your blog consistently provides helpful and relevant information, keep up the great work! The study's utilization of Test CPS enhances the understanding of system behavior in various scenarios.

    ReplyDelete
  31. La créativité et l'originalité évidentes de votre message le distinguent des autres. Votre regard neuf et vos idées innovantes donnent un nouveau souffle. Au-delà du jeu, Clic Par Seconde est précieux dans les métiers qui nécessitent des réponses rapides, comme la saisie de données ou la conception graphique, car il contribue à augmenter la productivité et l'efficacité.

    ReplyDelete
  32. I'm feeling inspired and optimistic after reading this uplifting post! Impressive react speed test , it's a fun and addictive way to challenge yourself and improve your reflexes.

    ReplyDelete
  33. Your article left a lasting impression on me. The way you weaved together different threads of information and presented them coherently is impressive.Say goodbye to slow typing: Monkey Typing Test is here to help. It's a tool I've incorporated into my routine with great results.

    ReplyDelete
  34. I can't thank you enough for sharing such valuable information here. If you want to boost your scrolling skills, give the Scroll Test a shot!

    ReplyDelete
  35. Great job on the informative content, it really clarified a lot for me. PS5 Controller Drifting? I've seen similar discussions on gaming forums like Reddit, where users shared experiences and possible fixes.

    ReplyDelete
  36. Your work ethic and enthusiasm are truly admirable! From crafting tactical weaponry to optimizing storage systems, Minecraft Survival Servers diversify the gameplay experience, ensuring endless possibilities.

    ReplyDelete
  37. I love how you delve into complex topics with ease. clickspeedtest provides a convenient and user-friendly interface.

    ReplyDelete
  38. I appreciate the time and effort you put into crafting each post. The community aspect of Unblocked Game creates a sense of belonging and camaraderie among players worldwide.

    ReplyDelete
  39. This blog post offers a unique and compelling viewpoint. The Mental Age Calculator offers a great way to assess and understand your mental capabilities better.

    ReplyDelete
  40. Great job on this article, it’s very well-written!The more I play 1v1 lol Unblocked
    , the more I appreciate its subtle complexities. There's always room to improve.

    ReplyDelete
  41. Tu experiencia realmente brilla en este post. ¡Excelente trabajo!¡Wow! contador de clics ha cambiado la forma en que practico mi rapidez. ¡No esperes más y entra ya!

    ReplyDelete
  42. Great post! I really appreciate how you broke down the topic into easily digestible pieces. It’s super helpful for someone like me who’s just getting started. Keep up the great work! Visit this profile click Speed test for more informative content.’ve been using the click test to track my improvement, and it’s surprising how much better my hand-eye coordination has become! Anyone else see a boost in their CPS after a few days of practice?

    ReplyDelete
  43. Wow, this was exactly what I was looking for! Your explanations were so clear and easy to understand. Keep up the great work! Visit this profile canuckle game for more content.I recently discovered Canuckle, and I’m already hooked! The daily puzzles are perfect for a quick mental exercise. Plus, it’s a fun way to learn more about Canada.

    ReplyDelete
  44. You made some excellent points here. I'll definitely be thinking about this.Visit this site click speed test for more informative content.I love these quick tests! It’s fascinating to see how small actions impact overall performance.

    ReplyDelete