<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vishvnath Pratap Singh on Medium]]></title>
        <description><![CDATA[Stories by Vishvnath Pratap Singh on Medium]]></description>
        <link>https://medium.com/@vishvnath.singh?source=rss-66dd2b686ccd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*33Qqq6tg3gmJ30LZOKopDA.jpeg</url>
            <title>Stories by Vishvnath Pratap Singh on Medium</title>
            <link>https://medium.com/@vishvnath.singh?source=rss-66dd2b686ccd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:03:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishvnath.singh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Non Functional Metrics evaluation of MakeMyTrip iOS App]]></title>
            <link>https://tech.makemytrip.com/non-functional-metrics-evaluation-of-makemytrip-ios-app-ad3f1e2d1544?source=rss-66dd2b686ccd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad3f1e2d1544</guid>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[mobile-test-automation]]></category>
            <category><![CDATA[memory-leak]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[ios-testing]]></category>
            <dc:creator><![CDATA[Vishvnath Pratap Singh]]></dc:creator>
            <pubDate>Fri, 06 Apr 2018 06:05:43 GMT</pubDate>
            <atom:updated>2018-04-12T05:42:16.142Z</atom:updated>
            <content:encoded><![CDATA[<p>Note: The objective of this blog is to share how we at MakeMyTrip evaluate key metrics of an iOS app in pre-production phase<strong> </strong>via automated solution. Here we are going to focus on how we capture Non Functional Metrics (Memory, CPU, Network) to validate app performance in development phase for iOS app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spYvIsPshfBI8v3Ifl28OA.jpeg" /><figcaption>IOS automated performance testing with XCUI instrumented test</figcaption></figure><h3>1. Introduction:</h3><p>Apple has various developer tools to check the performance of iOS apps. The most common are Instruments, Leaks, Profiler, Allocations etc.</p><p>But all these profiling tools needs manual intervention. We can’t manually check performance issues all the time as it is very cumbersome to maintain the same environment and precondition for test to run. There should be automated way to check the performance of an app on regular basis. Fortunately, there are few ways in which we can achieve automated performance testing of iOS apps.</p><ul><li>Running Instruments check on periodic basis</li><li>Automated Performance Tests using XCUITest framework.</li></ul><p>In this post, we will cover automated performance tests using XCUITest.</p><blockquote><strong><em>How iOS Performance Metrics is different from Android:</em></strong></blockquote><p>iOS is a closed-source operating system specifically developed by Apple for its mobile devices. In contrast, Android is a Google’s open-source operating system that offers wide customization to the developer’s community and third-party manufacturers. When iOS uses the XNU kernel developed in C/C++ and Objective-C, Android uses mostly Linux OS as a foundation of the kernel written in C/C++.<br>We can easily find performance metrics in android either via adb commands or google API available but for capturing insight in iOS app we have to deal with kernel first in objective C and then we can find information using library provided by apple.<br>In iOS memory is not fragmented further in native and dalvik, we only have to deal with running memory of an app, also for CPU utilization we only capture total CPU usage. In android CPU OS is further categorized in user and kernel space.</p><h3>2. What to Measure: ⚙️</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POL6HaYssCIJ8v6KyYJ1kw.png" /><figcaption>Non Functional Metrics to measure</figcaption></figure><p><em>Our Automation </em>testing framework for iOS makes it easy to write reliable user interface tests to validate app components at story level. We identified key tests for which we would like to evaluate the app metrics and wrote those in XCUI test framework.</p><p><em>After every @test pass we compute memory used, CPU used and network data used by individual test case. After capturing these stats we dump this data in database after hitting an API (because we cannot access directly DB directly inside instrumentation test, so need this API for dumping data into DB) with device name and apk version etc as parameters.</em></p><p>To capture performance insight of each test case, below are some of the common fields captured for each test cases and stored in db.</p><blockquote>* Test case name<br> * Device id<br> * Apk version<br> * Time-stamp when data was captured for a particular test case</blockquote><blockquote><strong><em>2.1</em></strong> Capture Memory Usage Metrics After Every Test Scenario:</blockquote><ul><li>How much of Memory is used<strong> </strong>by application, operating system, memory available for app etc.</li></ul><blockquote><em>👉 </em><strong><em>Method to Capture Memory consumption:</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUyZ6Oic4ZrB37V-VDTOEg.png" /><figcaption>compute Memory usage after every @test pass</figcaption></figure><p>By using <strong>mach_task_basic_info() ,ProcessInfo.processInfo, </strong>(which comes under mach_host.h and mach.h package)<strong> </strong>API we captures run time memory utilization data.</p><p>MemoryNFR metrics captures below information for every test case we run for story level.</p><pre>memUsedTotal: memory used by device<br>   memUsedFree:  memory available for app <br>   memUsedWired: memory used by operating system<br>   memUsedApp:   memory used by application itself</pre><p>captured memory usage data in DB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WdC6GRUY34YCle196HYi1A.jpeg" /><figcaption>Memory consumption data metrics in db</figcaption></figure><blockquote><strong><em>2.2 Capture CPU usage Metrics after Every Test Scenario:</em></strong></blockquote><ul><li>How much of CPU used<strong> </strong>by application like (System Space CPU Usage time, User Space CPU usage time, CPU thread sleep time)</li></ul><blockquote><em>👉 </em><strong><em>Method to Capture CPU consumption:</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y0Q3q7Mou06fv6UEVA6LOg.png" /><figcaption>compute CPU usage after every @test pass</figcaption></figure><p>We captures CPU usage, system space CPU time, and CPU thread sleep time per process and combine the data for all running threads. By using api like<strong> threadBasicInfo.cpu_usage) / Float(TH_USAGE_SCALE)), threadBasicInfo.user_time.microseconds,threadBasicInfo.system_time.microseconds, threadBasicInfo.sleep_time </strong>we captured CPU usage data per test case.</p><p>CPU metrics captures below information for every test case we run at an activity and scenario level.</p><pre>cpuUsedTotal: total CPU used<br>   usrSpaceTime: user space CPU time<br>   systemSpaceTime: system space CPU time<br>   threadSleepTime: CPU sleep time</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mAIBEiBvMEn3pfC5_Ii3_A.jpeg" /><figcaption>cpu consumption data in % in db</figcaption></figure><blockquote><strong>2.3 Capture Network Data usage Metrics after Every Test Scenario:</strong></blockquote><ul><li>How much of the Mobile Data and WiFi Data used (eg. in 2G, 3G, LTE network condition).</li><li>RX data(data received by app), TX data(data transmitted by app), Total mobile data usage.</li><li>Wi-Fi RX Data(Wi-Fi data received by app), TX Data(Wi-Fi data transmitted by app), Total Wi-Fi data usage.</li></ul><blockquote><em>👉 </em><strong><em>Method to Capture Network Data consumption :</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OP2Fd6BdKJLTSdPYN7_5AA.png" /><figcaption>compute Network usage after every @test pass</figcaption></figure><p>We extract Network utilization data for 2G, 3G, LTE, WiFi as per network conditions available at the time of test. For extracting network utilization it capture network type automatically as that time device is connected with network type available at that time by including <strong>arpa/inet.h,net/if.h,ifaddrs.h,net/if_dl.h</strong> libraries we captures network statistics for running test.</p><p>NetworkData metrics captures below information for every test case we run for activity and scenario level:</p><pre>mobileTxData : mobile transmitted data<br>    mobileRxData : mobile received data<br>    mobileTotalData : mobile total data<br>    wifiTxData : wifi transmitted data<br>    wifiRxData : wifi received data<br>    wifiTotalData : wifi received data<br>    networkType : mobile or WiFi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FeOggHo4kcyKp9klLL512g.jpeg" /><figcaption>Network data in bytes in db</figcaption></figure><h3>2.4 iOS Performance Testing Automated Solution using XCUI Test :”</h3><p>Fragmented test tools were taking too long to deliver results mobile performance engineers were measuring devices manually with developer tools that did not provide aggregated data over time.</p><p>The in house solution that we built for capturing Non Functional metrics via XCUITest instrumentation tool for capturing memory, cpu, network, etc. performance stats we captured these metrics via xcui test script.</p><p>We captured results from scripts written in XCUITest and validated them against results of IOS profiler tool and found them to be same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWfZCcZ4i5LZTXIx6NmDUg.png" /><figcaption>IOS NFR Automation Framework Architecture</figcaption></figure><ul><li>*In above architecture LOB pages stand for Line Of Business like Hotel,Flights etc are one Lob for us.*</li></ul><p><em>XCUI </em>is a testing framework for iOS to make it easy to write reliable user interface tests.</p><p>On UI test success focus comes to capture NFR data like memory usage, CPU usage and network data consumption for every test case and dump these stats in database, so that we can compare stats after next release of app.</p><h3>2.5 Visualization and Reporting:</h3><p>We compute memory usage, CPU usage, network usage for each test cases for each module and Run suite for at least 3~ 5 times , computed data will be dumped in test DB and we will compare with the average of data from prev version data and current version data available in DB. so basically average to average comparison for every test data.</p><blockquote><strong>How we do monitoring Pass/Fail criteria: :</strong></blockquote><p><strong><em>Pass/Fail criteria, for every test case:</em></strong></p><p>If (current version data &lt;= (previous version data + (-) 20% of previous version data) PASS else FAIL;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZcD4z5b7ZpA6K7M_gQJow.png" /><figcaption>Overall Report visualization with pass fail percentage</figcaption></figure><p>For generating report automated suite run which compare every test cases data from previous version data same test case data. And there is comparison of average to average value for each metrics and if computed data not fulfill above pass fail criteria we marked it fail and analyse cause for increasing metrics.</p><h4>Fail Cases Caveat:</h4><p><strong><em>fail cases insight after comparing data from current iOS version release with previous version release.</em></strong></p><p>We can also compare any release data with any previous release to see deeper insight for fail cases.</p><p><strong><em>👉Memory consumption :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vtfo8uwrevqh-aofGRrWFQ.jpeg" /><figcaption>Memory consumption fail case info</figcaption></figure><p><strong><em>👉CPU Consumption:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKGo62stKG1VvCy-ggqK7Q.jpeg" /><figcaption>CPU consumption fail case info</figcaption></figure><p><strong><em>👉Network Consumption:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNvgVJh8kaKXuJqdO1sJrw.jpeg" /><figcaption>Network data consumption fail case info</figcaption></figure><p>With above solution we can generate grater insight for iOS Performance metrics.</p><h4>References:</h4><ul><li><a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/09-ui_testing.html">https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/09-ui_testing.html</a></li><li><a href="http://samwize.com/2016/02/28/everything-about-xcode-ui-testing-snapshot/">http://samwize.com/2016/02/28/everything-about-xcode-ui-testing-snapshot/</a></li><li><a href="https://dzone.com/articles/continuous-performance-testing-of-an-ios-apps-usin">https://dzone.com/articles/continuous-performance-testing-of-an-ios-apps-usin</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad3f1e2d1544" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/non-functional-metrics-evaluation-of-makemytrip-ios-app-ad3f1e2d1544">Non Functional Metrics evaluation of MakeMyTrip iOS App</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Non Functional Metrics evaluation of MakeMyTrip Android App]]></title>
            <link>https://tech.makemytrip.com/non-functional-metrics-evaluation-of-makemytrip-android-app-ebffb4bdf91c?source=rss-66dd2b686ccd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebffb4bdf91c</guid>
            <category><![CDATA[mobile-test-automation]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[memory-improvement]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[memory-leak]]></category>
            <dc:creator><![CDATA[Vishvnath Pratap Singh]]></dc:creator>
            <pubDate>Fri, 06 Apr 2018 06:03:01 GMT</pubDate>
            <atom:updated>2018-04-12T05:40:52.916Z</atom:updated>
            <content:encoded><![CDATA[<p>Note: The objective of this blog is to share how we at MakeMyTrip evaluate key metrics like Memory, CPU &amp; Network of Android app in pre-production phase<strong> </strong>via<strong> </strong>automated solution<strong>. </strong>This evaluation gives deep insight on how an app behaves in different device configurations and what optimizations can be done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*s6bP3mhel5GkUXuncFwVlQ.png" /><figcaption>Android automated performance testing with espresso instrumented test</figcaption></figure><h3>1. Introduction:</h3><p>Performance monitoring generally is to concentrate on numbers such as throughput, but evaluating key parameters can often be more revealing and valuable. System aspects like Memory profiling, CPU tracing &amp; network utilization gives us app insights for defining app behavior good or bad, in terms of app performance.</p><p>App performance demands an early insight of capturing key metrics in development phase, to be dependent on production monitoring can be too late. A great practice is to monitor both production and pre-production metrics, so that we can measure, up-to what level we’re optimizing our systems for. This can help us tune to the desired level of business goal achievement as well.</p><p>We developed a specific approach to test various aspects of mobile application that covers end user, key device metrics, network stats in pre-production phase.</p><p><em>“App performance is beyond a pure focus on technology and takes into consideration things that can’t be measured via log file analysis”</em></p><h4>1.1 Why System Based Performance Testing</h4><p><em>Performance testing of mobile applications is very important because they are installed on devices which are based on different mobile platforms/OSs like Android, iOS, etc. All of these have varying hardware configurations like memory, processor, screen-resolution and to add to it, varying network conditions makes things little more complex. Yet these applications are expected to work well in all circumstances, no matter how much load there is on the server; whatever the strength of the network may be, whatever the device configurations are.</em></p><p><em>Performance testing of mobile applications helps in bridging the gap between testing of a mobile application in a test environment with test data and a real world scenario, thereby contributing to achieve business success. It gives us confidence to launch an application version in this rapidly changing mobile space, where user is always expecting a smooth transition with best of features.</em></p><h3>2. What &amp; How to Measure ⚙️:</h3><h4>For Android: 👇</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LJ2qaNwkR8Jw4Pv85UZDSQ.png" /><figcaption>Non Functional Metrics to measure</figcaption></figure><p><em>Our Automation </em>testing framework for Android makes it easy to write reliable user interface tests to validate app components at an activity and fragment level. We identified key tests for which we would like to evaluate the app metrics and wrote those in Espresso.</p><p>Before running every test case we clear app data, which is the data stored in the shared preferences and we turn on “Do not keep activity” feature, to ensure that data captured is of a particular test case only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*p0y82SZnKelhnUFjnfrhTw.png" /><figcaption>Non Functional Metrics to measure</figcaption></figure><p><em>After every @test pass we compute memory, CPU and network data, used by individual test case which gets dumped in database (not in App DB like sqlite). Since we cannot access DB directly inside instrumentation test, we wrote an API layer to do that job for us, which has device name, apk version etc as parameters.</em></p><p>To capture performance insight of each test case, below are some of the common fields captured for each test case and stored in db.</p><blockquote><strong>* Test case name<br> * Device id<br> * Apk version<br> * Time-stamp when data was captured for a particular test case</strong></blockquote><blockquote><strong><em>2.1 What to Capture to evaluate Memory Usage for each test:</em></strong></blockquote><ul><li>How much of Memory is used by the application which includes Dalvik used/free, Native used/free.</li><li>For Out Of Memory error; appMemUsed (total RAM Used by app), appFreeMem (Available RAM for app).</li><li>We also capture Heap Dump for further analysis of memory consumption.</li></ul><blockquote><em>👉 </em><strong><em>Method to Capture Memory consumption:</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*hlp_vc7EytkdgmWD9d8Ctg.png" /><figcaption>compute Memory usage after every @test pass</figcaption></figure><blockquote>Memory-NFR metrics captures below information for every test case that we run at activity level.<br> <strong>* Native heap used by app on focused activity<br> * Native heap free by app on focused activity<br> * Dalvik heap used by app on focused activity<br> * Dalvik heap shared by app on focused activity<br> * Dalvik private used app<br> * Total RAM used by app (to analyze OOM Issues)<br> * Total RAM available for app (to analyze OOM Issues)<br> * Available RAM for app (to analyze OOM Issues)</strong></blockquote><p>To capture some of the above data points which are specific to our app, we have used<strong> Runtime</strong> &amp; <strong>Debug</strong> API which is a part of <strong>android</strong> <strong>run</strong> <strong>time</strong> <strong>system</strong>. <strong>Runtime</strong> API is fetching the total memory usage while <strong>Debug</strong> helps in fetching the details of dalvik/native memory. Debug API also extracts heap dump data which is needed for analysis of memory consumption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHEp8Xq9R4uiK83_qSAw-g.png" /><figcaption>Memory consumption data metrics in db</figcaption></figure><blockquote><strong><em>2.2 What to Capture to evaluate CPU usage:</em></strong></blockquote><ul><li>System Space CPU Usage, User Space CPU usage , CPU thread read time</li><li><strong>Method Trace</strong> for further analysis of CPU consumption</li></ul><blockquote><em>👉 </em><strong><em>Method to Capture CPU consumption:</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*DN5dyBxIQp2n8NpgPrscOg.png" /><figcaption>compute CPU usage after every @test pass</figcaption></figure><p>Method trace captured gives insight on thread wise %age usage of CPU, which helps in analyzing of CPU used per thread and also gives useful info that helps in debugging issues at package and class level.</p><blockquote>CPU metrics captures below information for every test case that we run at an activity level.<strong><br> * CPU consumption in user space<br> * CPU consumption in system space<br> * CPU i/o wait time<br> * Total CPU usage</strong></blockquote><p>We capture some of the above data points which are specific to our app, using command Runtime.getRuntime().exec(“top -d 1 -m 10 -n 1”). We are also extracting <strong>Method trace </strong>info<strong> </strong>via using Debug api, that is needed for analysis of CPU consumption increased or to validate current consumption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*BtxC3XHc_qt-27PiWMez2w.jpeg" /><figcaption>CPU consumption data in db</figcaption></figure><blockquote><strong>2.3 What to Capture in Network Data usage:</strong></blockquote><ul><li>How much of the Mobile Data and WiFi Data used (eg. in 2G, 3G, LTE network conditions)</li><li>Data received/transmitted by app, Total mobile data usage</li><li>Wi-Fi RX Data(Wi-Fi data received by app) ,TX Data(Wi-Fi data transmitted by app) ,Total Wi-Fi data usage</li></ul><blockquote><em>👉 </em><strong><em>Method to Capture Network Data consumption :</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*LcQGU1uwT0IH0tzh0hovyw.png" /><figcaption>compute Network usage after every @test pass</figcaption></figure><p>We extract Network utilization data for 2G, 3G, LTE, WiFi as per network condition available at the time of test.</p><p>We capture pid first for MakeMytrip app android.os.Process.<em>myUid</em>() for extracting network data related to current processes that we are running.</p><p><strong><em>TrafficStats</em></strong> API gives network data consumption and <strong><em>ConnectivityManager</em></strong> gives information for network type which we are capturing.</p><blockquote>NetworkData metrics captures below information for every test case that runs at an activity level:<br><strong> * Mobile data transmitted<br>* Mobile data received<br>* Total Mobile data<br>* WiFi data transmitted<br>* WiFi data received<br>* Total WiFi data<br>* Carrier name like Airtel, Vodafone etc<br>* Network type; mobile or WiFi</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*schzNMVqk85WgaZF8MVYhA.jpeg" /><figcaption>Network data in bytes in db</figcaption></figure><h3>2.4 “Android Performance Testing Automated Solution using Espresso:”</h3><p>Fragmented test tools were taking too long to deliver results, mobile performance engineers were measuring metrics manually with developer tools that did not provided aggregated data over time.</p><p>Using the in house solution we captured results from scripts written in Espresso instrumentation tool and validated them against results of Android profiler tool and found them to be same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5-Pv03Cln9vrZFtGmkm5A.png" /><figcaption>Android NFR Automation Framework Architecture</figcaption></figure><ul><li>*In above architecture LOB pages stand for Line Of Business like Hotel, Flights etc are LOB’s for us.*</li></ul><p><em>Espresso</em> is a testing framework for Android to make it easy to write reliable user interface tests.</p><p>At every @test pass, focus comes to capture NFR data like memory usage, CPU usage and network data consumption for every test case. We hit the API written by us to dump these stats in database, so that we can compare these stats at any point of time corresponding to a build number.</p><h3>2.5 Visualization and Reporting:</h3><p>We compute memory, CPU &amp; network usage for every test case and run the entire suite for at least 5 times. Thresholds are reset every time basis whichever app version yields best performance.</p><h4>How we do monitoring Pass/Fail criteria: :</h4><blockquote><strong><em>Pass/Fail criteria, for every test case:</em></strong></blockquote><p>If data varies more than 20% of range from previous app version, we mark the test case as fail else pass, depending on the thresholds that we have set for each parameter. At any point in time CPU/Memory and Network should not cross the defined threshold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30jT3yrgXVMkE9RE3zEyMg.png" /><figcaption>Overall Report visualization with pass fail percentage</figcaption></figure><p>In case of failures we also capture the heap dump and method trace for further analysis, which helps in debugging the issue.</p><h4>Fail Cases Caveat:</h4><p><strong><em>Fail cases insight after comparing data from current android version release with previous version release.</em></strong></p><p><strong><em>👉 eg: Memory consumption:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ordJ7EznH3PtFPYHskF0zA.jpeg" /><figcaption>Memory consumption fail case info</figcaption></figure><p><strong>With the above mentioned solution we can generate greater insight for android Performance metrics.</strong></p><h3>3.Salient features ensuring reliability and speed:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9pYgODXoNbnh6VzA1dFg0Q.png" /></figure><ul><li>Computes activity level info for memory, CPU and network</li><li>Easy to compare with previous release version</li><li>Gives insight to performance metric decision</li><li>Application health checks</li><li>Robust and readily available reporting</li></ul><h3>4. Performance Testing Challenges of Mobile Applications:</h3><blockquote>It is also possible to capture above metrics manually but below are some of the challenges that we faced.</blockquote><blockquote><strong><em>1.</em></strong><em> </em>Initially we measured above metrics using ‘<em>adb commands, DDMS and other android tools’ but these approaches do not gives us the accurate results. Human intervention in between events while capturing these metrics makes the data error prone.</em></blockquote><blockquote><strong><em>2. </em></strong><em>To keep the same</em><strong><em> </em></strong>simulation environment every time we perform this activity, is also a challenge while performing steps manually.</blockquote><blockquote><strong><em>3.</em></strong> We also explored ‘Qualcomm trepn’ in our automation suite to capture these metrics but results gathered from trepn were not that accurate as per our analysis.</blockquote><blockquote><strong><em>4.</em></strong> Manual vs. Automated — Automation is key to successful monitor these metrics, since during development stages it does not create any manual intervention while capturing data. It is fast with higher accuracy level in capturing results and further insights.</blockquote><h4>5. “Getting from performance testing to performance engineering:”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1cTpCkvGpJp4ZY0HCPZww.png" /><figcaption>Performance Testing to Performance Engineering</figcaption></figure><p><strong>Performance engineering</strong>, though, is a broad set of processes but it’s also a <strong>culture</strong> which has to be imbibed within. If applied correctly it has made systems work to their full potential, which is only possible by thorough deep dive into the system. Just a report is not good enough for any automated test, cause of the problem is more important, which can help developers fix issues quickly.</p><p>The journey from performance testing to performance engineering is to evaluate how we identify the cause and try its optimization for the best possible performance.</p><h4>B. For iOS: 👇 ⏭</h4><p>The in house solution that we built for capturing Non Functional metrics via XCUITest instrumentation tool for capturing memory, CPU, network, etc. performance stats we captured these metrics via XCUI test script.</p><p><a href="https://medium.com/@vishvnath.singh/non-functional-metrics-evaluation-of-makemytrip-ios-app-ad3f1e2d1544">Non Functional Metrics evaluation of MakeMyTrip iOS App</a></p><p><em>Android NFR Automated Test suite framework developed by Mobile Common team at MakeMyTrip.</em></p><h4>References:</h4><ul><li><a href="http://developer.android.com/tools/performance/hierarchy-viewer/profiling.html">http://developer.android.com/tools/performance/hierarchy-viewer/profiling.html</a></li><li><a href="https://developer.android.com/training/testing/espresso/index.html">https://developer.android.com/training/testing/espresso/index.html</a></li><li><a href="https://www.programcreek.com/java-api-examples/index.php?api=android.support.test.espresso.Espresso">https://www.programcreek.com/java-api-examples/index.php?api=android.support.test.espresso.Espresso</a></li><li><a href="https://codelabs.developers.google.com/codelabs/android-perf-testing/index.html?index=..%2F..%2Findex#3">https://codelabs.developers.google.com/codelabs/android-perf-testing/index.html?index=..%2F..%2Findex#3</a></li><li><a href="https://www.youtube.com/watch?v=gk2D7A8MjDo">https://www.youtube.com/watch?v=gk2D7A8MjDo</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebffb4bdf91c" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/non-functional-metrics-evaluation-of-makemytrip-android-app-ebffb4bdf91c">Non Functional Metrics evaluation of MakeMyTrip Android App</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>