<?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 Ivan Jukić on Medium]]></title>
        <description><![CDATA[Stories by Ivan Jukić on Medium]]></description>
        <link>https://medium.com/@juka1m0?source=rss-446cbde67892------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1J5lLdS32ZImf2AtDdEmwQ.jpeg</url>
            <title>Stories by Ivan Jukić on Medium</title>
            <link>https://medium.com/@juka1m0?source=rss-446cbde67892------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 09:06:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juka1m0/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[Use FillTheForm in Android Studio]]></title>
            <link>https://medium.com/@juka1m0/use-filltheform-in-android-studio-9d94ca2770e2?source=rss-446cbde67892------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d94ca2770e2</guid>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[filltheform]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Ivan Jukić]]></dc:creator>
            <pubDate>Fri, 21 Oct 2016 15:51:21 GMT</pubDate>
            <atom:updated>2016-10-21T16:04:41.540Z</atom:updated>
            <content:encoded><![CDATA[<h4>Working with Android soft keyboard a lot?</h4><p>If you want to decrease the soft keyboard usage during Android development then you’ve come to the right place.</p><h4>Story</h4><p>As a Developer or QA Team member:</p><ul><li>I want to use keyboard less</li><li>I want to be more efficient and concentrate on the task at hand</li><li>I don&#39;t want to remember different test accounts (usernames, passwords, streets, telephone numbers etc.)</li></ul><p>The goal is to avoid repeatable tasks but still be flexible enough to provide custom input when needed.</p><h4>Solution requirements</h4><ul><li>Fill out every EditText with appropriate data using long press or focus change actions</li><li>Enable user to switch test data context easily. Avoid having to perform codebase changes to do this</li><li>Be able to share test information in the team</li></ul><h4>Meet FillTheForm</h4><p>Android app that that helps you to develop and test your apps faster.</p><ul><li>It uses <strong>Accessibility Service</strong> to change content of EditText elements using long press or focus change actions</li><li>FillTheForm <strong>Dialog</strong> enables user to switch test data context easily. Without having to redeploy the app</li><li>FillTheForm <strong>Configuration File</strong> enables flexible test data setup and easy sharing between team members</li></ul><p>More details here: <a href="https://github.com/Hotel-Reservation-Service/FillTheForm/wiki">https://github.com/Hotel-Reservation-Service/FillTheForm/wiki</a></p><h4>Purpose of this article</h4><p>In this article I will try to explain how to use FillTheForm <strong>in your projects. </strong>It will be achieved using another github project from <a href="https://twitter.com/novoda">Novoda</a> called <strong>gradle-android-command-plugin</strong> (<a href="https://github.com/novoda/gradle-android-command-plugin">https://github.com/novoda/gradle-android-command-plugin</a>) and Android Studio <strong>Run Configurations</strong> (<a href="https://developer.android.com/studio/run/rundebugconfig.html">https://developer.android.com/studio/run/rundebugconfig.html</a>)</p><h4>1. Build FillTheForm apk</h4><p>You should build the latest FillTheForm apk from <a href="https://github.com/Hotel-Reservation-Service/FillTheForm">https://github.com/Hotel-Reservation-Service/FillTheForm</a>. Then copy the apk to <em>“your-project-root”/tools/filltheform</em> folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dH-_Q-v2QQJ1QZJhX6hE0A.png" /></figure><h4>2. Integrate gradle-android-command-plugin in your project</h4><p>Add <em>classpath &#39;com.novoda:gradle-android-command-plugin:1.6.2&#39;</em> to your root build.gradle file and add <em>apply plugin: &#39;android-command&#39;</em> to app build.gradle file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0wmfb7fHmWKkshIeZukKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g33YYWJRIpWPIN8xqoim2A.png" /></figure><h4>3. Create installFillTheForm task</h4><p>Add this task to your app build.gradle file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7541a952d9cc597f89bc0810d957c16d/href">https://medium.com/media/7541a952d9cc597f89bc0810d957c16d/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4C3-pFRPp1vUxhA5zvl4xg.png" /></figure><p>Now you can use <em>installFillTheForm</em> task to deploy <em>filltheform.apk</em> to any test device. This task will probably be less used by developers and more by QA members since they test with more different devices than devs.</p><h4>4. Create pushFillTheFormConfiguration task</h4><p>Add this task to your app build.gradle file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6182db2d5bffbc00071997ba4dfa733d/href">https://medium.com/media/6182db2d5bffbc00071997ba4dfa733d/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBtvsQq960drzMbCaCNQlQ.png" /></figure><h4>5. Create sample_app_config_one file</h4><p>Create <em>sample_app_config_one.xml</em> in <em>“your-project-root”/tools/filltheform</em> folder.</p><p>Paste this as content of this configuration file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fadf9340d1c0f35a6ce2b6b0589516d0/href">https://medium.com/media/fadf9340d1c0f35a6ce2b6b0589516d0/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIHmI2gZLPYgqbSqxb9LEQ.png" /></figure><p>Now you can use <em>pushFillTheFormConfiguration</em> task to deploy <em>sample_app_config_one</em> configuration file to your device that is running FillTheForm app. If FillTheForm is properly up and running it will be automatically configured with <em>sample_app_config_one</em> configuration file.</p><p>This is really useful when you want to perform quick changes in your configuration file and push them to your device during testing.</p><h4>6. Create appropriate run configurations</h4><p>Open <em>Run/Debug Configurations</em> screen by clicking <em>Run -&gt; Edit Configurations</em> OR use the dropdown menu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*SFvueegH6pfGEG1vOqFt6Q.png" /></figure><p>Now click on + in the upper left corner to add new run configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfcGG8-5Xhw6cBaCDunpIQ.png" /></figure><p>Then click on Gradle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*HBMrfyi3aI-JTeOgpTxDGg.png" /></figure><p>Enter the following data in the next screen:</p><ul><li><strong>Name</strong>: installFillTheForm</li><li><strong>Gradle project</strong>: “your-project-name”:app</li><li><strong>Tasks</strong>: installFillTheForm</li><li><strong>Share</strong>: Should be <strong>checked</strong> in order to share this run configuration with your teammates</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dnohAbI-_gsR0G9LxoxZPA.png" /></figure><p>After clicking OK you should get a new run configuration as shown here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*n8sflsIAV89OSF8oHsuUjQ.png" /></figure><p>This run configuration will install <em>filltheform.apk</em> on your test device.</p><p>You can repeat the steps we’ve done so far (with one small difference) in order to add <em>pushFillTheFormConfiguration</em> run configuration.</p><ul><li><strong>Name</strong>: pushFillTheFormConfiguration</li><li><strong>Gradle project</strong>: “your-project-name”:app</li><li><strong>Tasks</strong>: pushFillTheFormConfiguration</li><li><strong>Share</strong>: Should be <strong>checked</strong> in order to share this run configuration with your teammates</li><li><strong>Script parameters</strong>: -Pconfig_file_name=sample_app_config_one</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQERAIBOL3bxSY1xq0JfFw.png" /></figure><p>Sharing both run configurations will add them to <em>“your-project-root”/.idea/runConfigurations</em> folder.</p><p>Since <em>.idea</em> folder is usually in <em>.gitignore</em> you will probably need to make some changes in <em>.gitignore</em> to be able to commit <em>runConfigurations</em> and share them with your colleagues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nl57z6tReJGyu6GqVIFJhw.png" /></figure><p>This can be done by adding the following lines to the root <em>.gitignore</em>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6e8d445ea88158d264ddc2fee544331f/href">https://medium.com/media/6e8d445ea88158d264ddc2fee544331f/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J09gQokB4jSglsz-j_9Tcw.png" /></figure><p>Now you are ready to share run configurations with the team.</p><h4>7. Multiple FillTheForm configuration files</h4><p>If you want to have more configuration files in your project your can simply create them in <em>“your-project-root”/tools/filltheform</em> folder and create appropriate run configurations for them. For example if we want to add <em>sample_app_config_two</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Haw89Ekqh7UzTLP-X6Cc9Q.png" /></figure><p>Appropriate run configuration is shown on the image below. Notice the <strong>Script parameter</strong>: -Pconfig_file_name=sample_app_config_two</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fRWVvCVgkYwDuQtaDzAa1g.png" /></figure><p>You should also update <em>.gitignore</em> file with:<br><em>!.idea/runConfigurations/pushFillTheFormConfiguration.xml</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VVuBVXqKf4ZDOY-1eLtxWw.png" /></figure><h4>8. App run configuration</h4><p>It is also possible to modify app run configuration in order to configure FillTheForm every time you install the app on your device. We can add <em>pushFillTheForm</em> task <strong>Before launch</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ASE00h6rY4MKkH17SJVJcg.png" /></figure><h4>Conclusion</h4><p>I hope you’ve found this article useful. You can learn more about FillTheForm project by exploring the github page <a href="https://github.com/Hotel-Reservation-Service/FillTheForm/wiki">https://github.com/Hotel-Reservation-Service/FillTheForm/wiki</a></p><p>P.S. Thanks to guys from <a href="https://twitter.com/novoda">Novoda</a> for <strong>gradle-android-command-plugin</strong> (<a href="https://github.com/novoda/gradle-android-command-plugin">https://github.com/novoda/gradle-android-command-plugin</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d94ca2770e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>