<?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 Hakkim Alavudeen on Medium]]></title>
        <description><![CDATA[Stories by Hakkim Alavudeen on Medium]]></description>
        <link>https://medium.com/@hakkim.alavudeen_5033?source=rss-61b4f1e2ef4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bhfOVmwfE111Vu1MvJqUPw.jpeg</url>
            <title>Stories by Hakkim Alavudeen on Medium</title>
            <link>https://medium.com/@hakkim.alavudeen_5033?source=rss-61b4f1e2ef4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:27:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hakkim.alavudeen_5033/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[Mobile Apps Developer Productivity Strategy at Scale]]></title>
            <link>https://medium.com/@hakkim.alavudeen_5033/mobile-developer-productivity-at-scale-f74c4e5d9734?source=rss-61b4f1e2ef4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f74c4e5d9734</guid>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[devex]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Hakkim Alavudeen]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 15:37:19 GMT</pubDate>
            <atom:updated>2025-02-17T15:08:40.147Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll discuss Developer Productivity Engineering (DPE), and why and how large organizations (incl. Google, Meta etc.) are investing heavily into it. I’ll commence with a systematic review of DPE approaches in the industry, and then provide insights into how we developed an evidence-based approach to DPE Strategy. Finally, we will outline a case study on executing our app DPE strategy at scale, resulting in significant app health and productivity wins, as well as how we translated these wins into tangible business ROI metrics.</p><p><strong>Table of Contents</strong></p><ol><li><strong>Developer Productivity — The What and the Why</strong></li><li><strong>An Overview of Canonical Productivity Models — The How</strong></li><li><strong>Driving Great Developer Productivity at Scale</strong></li><li><strong>Reducing Infrastructure Friction</strong></li><li><strong>Creating Customer Value Sustainably</strong></li><li><strong>Enabling Flow State</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6ZN-xSJr2_aT7Qxu" /><figcaption><em>‘It was like floating,’ ‘I was carried on by the flow.’”</em></figcaption></figure><h3><strong>Part 1. Developer Productivity — The What and the Why</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Vi7W1lBMHUjzHl-aq8Nkzg.png" /></figure><p>Jonathan Carter is the technical advisor to GitHub’s CEO. There is an anecdote that he used to hate vacuuming. It turns out that’s because he kept his vacuum on the first floor and bringing it downstairs to the main floor was tedious — But when he realized that he could simply keep the vacuum downstairs where he needed it, then the task wasn’t that hard anymore. Apparently, he now vacuums every other day.</p><p>I don’t know how much truth there is to this anecdote, but I think it is a helpful analogy to illustrate <em>the difference between the quality of a tool, and the qualitative experience of using the tool.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2DJSPAYcqFEU_Uyzv2ygg.png" /></figure><p>Depending on who you speak to, there are all sorts of difference between Developer Productivity Engineering, Developer Productivity Management and Developer Experience/DevEx.</p><p>For the purposes of this article, I’m going to use these terms interchangeably to both denote <strong>the practice</strong> that place the developer at the center stage and looks at all components of her ecosystem — here I mean from infrasructure — to tools — to processes — and asks how they are contributing to her:</p><ul><li>Productivity</li><li>Job Satisfaction, and</li><li>Business Impact</li></ul><p><strong>Why Is DevEx Important?</strong></p><p><em>“In most contexts, software development capacity is the limiting factor for innovation.” </em><a href="https://github.com/gmondello"><em>— Greg Mondello</em></a><em>, Director of Product at GitHub</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*BdmvCO5Cu1krGVCn" /></figure><p>Developer experience gives you a lens of your engineering organization that allows you to improve both the human factor as well as the tools and methods you use — ultimately leading to <strong>better resource economics decision making and business performance</strong>.</p><h4>How To Measure Success of DevEx Initiatives?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*AtVJGtOs1Lln97Mo" /></figure><p>Broadly speaking there are two MECE categories of measures:</p><ol><li>Engineering metrics are the tangible, measurable factors that produce concrete data. Examples include Lines of Code, DORA metrics, and Test Flakiness. These are also called <strong>Objective metrics</strong>.</li><li>Developer surveys are more psychometric in nature, and are thus measuring intangible factors. So things like Job Satisfaction, Workload manageability, and On-call experience are inherently subjective and thus fall under the <strong>Subjective metrics</strong> category.</li></ol><p><strong>Goodhart’s Law &amp; the Gameability of Metrics</strong></p><p><em>“When a measure becomes a target, it ceases to be a good measure”.</em></p><ol><li><strong>Objective metrics</strong> suffer from Gameability. Let’s take the Lines of Code or `LOC` for measuring programming output. Now this measure can easily be manipulated by adding verbose or inefficient code — an extreme example of this is duplicating existing code instead of reusing existing methods. Another example is Code Coverage. Defensive Programming checks make it harder to cover code, e.g. as part of private methods lower down in the stack.</li><li><strong>Subjective metrics</strong> suffer from personal bias. Extraneous feelings are conflated with “Happiness” scores of tooling — we are all guilty of letting our recency bias influence our engineering surveys, e.g. I had a bad experience with a client team this morning, so I chose to score collaboration low if the survey were to come out today.</li></ol><p><strong><em>Conclusion:</em></strong> Productivity is not Performance, and the top institutions are mostly treating them as enablers of productivity.</p><h3>Part 2. Canonical Theories &amp; Models of Developer Productivity</h3><p>Google’s DevOps Research and Assessment (DORA) Team</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/0*XAIqpPZPW7tqCsLo" /></figure><p>The DevOps Research team at Google aka the DORA team as early as 2013 conducted large scale surveys to try and understand statistical links between performance factors.</p><p>In 2014, they published the first State of Devops report. And since then they continue to publish these reports annually.</p><p>They asked the following questions in their survey:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FPyduN306B-ybCjc" /></figure><p>The first two focused on Deployment frequency and Lead time for changes, both of which speak to how quickly you can deliver software. But that’s only half the equation. Moving fast is important, but so is not breaking things in the process. So the last two questions enquired about the stability of deployments i.e. MTTR and Change Failure Rate.</p><p>Based on the results, the team consistently found that survey respondents who achieve high levels of software delivery performance report high levels of business performance, so they postulated that <em>high delivery performance is linked to high Productivity and Business Performance.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knDAzxaiiUfzI3_64F7ABw.png" /></figure><p>And they made these findings public in their famous book Accelerate, which established DORA Metrics as a household name in developer productivity.</p><p><strong>Beyond DORA — 1. SPACE (Jan/Feb 2021)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/0*491qTQQapspYMPDX" /></figure><p>In early 2021, one of the authors of the Accelerate book collaborated with researchers at Microsoft to produce the SPACE model of developer productivity. Therein they postulated that Developer productivity is about more than just the efficiency and reliability of engineering systems that ship software. They theorized that there are certain pervasive, harmful myths and that these myths will continue to persist unless we use new dimensions of productivity, and hence they the SPACE framework.</p><p>Myths about Developer Productivity per SPACE:</p><ol><li>Productivity is all about developer activity</li><li>Productivity is only about individual performance</li><li>One productivity metric can tell us everything</li><li>Productivity measures are useful only for managers</li><li>Productivity is only about engineering systems and developer tools</li></ol><p><em>“The SPACE framework was developed to capture different dimensions of productivity because without it, these myths will persist”.</em></p><p>The following table gives an overview of of the SPACE framework and the KPIs associated with each of these dimensions. The new model, on top of Delivery-oriented (DORA-like) <em>Performance</em> and <em>Activity </em>focus, is also People-focused, and it takes into account <em>Developer Satisfaction i.e. </em>How people Communicate and Collborate, and finally, Flow(which we will discuss later on).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/0*Tm-5SNCG9aEGk5TC" /></figure><p><strong>Beyond DORA — 2. DevEx (Mar/Apr 2023)</strong></p><p>Two years later, in March 2023, some folks who designed the SPACE framework presented another approach, this time based on the tenet that the best way to improve productivity is to focus on Developer Experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*EaO4GZ1sdk5MqL31" /></figure><p>In the DevEx model, there are 3 dimensions, Cognitive Load, Flow state and Feedback Loops:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*gRyBe-IV9F7Xjx4I" /></figure><p>DevEx aims to improve all of these dimensions across both objective and subject measures:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/0*Rwi-KYA8WLp2Vrl_" /></figure><p>The discussion of these frameworks are beyond the scope of this articles. I illustrate these models to give you a sense of how people think about productivity and also to give a sense of how fast this field is evolving.</p><h3>Part 3. <strong>Driving Great Developer Productivity at Scale</strong></h3><p><strong>A Classification framework for Modeling Productivity</strong></p><p>We believe that developing any theory should be ground in sound reasoning, and strongly favor models that are shaped around them.</p><p>A great example is the MECE principle, which was developed by Barbaro Pinto at McKinsey<em> </em>(also the author of<em> the Pyramid Principle: Logic in Writing and Thinking).</em> It is a categorization framework that makes it easier to group items and data in complex systems (such as developer productivity engineering), to better analyze and derive useful conclusions. The two categorization rules of MECE are:</p><ol><li><strong>Mutually Exclusive </strong>— An item or data record can only be in <strong>one</strong> category at a time</li><li><strong>Collectively Exhaustive</strong> — All items or data records <strong>must</strong> be included in one category (e.g., your categorization structure can not exclude an item or data record)</li></ol><p>A good example of the MECE principle applied is using ages to group customers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iV3O0d9Q7hj3_AtB" /></figure><p><strong>A MECE Model of Developer Productivity</strong></p><p>There are many developer productivity models, but I’ve found that Swarmia’s approach is sensible and follows the MECE principle. (Swarmia is a company that specializes in building tooling to enable your developer productivity).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FV2t3nSSI_pqhGfiqPSVQA.png" /><figcaption>Mental model of Swarmia’s DPE Concept.</figcaption></figure><p>Per their mode, the DPE components can be viewed as a black box product factory. The inputs into this product factory are feature / Product specifications. Now these features should build from the organizational strategy and cascade down through the operational plan and finally into a given team’s roadmap and backlog.</p><p>The black box feature factory then does its thing, and as an output produces a feature or product, and as an <strong>outcome</strong> hopefully delivers some business value.</p><p>Overlooking the black box is the affective component, or how the developer perceives this entire materialized flow of information.</p><p>More formally, the model looks as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*DavnGDmWkxKoN58Vrt9_Mg.png" /><figcaption>Swarmia’s DPE model.</figcaption></figure><p>Per Swarmia’s model, they break down developer productivity into three categories:</p><p><strong>1. Infrastructure.</strong> The first factor influencing DevEx is infrastructure, and this speaks to <em>the things that enable development execution</em> i.e. the <strong><em>product machine</em></strong> black box. Inputs such a feature specifications in the form of Jira tickets flow into this black box and as output and outcomes, the black box generates products/features and customer impact. I view this component as very much about <em>“Building things in the right way”.</em></p><p><strong>2. Value of Work: </strong>We refer to the things these product specifications and products that flow in and flow out of this black box respectively as the value<em> </em>of work. Similarly, I’d summarise the essence of this component to be about delivering maximal customer value by “B<em>uilding the right things”.</em></p><p><strong>3. Feelings about Work:</strong> Here we are mainly talking about the affective dimension or how developers perceive their productivity and experience. it speaks to the importance of investing into creating the right culture that fosters creativity, enablement and psychologically safety at the workspace i.e. <em>“Building in the right culture”</em></p><p><strong>Putting the Model into Practice — </strong>How To: Drive Great DevEx</p><ol><li>Reduce infrastructure friction <em>(Enables better infrastructure)</em></li><li>Create customer value sustainability (<em>Improves the value of work )</em></li><li>Enable ‘Flow State’<em> (statistically highest impact for improving feelings about work)</em></li></ol><p>Let’s discuss each of these points further in the next section.</p><h3><strong>PART 4 - </strong>Reducing Infrastructure Friction</h3><p>Unless you’re building a greenfields app, Tech Debt tends to dominate infrastructure friction. Worse, Tech debt can be specific down to the level of code domains and their code owners.</p><p>How may you then accurately quantify your tech debt?</p><p>There are many theories on this, for example, Adam Thornhill presented his <em>“Software Design X-Rays”</em> concept at a Goto Conference, and his book on the subject presents multiple approaches to automating the quantification and reduction of tech debt, and is well worth a read if you’re interested.</p><p>However, a more pragmatic approach is again to place the developer in the center, and to utilize Developer Surveys to curate and document the nature and severity of the <strong>biggest pain points</strong> in the development process.</p><p>In every organization, Tech debt is at odds with business pressure to deliver customer facing features.</p><p>That leaves engineering managers with the unenviable task of securing buy-in from senior executive decision makers to invest into addressing tech debt. In some sense of the phrase, engineering managers need to speak the language of the business management.</p><p>Here, an excellent paper by some researchers at the University of Groningen titled, ‘The financial aspect of managing tech debt: A systematic review”, presents a literature review of concepts and a vocabulary to quantify tech debt from a financial perspective. I highly recommend it as an excellent resource if you’re struggling in this regard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*72xvff16Naj38Pfq" /></figure><p>As a sneak peak, here are some approaches that they present:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRjc9x13co_pBUEoc9PDkQ.png" /><figcaption>Managing Tech Debt Approaches.</figcaption></figure><p>Back to our Top 3 Biggest paint points. Based on some fairly simple analysis, we’ll pick <strong>the top 3 biggest pain points</strong> of a sufficiently high level granularity, and choose to address them first.</p><p>And In the world of mobile apps, it is no surprise that often the most impactful root causes of <strong><em>avoidable </em></strong>infrastructure friction are:</p><ol><li>Slow Builds</li><li>Complex Dependency Management</li><li>Slow IDE Experience (Setup, fresh builds, etc.)</li></ol><p>Let’s review each of these factors next.</p><p><strong>Challenge 1: Slow Builds</strong></p><p>Waiting for slow builds is the biggest source of friction in the app world…and we say that primarily because it isn’t uncommon for developers to build their code tens of times per day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zUahHd5I1eIzB3OE" /></figure><p>“{Waiting for builds is} similar to how anxious people get sitting at a stop light — You’re not there for very long. But it’s a psychological thing that humans don’t like to wait.” <em>- Github’s Jonathan Carter.</em></p><p>Compare this to when you are cruising along nicely on an open highway.</p><p><strong>Slow Builds — The Impact of Modularity</strong></p><p>If you’re not from an app background, you’re probably wondering why build time so problematic for mobile apps.</p><p>Unlike websites and backend services, with apps you need to compile all your customer facing code into a single binary that needs to be submitted at a third party apps store, before the customers can get it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0-C5MlgiXA_DfPAm" /><figcaption><strong>Mobile Apps vs Other Client Types: The number of Assemblies and Deployments</strong></figcaption></figure><p>A monolithic binary implies that each time you change anything, the compiler is forced to build the entire code base, which in large companies may well be in the order of millions of lines of code.</p><p>What do we do about this huge monolith?</p><p><strong>Solution: Modularization</strong></p><p>In order to reduce decouple unmodified code from needing to be compiled, we can attempt to m<em>odularize</em> <em>the monolith</em> i.e. break up the large single binary into smaller modules that are mostly decoupled from each other. Then in theory, only modules with new code changes and any dependent modules of these changed modules will need be compiled.</p><p>Yay! Now we’ve reduced our compile time and made it way better. But as a side effect of modularization, teams eventually evolve towards an explosion of modules. Modules, modules, everywhere!</p><p><strong>Challenge 2: Dependency Management Hell</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VHdHWK4gI9ICUQ5u" /><figcaption>This example from Uber, where they had 12,000 modules that needs to be managed.</figcaption></figure><p>If you’re building a backend microservice, you’re probably just building a handful of targets when you’re trying to compile something, but in Apps, this number can be in the hundreds if not more. Whereas there was almost no dependencies in the monolith, now you have a dependency management nightmare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t10PltOlR_kxprjZ" /></figure><p>So this is why we are seeing large teams invest heavily into build engineering optimizations.</p><p><strong>Solution: Build engineering optimizations.</strong></p><p>Typically this implies migrating to a more sophisticated build tool. Below, we have the example of the Apple Siri team who over the period of a year migrated their build system from Maven to Gradle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w-97NHIDsxixTVv9" /><figcaption>Apple Siri Team Migration Journey to Gradle.</figcaption></figure><p>These tools typically optimize the build process by running a process in a background thread that keeps track of file changes, so it knows exactly only the changed files that must be built at any time (and hence their dependencies).</p><p>The Siri team callout the gradle daemon and test parallelization as their most impactful success factors. We will talk about test parallelization a little later. The gradle daemon reduces build times by:</p><ul><li>caching project information across builds.</li><li>running in the background so every Gradle build doesn’t have to wait for JVM startup.</li><li>benefiting from continuous runtime optimization in the JVM.</li><li>watching the file system to calculate exactly what needs to be rebuilt before you run a build.</li></ul><p>The Siri team also published the results of their build migration efforts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SUAMNTZIKcT3RMX9" /></figure><p><em>Per their calculations: (11 mins * 350 engineers * 250 days) /60 mins = 16,500 developer hours saved per year across their 350 strong engineering team!</em></p><p>The fancier build tools also come with useful new capabilitites. One noteworthy area is the plethora of build logs these tools are able to generate. The onus then falls on builder platform teams to invest into utilizing the capabilites of the tools. Typical use cases are to better enable engineers to debug their builds and to better enable internal builder incident response teams to detect and respond to problems with the build/ CI/CD pipeline.</p><p>We’re seeing companies like Uber invest into this heavily, for example, through their Local Developer Analytics (LDA) system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/0*SGBpp_lc6ZDfZdqw" /><figcaption>Ubers Build Monitoring System.</figcaption></figure><p>This is much harder to do here in the EU due to our stringent privacy laws that forbid data collection from local developer machines. However, data can be collected in the context and for the use of a single engineer. Plus, data from the shared CI/CD pipeline builds doesn’t typically suffer from the GDPR restrictions.</p><h4>Challenge 3: Slow IDE Experience</h4><p>As project complexity grows and without proper decoupling and parallelization, the resource utilization by IDE threads (CPU, RAM) increases significantly, leading to a slow development experience. This is exacarbated when you need to pull down new code branches and run builds with an empty cache.</p><p><strong>Solution: Cloud IDEs</strong></p><p>There’s a pretty exciting development in this area. And that is Remote IDEs and builds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/0*yprxgEatkhEh7gQ7" /></figure><p>Airbnb for example are experimenting with the Remote Development offer from JetBrains. Android studio is sort of the default IDE where we build Android applications. And it is powered by the IntelliJ engine from JetBrains.</p><p>What they’ve done is that they’ve separated this IntelliJ engine from your local machine and it can now run on a remote machine. This enables you to now download source code directly onto the remote machine. A thin IntelliJ client runs locally on your laptop, and it connects to the IntelliJ engine on a powerful remote machine, say an AWS EC2 instance.</p><p>You could now spin up a new machine on demand, that’s pre-loaded with your branch as well as a pre-warmed build cache.</p><p>You may also choose the type of compute resource you need. Perhaps you will be running some heavy calculations today, great, so you can spin up a <em>AWS Compute-optimized</em> instance. You have to run a lot of sql queries with heavy demand on your memory — ok great, then you spin up a <em>Memory-optimized</em> AWS instance.</p><p>Source code is thus never transferred or stored on your local machine, making your work laptop <em>source code free!</em></p><ul><li>No more laptop resource limitations</li><li>No more wasting hours on setup. Spin up a machine that’s pre-loaded with your branch with a pre-warmed build cache</li><li>No more local builds. Leverage other even more powerful build servers to trigger local builds</li></ul><h3>PART 5. Creating Customer Value Sustainably</h3><p>We covered Reducing Infrastructure Friction. The next thing we can do to drive great DevEx is to create customer value Sustainably. So this is focusing on the inputs into and outputs/outcomes out of the engineering black box.</p><p>For most organizations, creating customer value is the highest priority, and rightfully so, because that’s what pays the bills. Research has also shown that <em>driving customer impact</em> makes for a meaningful work experience. However, many companies forget to invest into doing this<strong> <em>in a sustainable way</em></strong><em>.</em></p><p>A mistake many leaders make is to treat their engineering organization as a feature factory with 100% efficiency. In practise, this often results in teams cutting corners to make hard deadlines, leading to bad code. Over time this creates technical debt. The critical fact to note here is that often, by the time the impact of tech debt typically surfaces, it is already too late to address it in a manner that is unobtrusive to the business. Then teams get into firefighting mode and run against an insurmountable wave of bugs.</p><p><strong>Brook’s Law and Tech Debt</strong></p><p>A common fallacy that many managers often bank on in order to justify postponing the resolution of tech debt is to take the position that they can always throw more people at the problem if they really need to.</p><p>However, we know from Brook’s law that, practically-speaking, <em>adding more than a certain number of people to a late project only makes the project later!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/0*6ty1K57Wr1vo5bt1" /><figcaption>Brook’s law and the impact of adding people to a late project.</figcaption></figure><p>This is typically due to:</p><ul><li>Ramp-up or onboarding time</li><li>Increase in communication links (combinatorial problem)</li><li>Software work packages are often not easily divisible</li></ul><p>Worryingly, a large scale industry research covering 40,000 software modules across multiple industry segments and programming languages found that while over 40% of developers times are spent on tech debt, only 10% of business managers are actively investing to reducing their team’s tech debt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/0*9O7avrncdsA_BE1n" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/0*YRv0iaviHsdKvBKD" /></figure><p><strong>Challenge: Lack of tech debt transparency for executive decision makers.</strong></p><p>It is often not that executive decision makers are unwilling to invest into a stable engineering foundation. What they lack is transparency into tech debt and formal mechanisms to track debt as part of their organizational deliverables.</p><p><strong>Solution: Invest into formal portfolio &amp; prioritization mechanisms e.g. via the ‘Investment Buckets’ Framework</strong></p><p>Dropbox popularized a simple prioritization framework that divides work into just four categories based on its impact:</p><ul><li>Building new stuff</li><li>Improving things</li><li>Improving developer productivity, and</li><li>Keeping the lights on (KTLO)</li></ul><p>Categorizing your work into these buckets allows you to:</p><ul><li>Align on and adhere to <strong>Prioritization Principles</strong> e.g. Investment Bucket allocations — This forces you to create impact in a systematic manner.</li><li>Minimize <strong>root causes of Firefighting</strong>. High levels of KTLO contribute to <strong>developer burnout and attrition</strong>. Understanding what causes KTLO helps you prioritize tech debt improvements.</li><li>Continually pay back Tech Debt. <strong>10% is a great goal for many teams</strong>, but sometimes making more significant investments in issues with major impact makes sense.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/0*RWUlUkZG7zyqgHsy" /><figcaption>Creating a shared alignment of a healthy portfolio balance is crucial to pay back tech debt.</figcaption></figure><p>In summary, what we’re saying here is that we should prioritize<strong> Building the Right thing</strong>, and the right thing is not just customer facing features. It can and should also be continuous infrastructure improvements.</p><h3>PART 6. Enabling Flow State</h3><p>As managers, we need to remind ourselves that the tasks we assign to our directs can have a large effect on their mental health.</p><p>A psychologically engaging state called <em>Flow</em> occurs when the complexity of a task an engineer is working on matches well with their level of skill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6ZN-xSJr2_aT7Qxu" /><figcaption><em>‘It was like floating,’ ‘I was carried on by the flow.’”</em></figcaption></figure><p>Schaffer (2013) proposed seven flow conditions:</p><ul><li>Knowing what to do</li><li>Knowing how to do it</li><li>Knowing how well one is doing</li><li>Knowing where to go (if navigation is involved)</li><li>High perceived challenges</li><li>High perceived skills</li><li><strong>Freedom from distractions</strong></li></ul><p>We particularly want to call out the last one –Freedom from Distractions– as there is a lot of recent research emphasis on this dimension.</p><p>To explain this best, I want to borrow an apt analogy from <a href="https://github.com/idan">Idan Gazit</a>, senior director of research at GitHub, that likens developing software to building a giant house of cards within our mind. And tiny distractions can knock it over, leaving you to rebuild the context again. I think it accurately captures the impact of context switching too often.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YN4iSAbbSuJlwxQz" /></figure><p>`<strong>Longest period of Uninterrupted Coding Time`</strong> is the most dominant measure on self-reported productivity — <em>From a combined study by Microsoft and Facebook titled, “Mind the Gap: On the Relationship Between Automatically Measured and Self-Reported Productivity (2020)”</em></p><p>A combined study by Microsoft and Facebook revealed that `Longest period of Uninterrupted Coding Time` was such a hugely dominant measure on self-reported productivity, that in fact, Microsoft has apparenty started investigating to make it a key metric for some of its development teams.</p><p><strong>Challenge: How do we enable flow state?</strong></p><p>There is ofcourse the obvious that you can do, which is to minimize meetings for engineering teams. Default to asycnronously aligning on topics, through the use of collaborative office tools, like Google Docs or Sheets. At Zalando, we have even enshrined this as a Founding Mindset Principle in the form of, “Don’t meet because it is Thursday”. As it says, the aim is to reduce meetings unless strictly needed.</p><p><strong>Solution: DevEx Bots</strong></p><p>Companies like Meta and Microsoft are taking this a level further and trying to automate the creation and maintenance of conditions conducive to Flow. Examples of such automation at Meta are:</p><p><strong>Focus Bot</strong></p><ul><li>Tracks users for signs of deep work e.g. when you are not immediately responding to notifications</li><li>Creates <strong>Focus Blocks</strong> and<strong> </strong>mutes notifications to allow them to work</li><li>Also informs others trying to contact you of your focus block</li></ul><p><strong>Balance Bot</strong></p><ul><li>Monitors Notification Frequency from subscribed communication channels</li><li>Prompts you for minimizing notifications</li><li>Reduces the overall volume of notifications coming in</li></ul><h3>Conclusion</h3><p>In this article, we explored many dimensions of Developer Productivity Engineering, and we formulated a MECE approach to defining and reason about improving DPE. We also examined some trending industry practices that we are seeing and applied them in the context of our DPE framework. Hopefully, this inspires you to also consider adopting DPE practices if you’re not doing so already. Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f74c4e5d9734" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile App Testing Strategy at Very Large Online Platforms (VLOP)]]></title>
            <link>https://medium.com/@hakkim.alavudeen_5033/mobile-app-testing-strategy-at-zalando-ecd119496658?source=rss-61b4f1e2ef4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecd119496658</guid>
            <category><![CDATA[test-strategy]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Hakkim Alavudeen]]></dc:creator>
            <pubDate>Wed, 22 May 2024 10:59:03 GMT</pubDate>
            <atom:updated>2024-06-30T17:28:55.494Z</atom:updated>
            <content:encoded><![CDATA[<p>Hakkim Alavudeen<br>Head of App Engineering @ Zalando</p><p><strong>Table of Contents</strong></p><ol><li>Defining App Testing Strategy</li><li>The Elements of our Guiding Policies</li><li>Coherent Actions</li><li>Success Measures</li><li>Results</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*xSDao12eE4svtzkW" /><figcaption>The Elements of the Good Strategy Kernel.</figcaption></figure><h3><strong>Defining App Testing Strategy — Context</strong></h3><p>No strategy exists in a vacuum. The context (the problem space and its forces) is going to deeply shape your strategy. Here are some challenge parameters to guide our discussion:</p><ul><li>Capacity constraints<br>~100 native iOS and Android engineers</li><li>Mounting compliance regulations</li><li>Increasing pressure to deliver more customers journeys, faster</li><li>Large testing related tech debt across all test types</li></ul><p><strong>What does delivery entail in the mobile apps world?</strong></p><ul><li>Submit a <strong>single binary </strong>(representing the native app in code) to a third-party app store.</li><li>Once approved by the app store, the release will need to be downloaded and installed on customers’ phone.</li><li>Ideally this shouldn’t happen too frequently (to minimise mobile network data usage). 4 or even 3 week releases are considered quite good in the industry.</li></ul><p><strong>Shorter Release Frequency and DORA</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*Oy2AlekggNmT8apAjVYyng.png" /><figcaption>The first DORA report.</figcaption></figure><p>Interestingly, it turns out that reducing the <strong>deployment frequency</strong> also directly correlates with gaining competitive business advantage. So where does that come from? All of you are probably familiar with the Dora report <strong>— but if you’re not:</strong></p><p>As early as 2013, The DevOps Research team at Google (aka the DORA team) conducted large scale surveys to try and understand statistical links between performance factors. In 2014, they published the first State of Devops report. And since then they continue to publish these reports annually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tZ3JEdJoXeUNP3yL" /><figcaption>The original DORA metrics.</figcaption></figure><p><em>“DORA’s research has consistently found that a team’s software delivery capability </em><strong><em>reliably predicts</em></strong><em> the value that the team provides to their organization. Survey respondents who achieve high levels of software delivery performance report that </em><strong><em>their organizations perform better on business objectives</em></strong><em>. Performance can be assessed according to four software delivery metrics” </em>- DORA Website</p><p>The Challenge Summarised:<em> </em>In order to gain competitive business advantage, we want to deliver delightful customer experiences faster but with less engineering capacity. More precisely:<em> We want to deliver reduce our Deployment Frequency from 3 weeks (status quo back then) to 2 weeks.</em></p><p>Now, the full Scope of this involves improvements in the maturity of:</p><ul><li>App Architecture, esp. towards App Modularisation</li><li>Sprint and Release Planning</li><li>Operational Excellence e.g. Telemetry, Production incidents response capabilities</li><li><strong>Quality Assurance (Testing, esp Automation)</strong></li></ul><p>I’ll focus on the Improving Testing Maturity section for this article. <em>(And follow up with the others in later articles).</em></p><h3><strong>Defining Strategy at Apps — A</strong>pproach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*_J80mi7o40fOs6aXjYXmWQ.png" /><figcaption>Book: Good Strategy Bad Strategy, by Richard Rumelt.</figcaption></figure><p>We wanted a well established approach to defining strategy that is based on sound principles and data for evidence, and we really like Richard Rumfelt’s concept of structuring strategy around the Strategy Kernel, from his book, Good strategy, Bad strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*31ZhpPi76b2P68041oDznw.png" /><figcaption>Elements of Bad Strategy.</figcaption></figure><p>The premise of this book is that you’ve got to be able to recognize the elements of bad strategy in order to understand what good strategy looks like. Some examples he gives in his book of bad strategy are things like aspirational goals or objectives, inability to make choice, and Fluff i.e. <em>lofty language that tries to masquerade the lack of meaningful substance underneath.</em></p><p>He postulates that sound strategy contains three elements at its <strong><em>Kernel</em></strong> or core:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*xSDao12eE4svtzkW" /><figcaption>The Elements of the Good Strategy Kernel.</figcaption></figure><ul><li><em>Diagnosis</em> correlates to <em>Challenges.</em></li><li><em>Guiding Policy</em> correlates to <em>Choices made.</em></li><li><em>Coherent Actions correlate to a concrete roadmap, where activities incrementally build on top of each other</em></li></ul><p><strong><em>The Strategy Kernel Applied</em></strong></p><ul><li><strong>Diagnosis:</strong><br><strong><em>→​ How do we improve Testing Outcomes with minimal capacity?</em></strong></li><li><strong>A Guiding Policies</strong>: <br><strong><em>→​ Focus efforts on Improving Customer Facing UI tests first<br>→​ What further policies/decisions does this imply?</em></strong></li><li><strong>A Set of Coherent Actions:<br><em>→​ Create and Execute Roadmap based on decisions made.</em></strong></li></ul><h3><strong>The Elements of our Guiding Policies — Challenges</strong></h3><p>Let’s dive deeper into decisions and implications thereof. The following questions immediately come to mind:</p><p><strong><em>… Why Higher and not Lower in the Test Pyramid (Unit tests)</em></strong>?</p><p><strong><em>… Does that mean unit tests are less important?</em></strong></p><p><strong><em>…</em></strong> <strong><em>Wait what does “</em></strong>Customer Facing UI Tests”<strong><em> even mean?</em></strong></p><p>So let’s start off by clarifying these. The Testing pyramid concept and taxonomy suffers from some fundamental concerns:</p><p><strong><em>1. The Test Pyramid — Updated</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*Td176Us8ThKJaFvuVDR-pQ.png" /></figure><p><em>“Don’t become too attached to the names of the individual layers in Cohn’s test pyramid. In fact they can be quite misleading: service test is a term that is hard to grasp (Cohn himself talks about the observation that a lot of developers completely ignore this layer). </em><strong><em>In the days of single page application frameworks like react, angular, ember.js and others it becomes apparent that UI tests don’t have to be on the highest level of your pyramid — you’re perfectly able to unit test your UI in all of these frameworks.</em></strong><em>” — “The Practical Test Pyramid”, </em><strong><em>Martin Fowler</em></strong><em>, his official blog.</em></p><p><strong><em>2. Fuzzy Definitions</em></strong></p><p><em>“What do you call a test that tests your application through its UI?</em></p><ul><li><em>An end-to-end test?</em></li><li><em>A functional test?</em></li><li><em>A system test?</em></li><li><em>A selenium test?</em></li><li><strong><em>Tests running against less of the stack?</em></strong></li></ul><p><em>I’ve heard all them, and more. I reckon you have too. The same equally frustrating inconsistency. Just what, exactly, is</em></p><ul><li><em>an integration test?</em></li><li><em>A unit test?</em></li></ul><p><em>How do we name these things? Gah!</em></p><p><em>The problem with naming test types is that </em><strong><em>the names tend to rely on a shared understanding of what a particular phrase means</em></strong><em>. That leaves plenty of room for fuzzy definitions and confusion.” — from ‘Test Size’, </em><strong><em>Google Testing Blog</em></strong><em>.</em></p><p><strong><em>3. Atomic Design &amp; Test Types</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*s8fKsedFpqFS7xnxoH8UyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iU0PsWONcTqi_OWWWA3GNg.png" /><figcaption>The Atomic Design categories illustrated with examples.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7sxjoKtLo1HD8SDapuS8A.png" /></figure><p>So which is the <em>correct </em><strong><em>“Unit”</em></strong>? …<strong><em>That probably depends on who you ask!! </em></strong><em>There is no one universally correct answer (atleast in our opinion anyway!)</em></p><p><strong><em>Developing our Ubiquitous Language</em></strong></p><p>Customer Facing UI Tests for us mean tests that are intrinsically:</p><ul><li>Hermetic (Isolated, deterministic, repeatable tests)</li><li>Fidelitous (High fidelity i.e. as real and close to the actual customer experience)</li><li>Agile &amp; Maintainable to best effort</li><li>Could be Big, Medium or Small tests</li></ul><p>“<a href="https://twitter.com/kentcdodds/status/977018512689455106"><em>The more your tests resemble the way your software is used, the more confidence they can give you</em></a><em>” — React Testing Library Principle.</em></p><p><em>NB: This does NOT mean unit tests are less important!</em></p><h3><strong>Elements of our Guiding Policies — The Key Choices</strong></h3><p>There is a plethora of mobile apps in all kinds of form factors, often with a customized operating systems of the phone device manufacturer, like Samsung’s ONE UI that’s a layer above the Android OS.</p><p>Constraint: <em>It is impossible to automate every customer facing feature or customer feature of a mobile app!</em></p><p>Solution: <em>Narrow down scope through segmentation/bucketing</em></p><p><strong><em>The MECE Principle</em></strong></p><p>Developed by <strong>Barbaro Pinto</strong> at McKinsey<em> (also author of the </em><strong><em>Pyramid Principle</em></strong><em>: Logic in Writing and Thinking),</em> this is a categorisation framework that makes it easier to group items and data in <em>Complex Systems</em>, in order to better analyze and derive useful conclusions. The two categorisation rules of MECE are:</p><ul><li><strong>Mutually Exclusive </strong>— An item or data record can only be in <strong>one</strong> category at a time</li><li><strong>Collectively Exhaustive</strong> — All items or data records <strong>must</strong> be included in one category (e.g., your categorisation structure can not exclude an item or data record)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QBs4i4U36qnhKzUo" /></figure><p><strong><em>The Key Choices</em></strong></p><p><strong><em>→​ Focus efforts on Improving Customer Facing UI tests first</em></strong></p><p><strong>Q1:</strong> What tiers of Customer facing UI tests should we write?</p><p><strong>Q2:</strong> Which type of testing tool(s) should we employ to write them?</p><p><strong>Q3:</strong> Do we run our tests on real or simulated/emulated devices?</p><p><strong>Q4:</strong> Should we employ local or cloud device farms to run UI tests?</p><p><strong>Q5:</strong> Which device farm provider should we adopt to run UI tests?</p><p><strong>Q6:</strong> Which UI test framework should we employ?</p><p>Next, I’ll deep dive into our rationale in answering these questions towards creating the guiding policy.</p><h3><strong><em>Q1: What tiers of Customer facing UI tests should we write?</em></strong></h3><p>We proposed the following MECE Categories:</p><ol><li>Tiers of automated UI Tests</li><li>Types of test scenarios</li><li>Scope of screen interaction</li></ol><p>Let’s decompose each of these types down further.</p><p><strong>Category 1: Tiers of automated UI Tests — Our Taxonomy / Ubiquitous Language</strong></p><p>To illustrate using the example of an <strong>Order History feature:</strong></p><ol><li><strong>Functional tests: </strong>Validate that a given user interaction correctly works as set out in the original specification of the feature, typically produced by the Product team.<br>Example: automated UI test to ensure that all past orders are shown in the Order History view when the user opens this view.</li><li><strong>Non-functional tests: </strong>Validate that a correct user interaction doesn’t degrade under certain conditions.<br>Examples: <br>i) Automated UI test to ensure that the Order History view <strong>loads fully within a maximum latency threshold. <br></strong>ii) Automated UI test to ensure that the Order History view <strong>is responsive across devices with a minimal CPU/Memory spec threshold.</strong></li></ol><p>Further,<strong> </strong>Non-functional tests can be classified as:</p><ol><li><strong><em>Security and Authorization tests</em></strong> e.g. ensure that a malicious user cannot access the Order History view of another user.</li><li><strong><em>Performance tests</em></strong> <strong><em>(customer-specific parameters)</em></strong> e.g. verify that Order History view <strong>loads within 1s</strong> even if the client has thousands of past orders.</li><li><strong><em>Load Tests (positive)</em></strong> e.g. verify that Order History view loads within 5s under <strong>server-side load</strong> (when order history service is under significant load) or under <strong>client-side load</strong> (simulated high memory or background resources consumption).</li><li><strong><em>Stress Tests (negative)</em></strong> i.e. Increase server-side or client-side load parameters systematically in order to find capacity limit points of the Order History view and ensure that the system performs as expected under load, and fails gracefully under stress.</li><li><strong><em>Usability Tests</em></strong> i.e. these test <strong>accessibility</strong>, intuitiveness and appeal of user interactions in the Order History view.</li></ol><p><strong>Category 2: Types of test scenarios</strong></p><p>To ground theoretical concepts in practice, let’s again illustrate the test scenario types, each with an example, this time from the “Shopping Cart Checkout — Edit Delivery Address” use case:</p><ol><li><strong><em>Positive tests or Happy Paths: </em></strong>Verify correctness of a user interaction with valid, required parameters. <br>e.g. ensure that valid delivery addresses can be submitted by the user.</li><li><strong><em>Positive tests + optional parameters: </em></strong>Verify correctness of a user interaction with valid, required parameters AND valid optional parameters.<strong><br></strong>e.g. case 1, plus a valid input for the <strong>optional</strong> <em>“Additional delivery info”</em> input.</li><li><strong><em>Negative testing — Invalid input: </em></strong>Ensures that your application can gracefully handle unexpected user behavior and invalid input.<strong><br></strong>Examples: <br>i) ensure that user cannot update the address with a non-German city when Germany is set as the delivery country, or<br>ii) ensure that user cannot input a numerical value for the “Town / City” text field.</li><li><strong><em>Destructive Testing — Edge cases: </em></strong><em>Intentionally</em> attempting to crash the view. <br>Examples: <br>i) by aborting the submit operation while it is in progress by clicking the back button, or<br>ii) by writing small concurrency calls so as to simulate updating the delivery address by the same user from multiple clients.</li></ol><p><strong>Category 3: Scope of Customer Interaction</strong></p><ol><li><strong>Screen UI tests: </strong>Checks critical user interactions <strong><em>within a single screen</em></strong>, by performing actions such as Clicking on buttons, Typing in forms, and Checking visible states, etc. <br>One test class per screen is a good starting point.<br>Models <strong><em>consistent state constraints </em></strong>within a single screen.</li><li><strong>User flow tests/Navigation tests: </strong>Checks customer journey <strong><em>across screens. <br></em></strong>Corresponds to a logical business use case e.g. the ‘Shopping Cart Checkout’ customer journey.<br>Ensures <strong><em>consistent state transfers</em></strong> across many screens.</li></ol><h3><strong>Q 2: </strong>Which type of testing tool(s) should we employ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W4BGj6b-JIVrmDAk" /><figcaption>Comparison of testing tool types against evaluation criteria.</figcaption></figure><p>As discussed earlier, some of the factors specific to mobile apps are:<br>Multiple screen resolutions; multiple languages i.e. localization; multiple form factors, orientations and dynamic screen content.</p><p><strong>1. Capture and Replay<br></strong>Able to record actions such as clicking, scrolling, swiping, or typing into a script. Then through the replay function, execute the exact same actions over and over again.</p><p><strong>2. Coordinate-Based Recognition<br></strong>Rely on predefined x and y axis coordinates to access and interact with the UI elements of the app.</p><p><strong>3. OCR/Text Recognition<br></strong>These tools obtain the <strong>text of the control elements</strong> that are visible on the screen of the mobile device. To determine if the text is visible on the screen, OCR technology is used. <br>Example: <em>Eggplant</em></p><p><strong>4. Image Recognition aka Snapshot Testing<br></strong>Compare images in order to drive the user interface of an app. They take screenshots, for example, of buttons or labels or even an entire view of a given screen, that are embedded into your script. When the script is executed, the image recognition tool compares the current screen with the stored baseline image.<br>Example: <em>Shot, Testify, Dropshots, Paparazzi</em></p><p><strong>5. Native Object Recognition<br></strong>Detect the UI objects with a UI element tree, accessed via XPath (XML Path Language), CSS (Cascading Style Sheet) locators, or the native object ID of the element. Enables native elements access, such as buttons, labels, views, lists, and other kinds of UI elements. Examples: Espresso, UI Automator, XCUITest.</p><h3><strong>Q3: </strong>Run tests on real or simulated/emulated devices?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YALeRlDEL_F_KxpC" /><figcaption>Evaluation of Emulators / Simulators.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1SsjgMRsz--XEC-t" /><figcaption>Evaluation of Real Devices.</figcaption></figure><h3><strong>Q4: </strong>Should we employ Local or Cloud Device Farms to run UI tests?</h3><p><strong>Local Device farm</strong></p><p>Pros</p><ul><li>Full control over devices.</li><li>Cheaper when testing on a small number of devices.</li></ul><p>Cons</p><ul><li>New devices released each year, representing continuous investment into devices.</li><li>Costly, in terms of number of devices needed to reach decent coverage.</li><li>Costly, in terms of maintenance efforts.</li></ul><p><strong>Cloud Device Farm</strong></p><p>Pros</p><ul><li>Wide array of devices available. Cumulative coverage across a wide range of devices possible when swapping out non-core devices with each new run.</li><li>Cost effective “Pay as you go” costing model.</li><li>No device maintenance required.</li></ul><p>Cons</p><ul><li>More expensive when testing on a small number of devices.</li><li>Test failures on remote devices are sometimes not reproducible locally.</li></ul><h3>Q5: Which device farm provider should we adopt to run UI tests?</h3><p><strong>Candidates</strong></p><ul><li>BrowserStack.</li><li>Firebase Test Lab.</li><li>AWS Device Farm.</li></ul><p><strong>Parameters</strong></p><ul><li>Vendor lock-in.</li><li>Cost.</li><li>Available phone &amp; tablet devices.</li><li>Support for testing frameworks.</li><li>Test reporting functionality incl. Test flakiness, performance profiling.</li><li>Parallelisation, incl Sharding configurability.</li></ul><h3><strong>Q6: </strong>Which Test Framework should we employ?</h3><p>Today’s <strong>automated testing tooling ecosystem is huge,</strong> catering to a wide range of testing types and scenarios.In order to narrow down our choices, we put forward the following <em>selection criteria</em>:</p><ol><li>Must facilitate writing <strong>hermetic</strong> UI tests i.e. the test is fully isolated from non-deterministic state and interactions e.g. through mocking of dependencies that introduce variability</li><li>Must enable engineers to minimize test <strong>flakiness</strong>.</li><li>Must be compatible with <strong>programming languages</strong> already familiar to engineers.</li><li>Must be <strong>performant</strong> and <strong>cost-effective</strong>.</li><li>Must be compatible with internal CI/CD infra,<strong> and AppCenter</strong>(for creating seamless internal builds).</li><li>Must be compatible with <strong>all of our tooling and testing recommendations</strong>.</li></ol><p><strong>Compatible UI Test Automation Ecosystem for Android:</strong></p><ul><li>Appium</li><li>Calabash for Android</li><li>Espresso</li><li>UI Automator</li><li>Robolectric</li><li>*Spoon</li></ul><p><strong>Compatible UI Test Automation Ecosystem for iOS:</strong></p><ul><li>XCTest / XCUITest</li><li>Appium</li></ul><h3><strong>Coherent Action At Enterprise-Scale</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*hvj8IVOpyf-LAEnk-5JzLQ.png" /><figcaption>Elements of Good Strategy.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*58o8i-ZIQiAbGD2a" /></figure><p>As part of a pre-kick-off phase, i.e. Milestone 0 <em>(M0)</em>, we could run a period of enablement in the form of :</p><ol><li>In-person trainings on how to write tests using best practices with the selected tooling, and</li><li>Integration of tooling into our CI/CD infra and development workflows, so the adoption is seamless, and supporting onboarding of client teams</li><li>Setting up code coverage dashboards, particularly for coverage from UI tests, and sending out weekly trends on coverage data.</li><li>Implement missing capabilities in the platform/foundation for the testing tools.</li></ol><h3><strong>Measuring Success — KPIs</strong></h3><ul><li><strong>Deployment Frequency (Northstar)</strong></li><li><strong>Code Coverage (</strong>per Module)</li><li><strong>Change Failures</strong></li><li><strong>Probabilistic flakiness score</strong> (PFS, for Test Flakiness)<br>Per test, fixture, test set, module etc.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecd119496658" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>