编写appium测试自动化[ANDROİDREALDEVİCE]

时间:2019-12-10 06:04:42

标签: java android maven intellij-idea junit

我可以使用ANDROID为Whatsapp和计算器编写自动化测试。但是我不能编写测试自动化应用程序。该应用程序需要公司的VPN和网络连接。 (连接成功!)为什么我不能运行它?我该怎么解决?

编辑器; Intellij IDEA 测试框架;联合会 自动化工具;阿皮 自动化工具;马文 VPN应用程式;思科AnyConnect

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<samlp:AuthnRequest 
    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" 
    AssertionConsumerServiceURL="http://localhost:8080/idpsp/acs" 
    Destination="http://localhost:8080/idpsp/SSO" 
    ForceAuthn="false" 
    ID="565a7e634d9bdf76e0e734844f8c4dab2b7a3cb72e" 
    IsPassive="false" 
    IssueInstant="2019-12-03T10:27:37.348Z" 
    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" 
    Version="2.0">
    <samlp:Issuer xmlns:samlp="urn:oasis:names:tc:SAML:2.0:assertion">http://sp.mysite.com/</samlp:Issuer>

    //signature and X509certificate should be goes here

    <saml2p:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" />
</samlp:AuthnRequest>

File.java

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>SampleProject</artifactId>
    <version>1.0-SNAPSHOT</version>
    <dependencies>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>4.12</version>
           <scope>test</scope>
       </dependency>

       <dependency>
           <groupId>io.appium</groupId>
           <artifactId>java-client</artifactId>
           <version>7.3.0</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

错误 org.openqa.selenium.WebDriverException:连接被拒绝:connect 构建信息:版本:'3.141.59',修订版本:'e82be7d358',时间:'2018-11-14T08:17:03' 系统信息:主机:'DESKTOP-24TSIDF',ip:'10 .254.20.199',操作系统名称:'Windows 10',os.arch:'amd64',os.version:'10 .0',java.version:'1.8 .0_231' 驱动程序信息:driver.version:AndroidDriver

今天愉快。

0 个答案:

没有答案
相关问题