{"id":1542,"date":"2022-01-10T15:39:26","date_gmt":"2022-01-10T15:39:26","guid":{"rendered":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/01\/10\/clone-of-cucumber-interview-questions\/"},"modified":"2022-01-18T17:28:32","modified_gmt":"2022-01-18T17:28:32","slug":"appium-interview-questions","status":"publish","type":"post","link":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/2022\/01\/10\/appium-interview-questions\/","title":{"rendered":"Appium Interview Questions"},"content":{"rendered":"<h3 id=\"t-1638970939482\" data-alt-text=\"1. In which form you get the build for Android and iOS platforms.\"><b>&nbsp;1. <b>In which form you get the build for Android and iOS platforms?&nbsp;<\/b><\/b><\/h3>\n<ul>\n<li>For Android file with .apk extension and for iOS .app or .ipa.<\/li>\n<\/ul>\n<h3 id=\"t-1638970939483\" data-alt-text=\"2. What are the minimum and maximum OS versions the app can be tested on?\"><b>2. <b>What are the minimum and maximum OS versions the app can be tested on?<\/b><\/b><\/h3>\n<p>It is set by product owner and technical team. You can get the information by using adb command. One of which is the dumpsys command.<\/p>\n<p tve-droppable\"\"=\"\">For this example, general store app is installed, run \u201cadb shell dumpsys package com.androidsample.generalstore \u201d.<\/p>\n<p tve-droppable\"\"=\"\">This will return a big list , we can filter it using grep&nbsp; \u201cadb shell dumpsys package com.androidsample.generalstore | grep versionName\u201d returns \u201cversionName=1.0\u201d.<!--[if !supportLineBreakNewLine]--><!--[endif]-->or \u201cadb shell dumpsys package com.androidsample.generalstore | grep versionCode\u201d returns \u201cversionCode=1 minSdk=21 targetSdk=28\u201d, which shows minimum Android version that is supported and the version that is targeted by the build. &nbsp; <!--[endif]-->&nbsp; &nbsp;<\/p>\n<h3 data-alt-text=\"3. In today\u2019s world having such a wide range of devices as a QA how would you decide which devices need to be picked for testing?\" id=\"t-1638970939484\"><b>3.&nbsp;<b>In today\u2019s world having such a wide range of devices as a QA how would you decide which devices need to be picked for testing?<\/b><\/b><\/h3>\n<ul>\n<li>Generally BI and technical teams decide it by running surveys and using third party software such google firebase which can give the percentage wise usage of devices in a particular region.<\/li>\n<\/ul>\n<p><b> <\/b><\/p>\n<h3 id=\"t-1638970939485\" data-alt-text=\"4. How to get crash logs in Android and iOS?\"><b>4. <b>How to get crash logs in Android and iOS?<\/b><\/b><\/h3>\n<ul>\n<li>In android you can get it via logcats. Android studio is very useful to filter the logs.<\/li>\n<\/ul>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Generally crash logs start with FETAL MAIN EXCEPTION.<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Mac console app can be used. More info at<\/p>\n<p><a href=\"https:\/\/eshop.macsales.com\/blog\/45586-how-to-use-the-mac-console-app-to-diagnose-a-crash\/\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/eshop.macsales.com\/blog\/45586-how-to-use-the-mac-console-app-to-diagnose-a-crash\/<\/a><\/p>\n<h3 data-alt-text=\"5. How to perform Locale testing (in context of different part of the world).\" id=\"t-1638970939486\"><b>5. <b>How to perform Locale testing (in context of different part of the world).<\/b><\/b><\/h3>\n<ul>\n<li><a href=\"https:\/\/appradar.com\/academy\/app-localization\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/appradar.com\/academy\/app-localization<\/a><\/li>\n<\/ul>\n<h3 data-alt-text=\"6. How do you perform performance testing in mobile?\" id=\"t-1638970939487\">6. <b>How do you perform performance testing in mobile?<\/b><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.guru99.com\/mobile-app-performance-testing-strategy-tools.html\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/www.guru99.com\/mobile-app-performance-testing-strategy-tools.html<\/a><\/li>\n<\/ul>\n<h3 data-alt-text=\"7. How do you simulate different  network conditions?\" id=\"t-1638970939488\"><b>7. <b>How do you simulate different&nbsp; network conditions?<\/b><\/b><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.browserstack.com\/docs\/app-automate\/appium\/test-real-user-conditions\/simulate-network-conditions\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/www.browserstack.com\/docs\/app-automate\/appium\/test-real-user-conditions\/simulate-network-conditions<\/a><b> <\/b><\/li>\n<\/ul>\n<h3 data-alt-text=\"8. How to test Deep links on mobile?\" id=\"t-1638970939489\"><b>8. <b>How to test Deep links on mobile?<\/b><\/b><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=P3g25I1TZVc\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=P3g25I1TZVc<\/a><\/li>\n<\/ul>\n<h3 data-alt-text=\"9. How do you monitor\/test network traffic in mobile apps? Charles Breakpoints in charles and usage.\" id=\"t-1642525980189\"><b>9. <\/b><b>How do you monitor\/test network traffic in mobile apps? Charles <b>Breakpoints in charles and usage<\/b>.<\/b><\/h3>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=GIm3JTt7G-k\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=GIm3JTt7G-k<\/a><\/li>\n<\/ul>\n<h3 data-alt-text=\"10. How to change values in responses using charles?\" id=\"t-1638970939491\"><b>10. <b>How to change values in responses using charles?<\/b><\/b><\/h3>\n<ul>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/31681518\/how-to-change-response-body-with-charles\" style=\"outline: none;\" target=\"_blank\" rel=\"noopener\">https:\/\/stackoverflow.com\/questions\/31681518\/how-to-change-response-body-with-charles<\/a><\/li>\n<\/ul>\n<h3 data-alt-text=\"11. How to install and uninstall app using adb?\" id=\"t-1638970939492\"><b>11. <b>How to install and uninstall app using adb?<\/b><\/b><\/h3>\n<ul>\n<li>Adb install &lt;path\/to\/the apk&gt;<\/li>\n<\/ul>\n<h3 data-alt-text=\"12. How to record screens using adb?\" id=\"t-1638970939493\"><b>12. <b>How to record screens using adb?<\/b><\/b><\/h3>\n<ul>\n<li>Screen record \u2013 A very useful tool that I use several times a day is the screen record command: \u201cadb shell screenrecord \/sdcard\/sampleVideo.mp4\u201d. As you\u2019d expect, this will record the screen for a max of 3 mins. When you want the recording to stop, press ctrl+c on your keyboard and the pull the file onto your pc,<\/li>\n<\/ul>\n<h3 data-alt-text=\"13. How to change battery level adb?\" id=\"t-1638970939494\"><b>13. <b>How to change battery level adb<\/b>?<\/b><\/h3>\n<ul>\n<li>One of my favorite adb commands is the battery manipulation commands:<\/li>\n<\/ul>\n<ul>\n<li>\u201cadb shell dumpsys battery\u201d will provide a read-out of all battery &nbsp; &nbsp; related information.<\/li>\n<li>\u201cadb shell dumpsys battery set level 5\u201d will set the battery level to 5. Very useful for low battery testing on Android. However, since the device is still connected to your PC, we need to make it seem like it is not charging, so use the following in conjunction: <\/li>\n<li style=\"text-align: justify;\">\u201cadb shell dumpsys battery unplug\u201d makes the device appear as unplugged.<\/li>\n<li style=\"text-align: justify;\">When you are all done with your testing, use the following to reset all battery configs: \u201cadb shell dumpsys battery reset\u201d.<\/li>\n<li style=\"text-align: justify;\">There are other commands such as \u201cadb shell xdumpsys battery set status 3\u201d, for instance, which fakes battery discharge etc.<\/li>\n<\/ul>\n<h3 data-alt-text=\"14. How to push files to device\/emulator using adb?\" id=\"t-1638970939495\"><b>14. <b>How to push files to device\/emulator using adb?<\/b><\/b><\/h3>\n<ul>\n<li>Push files to device \u2013 Often times you need to push files or folders to the device.<\/li>\n<li \"=\"\"a. Use the following for this: \u201cadb push \/file\/on\/computer \/sdcard\/\u201d, this will put a file in your root folder.\/lili \"=\"\">b. Or say you have a media payload on your computer you want in your Downloads folder on your device: \u201cadb push\/Users\/xyz123\/Desktop\/Payloads\/sdcard\/Downloads\u201d.<\/li>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;1. In which form you get the build for Android and iOS platforms?&nbsp; For Android file with .apk extension and for iOS .app or .ipa. 2. What are the minimum and maximum OS versions the app can be tested on? It is set by product owner and technical team. You can get the information by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-1542","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interview-questions","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1542"}],"version-history":[{"count":92,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1542\/revisions"}],"predecessor-version":[{"id":2317,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1542\/revisions\/2317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/1371"}],"wp:attachment":[{"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rahulshettyacademy.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}