<?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 Max Buster on Medium]]></title>
        <description><![CDATA[Stories by Max Buster on Medium]]></description>
        <link>https://medium.com/@realmaxbuster?source=rss-bb0d774be860------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-RcacNAVSwtvxT3W17CXFA.jpeg</url>
            <title>Stories by Max Buster on Medium</title>
            <link>https://medium.com/@realmaxbuster?source=rss-bb0d774be860------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:26:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@realmaxbuster/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[Unit Testing Android Fragments Without Breaking Your Pipeline]]></title>
            <link>https://medium.com/koala-tea-assurance/unit-testing-android-fragments-without-breaking-your-pipeline-66d6c46d7?source=rss-bb0d774be860------2</link>
            <guid isPermaLink="false">https://medium.com/p/66d6c46d7</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[androidx]]></category>
            <category><![CDATA[ui-testing]]></category>
            <dc:creator><![CDATA[Max Buster]]></dc:creator>
            <pubDate>Sun, 24 Oct 2021 21:52:18 GMT</pubDate>
            <atom:updated>2021-10-24T21:52:18.346Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*D5N8MVtfciWkvF5KEoGi4g.png" /></figure><p>UI testing has historically been a huge pain. Typically it involves writing E2E tests which run on physical devices and are constantly broken by data or environment changes. However, with AndroidX’s introduction of ActivityScenario and FragmentScenario, testing your UI at the JVM level is now easier than ever!</p><p>But there’s a catch.</p><h3>The Problem</h3><p>Fragment testing requires a host activity, and since the test support library can’t rely on a specific activity in the developer code, they add their own activity. When you include the test dependency for fragment testing:</p><pre>debugImplementation &quot;androidx.fragment:fragment-testing:$fragment_version&quot;</pre><p>it includes <a href="https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-main/fragment/fragment-testing/src/main/java/androidx/fragment/app/testing/FragmentScenario.kt?source=post_page---------------------------%2F%2F%2F%2F%2F%2F%2F&amp;autodive=0%2F#249">an activity</a> in your source code which allows them to host a fragment during test. This is why they require you to include it as a debugImplementation, because it actually modifies the compile time source code to include the host activity for your debug builds.</p><p>Now that typically isn’t too much of a problem if you’re simply using FragmentScenario in your instrumented tests on device because those require a debuggable build by default. However, if you want to use the cool features of fragment testing in the JVM, it could cause issues with your build pipeline.</p><p><strong>If you run your unit tests on the release variant, all of your fragment tests will fail</strong> because the host activity will not be available in the release build variant! This is a problem for most projects because release unit tests run by default when run from gradle.</p><h3>Some Solutions</h3><p>So you have all of these cool fragment tests running in the JVM but they’re breaking your release test run, what are your options? It basically comes down to these three: remove the release test run from your pipeline, create a new product flavor for fragment tests, skip only fragment tests on release test job.</p><h4>Remove release test run</h4><p>The most straightforward approach is simply to remove release test runs from your pipeline. For example only running ./gradlew testDebugUnitTest instead of ./gradlew test. Of course the primary downside to this approach is that you are no longer testing the same build type that is released, so if there are any important differences in your release code, it won’t be covered in automated tests.</p><h4>Create fragment test product flavor</h4><p>You can also create different <a href="https://developer.android.com/studio/build/build-variants#product-flavors">product flavors</a> which allow you to configure your application across the different build types. This would allow you to create a new debuggable flavor and run all your unit tests with that flavor.</p><p>However, this creates a matrix of build variants (build types * product flavors) which can be frustrating to work with and cause more headaches than its worth.</p><h4>Skip Release Fragment Tests</h4><p>The easiest method I’ve found is just to skip the fragment tests from running on your release build unit test job. JUnit provides a handy utility called assumptions which allow you to skip test execution if a condition is not met. This prevents the test from crashing if that assumption is not met and still makes it obvious which tests are being run for each test job.</p><p>Since fragment tests will only work on the release build, you can simply add a check that the debug build config variable is set, and skip the test if not:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98c027937fd0f9ca52684e54e4e22a48/href">https://medium.com/media/98c027937fd0f9ca52684e54e4e22a48/href</a></iframe><p>You can add this configuration to any test class by adding it to a test rule and including that test rule in any fragment test class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/81926527b73e3bcd0375006180da1e28/href">https://medium.com/media/81926527b73e3bcd0375006180da1e28/href</a></iframe><p>One last caveat is that you also need to include the testImplementation of the fragment testing dependency so that the release test job compiles even though it won’t actually execute the fragment tests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66d6c46d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/koala-tea-assurance/unit-testing-android-fragments-without-breaking-your-pipeline-66d6c46d7">Unit Testing Android Fragments Without Breaking Your Pipeline</a> was originally published in <a href="https://medium.com/koala-tea-assurance">Koala Tea Assurance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Better Android RecyclerView Testing]]></title>
            <link>https://medium.com/koala-tea-assurance/better-android-recyclerview-testing-a5e3ed7ef38b?source=rss-bb0d774be860------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5e3ed7ef38b</guid>
            <category><![CDATA[android-espresso]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ui-testing]]></category>
            <category><![CDATA[android-testing]]></category>
            <category><![CDATA[mobile-test-automation]]></category>
            <dc:creator><![CDATA[Max Buster]]></dc:creator>
            <pubDate>Tue, 04 Sep 2018 23:47:03 GMT</pubDate>
            <atom:updated>2018-09-04T23:47:03.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*NhRbxeEe_lfJTO-r83dqEA.jpeg" /></figure><p>Have you ever tried to write an automated test for a RecyclerView before? It can be a b*tch! It’s seemingly impossible to get off screen elements, there’s very little built in support in the existing test frameworks, and the worst part is that they’re one of the most commonly used elements in Android so they’re all over the place!</p><p>There’s got to be a better way!</p><p>And there just might be! There’s some existing test support in the Espresso support library for RecyclerView actions, and after digging, I found that they could be repurposed for all sorts of interesting stuff. Here’s an example of the RecyclerView support being used to check for a row anywhere in the RecyclerView containing the expected element.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5393a23c6ddbdfa9f83a4c170d1fd8f2/href">https://medium.com/media/5393a23c6ddbdfa9f83a4c170d1fd8f2/href</a></iframe><p>The nice thing about checking every row in the RecyclerView in memory rather than through the UI is that it’s much faster and more precise while still maintaining the same guarantee of view matching from the user perspective.</p><p>This was just one way to use this tool but I’m sure there’s a ton of other ways it could be leveraged like checking sorting, filtering, etc. Feel free to use this tool in your projects as well, and let me know what you do with it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5e3ed7ef38b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/koala-tea-assurance/better-android-recyclerview-testing-a5e3ed7ef38b">Better Android RecyclerView Testing</a> was originally published in <a href="https://medium.com/koala-tea-assurance">Koala Tea Assurance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s Not A Bug, It’s A Feature]]></title>
            <link>https://medium.com/koala-tea-assurance/its-not-a-bug-it-s-a-feature-34115269f5ba?source=rss-bb0d774be860------2</link>
            <guid isPermaLink="false">https://medium.com/p/34115269f5ba</guid>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Max Buster]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 06:14:36 GMT</pubDate>
            <atom:updated>2018-08-28T23:47:07.013Z</atom:updated>
            <content:encoded><![CDATA[<p>Consider this situation: You’re reviewing a calendar feature in your app. However, you notice that it only allows a date to be chosen and not also a time. Since this is a hypothetical scheduling app we’re talking about, it surely is a bug because you can’t schedule without a date and a time.</p><p>Clearly the developer was wrong and created a broken feature, right!?</p><p>Well the answer is that it depends. It depends on what your expectations for a feature are. It depends on when you consider a feature complete. It depends on a lot of factors which are rarely considered but could ultimately be detrimental to the software development process.</p><p>So, let’s take a step back to identify what constitutes an erroneous bug, what their harm is, and ultimately, how to improve the process of reporting them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*KDfUqn6c66axcbsTPPWSpQ.jpeg" /><figcaption>What really defines a bug?</figcaption></figure><h3>Where expectations come from</h3><p>If we revisit this oversimplified diagram of the product development lifecycle from an earlier article, we see that typically <em>expectations come from requirements</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*jletWbNpGZDRe3PIdFBORw.png" /></figure><p>The requirements that product managers, designers, etc. create define how developers create the product and how testers validate the product.</p><p>However, there’s also many other sources of expectations. What about <em>common sense</em>? When you say there is a home button, that means it should take you to the home page presumably, even if it isn’t explicitly defined. How about <em>tribal knowledge;</em> the communal knowledge within a team or company which is not explicitly defined but is so common that everyone accepts it as the status quo. Expectations can even come from private <em>discussions</em> which were never formalized but were enough to influence one’s expectations.</p><p>The key to all these other sources of expectations is that they are undocumented but still guide our decisions. This is the source of confusion around so called “undocumented features” because you can wholeheartedly believe that they are correct but when you look for a source of truth, there is none.</p><h3>What‘s the harm?</h3><p>People may have varying expectations. So what? Is that really something to worry about when you’re putting out fires all over the place?</p><p>Well, <strong>differences in expectations lead to confusion</strong> and confusion can create a myriad of problems.</p><p>First is the inability to define what a product should actually look like. The less explicitly defined the requirements are, the more <strong>unpredictable the outcome</strong> is by definition. This confusion also follows the product all the way through its lifecycle. If developers are guessing about some implicit features and then testers are guessing at the same feature, you compound the opportunity for false negatives and positives, both of which decrease the value of the product and likelihood of the outcome.</p><p>Incorrectly opened bugs for undocumented features can also create issues in <strong>prioritization</strong>. Bugs typically take higher priority over new feature work because the cost to fix them compounds as the time increases. If you begin opening bugs for undocumented and perhaps unneeded features, then you are suddenly lowering the priority of any current features.</p><p>Finally, the affect on developers is a <strong>decrease in productivity</strong> due to context switching and a <strong>decrease in morale</strong> due to perceived flaws in their work.</p><h3>Finding common ground</h3><p>Clearly there are issues with implicit requirements, but it’s also obvious that not everything can be explicitly defined. So where do you draw the line?</p><p>Any functionality that is critical to the feature should be defined. If the major use cases can not be performed according to the written requirements, then there is no guarantee that the outcome will provide the value for the customers that you expect.</p><p>Also, anything that is counterintuitive or unusual, like a clock that uses a different timezone, should be defined as well. While you can’t cover every scenario, if you expect an outcome that is not considered the default then it should likely be documented.</p><p>And in the end, if there is a “bug” that was not previously documented, it is likely a feature request, and should be opened as such to prioritize correctly and acknowledge that the product did meet the initially specified requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34115269f5ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/koala-tea-assurance/its-not-a-bug-it-s-a-feature-34115269f5ba">It’s Not A Bug, It’s A Feature</a> was originally published in <a href="https://medium.com/koala-tea-assurance">Koala Tea Assurance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functional Testing In A Nutshell]]></title>
            <link>https://medium.com/koala-tea-assurance/functional-testing-in-a-nutshell-3c6ce0502e91?source=rss-bb0d774be860------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c6ce0502e91</guid>
            <category><![CDATA[functional-testing]]></category>
            <category><![CDATA[product-lifecycle]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Max Buster]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 03:14:38 GMT</pubDate>
            <atom:updated>2018-02-20T03:14:38.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*nTc1N06u_ZmXZYGX_bORYA.jpeg" /><figcaption>Learn from Creed, don’t do this</figcaption></figure><h3>What is functional testing?</h3><p>Functional testing is the process of using requirements to check major product use cases. This differs from other types of testing because of the high scope of the tests which necessitates a low level of abstraction. Because you are checking that the entire product works as expected, you want to minimize the number of assumptions you make.</p><p>These cases are often performed by manual testers exercising the end product because it most closely mimics the customer’s interactions with it, and thus, can find issues that the end user will deal with.</p><h3>Where do the tests come from?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*-mdE7nmKzRH3hF2CIZdU_w.png" /><figcaption>Product functionality ownership</figcaption></figure><p>The tests are driven by the product requirements and thus should be created through a conversation with product managers, developers and test engineers. Together, they can decide what the key aspects of the test path are, how to test the product, and the developers can be certain that they are ready for the tests.</p><p>Obviously, it’s best to have the tests defined before development starts and after product requirements are defined but often they are created after the product is created and simply written to mimic the current state of the product. While this may prevent future regressions, it is not driven by the software development process and thus, can cause issues with QA and development.</p><h3>What makes good functional tests?</h3><p>The key to proper functional tests is that they are:</p><ul><li>Derived from product requirements</li><li>Clearly defined</li><li>Visible to all stakeholders</li><li>Give actionable info to the developers</li><li>Audited frequently to ensure that they update with product requirements</li></ul><h3>How do they benefit the company?</h3><p>The value of functional tests comes from finding issues with the product as quickly as possible. This both prevents issues from reaching the customer and catches issues earlier in the product lifecycle where they are much cheaper to fix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*jletWbNpGZDRe3PIdFBORw.png" /><figcaption>Cost to fix increases to the right</figcaption></figure><p>In the next post I’ll dive deeper into the benefits of functional tests and how to run them as efficiently as possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c6ce0502e91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/koala-tea-assurance/functional-testing-in-a-nutshell-3c6ce0502e91">Functional Testing In A Nutshell</a> was originally published in <a href="https://medium.com/koala-tea-assurance">Koala Tea Assurance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quality? What? Why? How?]]></title>
            <link>https://medium.com/koala-tea-assurance/quality-what-why-how-71382db12a73?source=rss-bb0d774be860------2</link>
            <guid isPermaLink="false">https://medium.com/p/71382db12a73</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Max Buster]]></dc:creator>
            <pubDate>Thu, 28 Dec 2017 21:14:47 GMT</pubDate>
            <atom:updated>2017-12-28T21:14:47.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*0Qu23yiaQo2aAZSqlW8dgA.jpeg" /></figure><p>Over the past 6 months I‘ve been working as a software development engineer in test (SDET) and thinking a lot about quality. Coming straight out of college required a bit of a paradigm shift since my only guidance for what “quality” meant in the past was the letter “A”. Now that my job relies on determining when a product is “quality” and assuring its presence, I’ve had a chance to dive deeper. The following are my initial thoughts around quality as an outsider just entering the industry. I hope you enjoy!</p><h3>Quality defined</h3><p>Since quality is a rather abstract concept, I will attempt to first propose a concrete definition of quality.</p><p>The first attribute in a high quality product is that it <strong>fulfills a need</strong>. If nobody cares about the product in the first place then there is no way to measure whether it has any value.</p><p>The second way to evaluate quality is whether it <strong>performs the task it was built for</strong>. Assuming that there is a need for the product, then you can measure the product’s value by how well it fulfills that need.</p><p>Next, the product must be <strong>intuitive to use</strong> so that the end user can actually gain the value of using it. Even if the product has a valuable function and performs it flawlessly, if the user cannot use it, then it is ultimately worthless.</p><p>Finally, the product must be <strong>maintainable and extensible</strong>. This trait is more from the perspective of the organization that builds it but is nonetheless paramount to the ultimate value of the product. Since the world is constantly changing, it is essential that the product can quickly change and improve to match the changing needs of its users.</p><h3>Why do we need it?</h3><p>Although it may seem intuitive and counterproductive to explain why anyone would want quality, it is important to define the areas that it is beneficial so one may advocate for it against other constraints. If you have no concrete argument for why you should provide quality then it is often overwritten as nonessential.</p><p>The overarching argument behind creating a quality product is that you receive value by providing value to your customers, so if you provide a low value product then you will receive less value in return. The ultimate outputs of a high quality product are:</p><ul><li>More users</li><li>More revenue</li><li>Less costly development</li><li>More future opportunities</li></ul><p>Even though it may seem that some of these benefits could be outweighed by hasty and low cost production, the culture quickly develops an inertia that either strengthens the product over time or leads to entropy. Thus, it is important to have safety guards in place early on in order to prevent that attrition.</p><h3>How do we assure it?</h3><p>Given that we know what quality is and we would like to have a quality product, next we must figure out how to ensure its presence. In a software organization the breakdown of quality ownership is roughly as follows:</p><ul><li>Ensure the product fulfills a need — product</li><li>Ensure the product performs it’s task — test</li><li>Ensure the product is intuitive — design</li><li>Ensure the product is extensible — developers</li><li>Advocate for the quality — everyone</li></ul><p>The key to this list is that everyone must be an advocate for quality or the whole pyramid falls apart. Everyone is responsible for the outcome of the product and since each area is not discrete and constantly relies on the other areas, if one link in the chain is broken, it ultimately trickles into all other areas.</p><p>As many of us may have heard:</p><blockquote>What gets measured gets done</blockquote><p>so it is essential to have concrete and visible measures of the product’s quality which are constantly updated and checked. Since I am a test engineer, I will largely focus on how to check whether the product performs its core functionality as expected in this blog, and revisit this topic frequently.</p><p>This has been an extremely high level and broad overview of quality, and in subsequent posts, I will dive much further into each section. Please feel free to share your own experiences around quality as I’m still rather new to the field and would love to hear what more knowledgable engineers have experienced.</p><p>Thanks for reading, and I’ll see you in the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71382db12a73" width="1" height="1" alt=""><hr><p><a href="https://medium.com/koala-tea-assurance/quality-what-why-how-71382db12a73">Quality? What? Why? How?</a> was originally published in <a href="https://medium.com/koala-tea-assurance">Koala Tea Assurance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>