Giter VIP home page Giter VIP logo

appium_aws_devicefarm's Introduction

Appium-On-AWS-Device-Farm

Appium Tests on AWS Device Farm.

Android Application used in this test can be built using the code from here

Application .apk file can be found at

    ~\App_Name\app\build\outputs\apk\app-debug.apk

Add the following plugins to the pom.xml file.

    <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.10</version>
            <executions>
                    <execution>
                            <id>copy-dependencies</id>
                            <phase>package</phase>
                            <goals>
                                    <goal>copy-dependencies</goal>
                            </goals>
                            <configuration>
                                    <outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory>
                            </configuration>
                    </execution>
            </executions>
    </plugin>
    <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.5.4</version>
            <executions>
                    <execution>
                            <phase>package</phase>
                            <goals>
                                    <goal>single</goal>
                            </goals>
                            <configuration>
                                    <finalName>zip-with-dependencies</finalName>
                                    <appendAssemblyId>false</appendAssemblyId>
                                    <descriptors>
                                            <descriptor>src/main/assembly/zip.xml</descriptor>
                                    </descriptors>
                            </configuration>
                    </execution>
            </executions>
    </plugin>

Place zip.xml at

    src/main/assemble

Add follwing to the zip.xml

            <?xml version="1.0" encoding="UTF-8"?>
    <assembly
            xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
            <id>zip</id>
            <formats>
                    <format>zip</format>
            </formats>
            <includeBaseDirectory>false</includeBaseDirectory>
            <fileSets>
                    <fileSet>
                            <directory>${project.build.directory}</directory>
                            <outputDirectory>./</outputDirectory>
                            <includes>
                                    <include>*.jar</include>
                            </includes>
                    </fileSet>
                    <fileSet>
                            <directory>${project.build.directory}</directory>
                            <outputDirectory>./</outputDirectory>
                            <includes>
                                    <include>/dependency-jars/</include>
                            </includes>
                    </fileSet>
            </fileSets>
    </assembly>

Use below command to create zip-with-dependencies.zip file

    mvn clean package -DskipTests=true

After this the zip-with-dependencies.zip file can be found at

  ~/Project_Name/target/zip-with-dependencies.zip

Setting up the project for execution on AWS Device Farm can be found here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.