<?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 Vishnubhotla Padmakar Srinivas on Medium]]></title>
        <description><![CDATA[Stories by Vishnubhotla Padmakar Srinivas on Medium]]></description>
        <link>https://medium.com/@vishnubhotlasrinivas?source=rss-f5650ed3ead7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ujXJFy6XGna4vi_j.jpg</url>
            <title>Stories by Vishnubhotla Padmakar Srinivas on Medium</title>
            <link>https://medium.com/@vishnubhotlasrinivas?source=rss-f5650ed3ead7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 12:37:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vishnubhotlasrinivas/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[Appium on AWS Device Farm]]></title>
            <link>https://medium.com/@vishnubhotlasrinivas/appium-on-aws-device-farm-d97f941dcac5?source=rss-f5650ed3ead7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d97f941dcac5</guid>
            <category><![CDATA[aws-device-farm]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[appium]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Vishnubhotla Padmakar Srinivas]]></dc:creator>
            <pubDate>Wed, 08 Aug 2018 13:38:57 GMT</pubDate>
            <atom:updated>2018-08-08T13:38:57.477Z</atom:updated>
            <content:encoded><![CDATA[<p>The main advantage of running your tests on AWS DF is that we can test our app in parallel against a large collection of physical devices. So there is no need buy physical devices which in tern reduces costs. And as the tests can be run parallel on the devices on AWS DF Cloud, we are also saving time.</p><p>For us to run our tests on AWS DF we need to first create a AWS account and then make some changes to our project which we will see below.</p><h3>Step 1 — Create AWS Account.</h3><p>Go to the AWS site and create an account <a href="https://portal.aws.amazon.com/billing/signup#/start">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k_lC2VBMjqP9lPzq" /></figure><p>Give all the details mentioned, like email, password and AWS account name and click on continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XbPA6bROBIBL6NoQ" /></figure><p>Add contact information as required in the form and tap on create Account and continue.</p><p>Add Billing details. Don’t worry we will be given 1000 free minutes of test execution. Billing will only starts after that.</p><p>ow sign into the console of the AWS cloud and Search for AWS Device Farm under services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d9A7hrtARUdzOj9q" /></figure><p>So now your AWS DF account is ready. Next let us set up our project to run the tests on Device Farm.</p><blockquote><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-browser-tests-vishnubhotla/">Appium Browser Tests</a></blockquote><h3>Step 2 — Project Set Up</h3><p>Read the following <a href="https://docs.aws.amazon.com/devicefarm/latest/developerguide/test-types-android-appium-java-testng.html">document</a> for understanding what are all the changes we need to make.</p><p>Firstly, We need to make changes to the pom.xml file so that we can include all the dependancies and test and create a zip file for us to upload to the AWS DF.</p><p>Add the following Snippets to the pom.xml file.</p><p>This will set the packaging as a JAR file</p><pre>&lt;groupId&gt;com.acme&lt;/groupId&gt;<br>&lt;artifactId&gt;acme-android-appium&lt;/artifactId&gt;<br>&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;<br>&lt;packaging&gt;jar&lt;/packaging&gt;</pre><p>This will build anything in the src/test directory into a JAR file.</p><pre>&lt;plugin&gt;&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;&lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;&lt;version&gt;2.6&lt;/version&gt;&lt;executions&gt;&lt;execution&gt;&lt;goals&gt;&lt;goal&gt;test-jar&lt;/goal&gt;&lt;/goals&gt;&lt;/execution&gt;&lt;/executions&gt;<br>&lt;/plugin&gt;</pre><p>The below mentioned maven-dependency-plugin will copy your dependencies into the dependency-jars directory</p><blockquote><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-setup-part1-srinivas-vishnubhotla/">Appium Setup</a></blockquote><pre>&lt;plugin&gt;&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;&lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;&lt;version&gt;2.10&lt;/version&gt;&lt;executions&gt;&lt;execution&gt;&lt;id&gt;copy-dependencies&lt;/id&gt;&lt;phase&gt;package&lt;/phase&gt;&lt;goals&gt;&lt;goal&gt;copy-dependencies&lt;/goal&gt;&lt;/goals&gt;&lt;configuration&gt;&lt;outputDirectory&gt;${project.build.directory}/dependency-jars/&lt;/outputDirectory&gt;&lt;/configuration&gt;&lt;/execution&gt;&lt;/executions&gt;<br>&lt;/pl</pre><p>Finally, use maven-assembly-plugin to package tests and all dependencies into a single .zip file.</p><p>This plugin uses the below mentioned assembly to create a .zip file named as zip-with-dependencies in the build output directory every time we build a maven package.</p><pre>&lt;plugin&gt;&lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;&lt;version&gt;2.5.4&lt;/version&gt;&lt;executions&gt;&lt;execution&gt;&lt;phase&gt;package&lt;/phase&gt;&lt;goals&gt;&lt;goal&gt;single&lt;/goal&gt;&lt;/goals&gt;&lt;configuration&gt;&lt;finalName&gt;zip-with-dependencies&lt;/finalName&gt;&lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;&lt;descriptors&gt;&lt;descriptor&gt;src/main/assembly/zip.xml&lt;/descriptor&gt;&lt;/descriptors&gt;&lt;/configuration&gt;&lt;/execution&gt;&lt;/executions&gt;<br>&lt;/plugin&gt;</pre><p>As mentioned above we need to add the following zip.xml file at src/main/assembly/zip.xml.</p><p>This XML is an assembly definition that, when help Maven to build a .zip file containing everything in the root of your build output directory and the dependency-jars directory.</p><pre>&lt;assemblyxmlns=&quot;http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0&quot;xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;xsi:schemaLocation=&quot;http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd&quot;&gt;&lt;id&gt;zip&lt;/id&gt;&lt;formats&gt;&lt;format&gt;zip&lt;/format&gt;&lt;/formats&gt;&lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;&lt;fileSets&gt;&lt;fileSet&gt;&lt;directory&gt;${project.build.directory}&lt;/directory&gt;&lt;outputDirectory&gt;./&lt;/outputDirectory&gt;&lt;includes&gt;&lt;include&gt;*.jar&lt;/include&gt;&lt;/includes&gt;&lt;/fileSet&gt;&lt;fileSet&gt;&lt;directory&gt;${project.build.directory}&lt;/directory&gt;&lt;outputDirectory&gt;./&lt;/outputDirectory&gt;&lt;includes&gt;&lt;include&gt;/dependency-jars/&lt;/include&gt;&lt;/includes&gt;&lt;/fileSet&gt;&lt;/fileSets&gt;<br>&lt;/assembly&gt;</pre><p>Now build your maven project with the below command.</p><pre>mvn clean package -DskipTests=true</pre><p>Observe that we will get a zip-with-dependencies.zip file under the target folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E1abv5JuHRaivacb" /></figure><h3>Step 3 — Run the Tests.</h3><p>So now our AWS account is ready and the project has been setup, its time to run the Tests on AWS DF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c9L4X2kDAbslOWTc" /></figure><p>Let’s go back to the AWS DF site and Tap on “<em>Create a new project</em>”.</p><p>Give a name to the project and tap on “<em>Create project</em>” button.</p><p>Now Tap on Create a new run button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MiAtxqInvt_HVHK1" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oanqyg16JAEC_39P" /></figure><p>Now upload .apk or ipa file for android or iOS tests respectively.</p><p>For web app we can select the other tab under Choose your application which is next to Android/Apple button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OHUsBQNTmKs-zDVT" /></figure><p>Next Configure the tests. Here we upload the zip-with-dependencies.zip file we created above. And Select a frame work, in this case it is Appium Java TestNG. Select Appium version to the latest. Tap on Next step.</p><p>Now Select the devices, We will be given a set of default devices. We can also create our own list of devices which we want to test the application on. Tap Next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OSV1AnqekCyUQk9d" /></figure><p>Tap Next at the “Specify device state”, if you want the default state of the device or you can modify as required.</p><p>Now Review the test run select the Execution timeout. Tap on confirm and start run.</p><p>Now, You will see the tests are running in the AWS DF console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1FVlf7oy2nP2V7jX" /></figure><p>Click on the Tests to see the execution status. And once all the tests finish we have a the results of the tests. We can also see Videos of the execution when we click on the devices listed for the tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iabnSy8Ek-auclG7" /></figure><p>Yay!! We are now able to run our tests on AWS Device Farm. In the next post lets see how can we run the Appium tests on Sauce Labs Server.</p><p><strong><em>Let me know if you want to understand how to configure Jenkins for AWS DF. I will post that as well.</em></strong></p><p>Happy Automation :)</p><p>You can see the sample code for the same at <a href="https://github.com/padmakarsrinivas/Appium_AWS_DeviceFarm">git repository</a>. Star it if for more sample code.</p><p>Other Posts</p><ul><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-srinivas-vishnubhotla/">Appium — Full Story</a></li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-setup-part1-srinivas-vishnubhotla/">Appium Part 1 — The Set Up</a>.</li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-using-inspector-vishnubhotla/">Appium Part 2- Using Appium Inspector to identify elements.</a></li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-first-test-part3-vishnubhotla/">Appium Part 3 — The First Test</a>.</li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-browser-tests-vishnubhotla/">Appium Part 4 — The Browser Tests</a>.</li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-running-parallel-vishnubhotla/">Appium Part 5 — The Parallel Tests.</a></li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-runing-tests-vishnubhotla/">Appium Part 6 — The Tests on Jenkins.</a></li><li><a href="https://www.linkedin.com/pulse/learning-mobile-automation-appium-running-tests-aws-srinivas/">Appium Part 7 — The Tests on AWS Device Farm.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d97f941dcac5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>