• Macaca iOS 真机测试 at September 30, 2016

    @adfghzhang ,重新配置解决了,2 个地方要配置

  • Macaca iOS 真机测试 at September 30, 2016

    @adfghzhang ,我这边有企业版本 iOS 账号了,general 都配置了企业开发团队,但仍然提示错误,如何解决?

    xctest-client.js:156:14 [master] pid:31511 Signing for "IntegrationApp" requires a development team. Select a development team in the project editor.

    Code signing is required for product type 'Application' in SDK 'iOS 10.0'

  • Macaca iOS 真机测试 at September 29, 2016

    问题已解决,感谢 CoderToSurvive

  • Macaca iOS 真机测试 at September 29, 2016

    #54 楼 @praguepp
    换个 windows 安装 uiautomator-client 也是一样,这个包依赖什么?
    C:\Users\Administrator.PC--20150905VON\Downloads\uiautomator-client-master\uiautomator-client-master> npm i uiautomator-client --save
    npm WARN install Refusing to install uiautomator-client as a dependency of itself

  • Macaca iOS 真机测试 at September 29, 2016

    系统是 osx ei

    1.android
    安装的时候遇到 npm i uiautomator-client 安装不上的问题,能否直接提供 jar 包或解决方法?网上找了 1 天没找到解决方法。

    responseHandler.js:60:14 [master] pid:32510 Error: Command failed: /Applications/Android\ Studio.app/sdk/platform-tools/adb -s 4df1a1d56ba07f0f push /usr/local/lib/node_modules/macaca-android/node_modules/uiautomator-client/bin/uiautomator-bootstrap.jar /data/local/tmp

    cannot stat '/usr/local/lib/node_modules/macaca-android/node_modules/uiautomator-client/bin/uiautomator-bootstrap.jar': No such file or directory

    安装日志:
    praguepps-MacBook-Air:uiautomator-client praguepp$ sudo npm i uiautomator-client

    Password:

    uiautomator-client@1.0.25 install /Users/praguepp/Downloads/uiautomator-client-master/node_modules/.1.0.25@uiautomator-client/node_modules/uiautomator-client

    node ./scripts/build.js

    /Users/praguepp/Downloads/uiautomator-client-master/node_modules/.1.0.25@uiautomator-client/node_modules/uiautomator-client/scripts/build.js:178

    throw e;

    ^

    Error: $JAVA_HOME is not set

    at checkJavaHome.then.catch.then.then.catch.then.std (/Users/praguepp/Downloads/uiautomator-client-master/node_modules/.1.0.3@java-home/lib/java-home.js:89:25)

    npm ERR! Darwin 15.6.0

    npm ERR! argv "/usr/local/Cellar/node/6.6.0/bin/node" "/usr/local/bin/npm" "i" "uiautomator-client"

    npm ERR! node v6.6.0

    npm ERR! npm v3.10.7

    npm ERR! code ELIFECYCLE

    npm ERR! uiautomator-client@1.0.25 install: node ./scripts/build.js

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the uiautomator-client@1.0.25 install script 'node ./scripts/build.js'.

    npm ERR! Make sure you have the latest version of node.js and npm installed.

    npm ERR! If you do, this is most likely a problem with the uiautomator-client package,

    npm ERR! not with npm itself.

    npm ERR! Tell the author that this fails on your system:

    npm ERR! node ./scripts/build.js

    npm ERR! You can get information on how to open an issue for this project with:

    npm ERR! npm bugs uiautomator-client

    npm ERR! Or if that isn't available, you can get their info via:

    npm ERR! npm owner ls uiautomator-client

    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:

    npm ERR! /Users/praguepp/Downloads/uiautomator-client-master/node_modules/.1.0.25@uiautomator-client/npm-debug.logi
    //debug.log

    1. ios ios:则是 project team 问题无法解决。

    我的 general 是正常的
    Testing

    Signing
    Automatically manage signing //勾选
    Team deng daiel(Personal Team)
    Provisioning Profile Xcode Managed Profile
    Signing Certificate iphone Developer:xxxxx

    xctest-client.js:156:14 [master] pid:31511 2016-09-28 17:39:40.882 xcodebuild[31517:808582] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/praguepp/Library/Developer/Xcode/DerivedData/WebDriverAgent-earnspoghlsscjbxlmzvvcsmvulx/Logs/Test/81CCEEDB-E582-4AEA-BB0F-BD6F652B6B2C/Session-WebDriverAgentRunner-2016-09-28_173939-Jn8XE6.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/praguepp/Library/Developer/Xcode/DerivedData/WebDriverAgent-earnspoghlsscjbxlmzvvcsmvulx/Logs/Test/81CCEEDB-E582-4AEA-BB0F-BD6F652B6B2C/Session-WebDriverAgentRunner-2016-09-28_173939-Jn8XE6.log}

    xctest-client.js:156:14 [master] pid:31511

    Testing failed:

    xctest-client.js:156:14 [master] pid:31511 Signing for "IntegrationApp" requires a development team. Select a development team in the project editor.

    Code signing is required for product type 'Application' in SDK 'iOS 10.0'

    ** TEST FAILED **

  • Macaca iOS 真机测试 at September 29, 2016

    #53 楼 @praguepp
    已解决,发现 1.0.21 包上赋值 host,ip 不生效,目前是手动修改代码编译使用。 @adfghzhang

  • Macaca iOS 真机测试 at September 27, 2016

    #52 楼 @snowboy 我也遇到这个问题 ,难道要运行测试

  • Macaca iOS 真机测试 at September 27, 2016

    我是使用 rjb 调用 jar 包的,设置了指定 Ip,但返回错误的告诉我是 localhost,请问是什么原因
    C:\gem1\atk-mobileuihelper_common\keywords\test\atk_mobileuihelper_common>ruby test_configure.rb -v
    Run options: -v --seed 52159

    Running:

    [2016-09-27 19:46:10] INFO Mobileuihelper 服务器配置信息为:
    [2016-09-27 19:46:10] INFO 参数 : host ---> 200.200.129.162
    [2016-09-27 19:46:10] INFO 参数 : port ---> 3456
    [2016-09-27 19:46:10] INFO 参数 : platformname ---> ios
    [2016-09-27 19:46:10] INFO 参数 : version --->
    [2016-09-27 19:46:10] INFO 参数 : platformversion ---> 9.3
    [2016-09-27 19:46:10] INFO 参数 : devicename ---> iPhone 6s
    [2016-09-27 19:46:10] INFO 参数 : app ---> ios-app-bootstrap.zip
    [2016-09-27 19:46:10] INFO 参数 : autoacceptalerts ---> true
    [2016-09-27 19:46:10] INFO 参数 : javascriptenable ---> true
    [2016-09-27 19:46:10] INFO 参数 : udid --->
    [2016-09-27 19:46:10] INFO 参数 : bundleid --->
    [2016-09-27 19:46:10] INFO 参数 : browsername ---> electron
    org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:3456 refused
    at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:127)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:360)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:177)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:77)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:95)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
    at macaca.client.common.Utils.postRequest(Utils.java:89)
    at macaca.client.common.Utils.request(Utils.java:135)
    at macaca.client.commands.Session.createSession(Session.java:25)
    at macaca.client.MacacaClient.initDriver(MacacaClient.java:727)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)

    //code
    require 'rjb'

    module Mobileuihelper

    class Macaca_cli

    @@driver = nil

    def self.init(hash)

    if @@driver.nil?
    #device_file = File.join(ATT.root, 'config', 'test_device.yml')
    #env_cfg = YAML.load_file(device_file)
    Rjb::load("C:\Program Files\Java\jre1.8.0_101\lib\ext\macacaclient-1.0.21.jar:fastjson-1.2.17.jar:httpclient-4.3-beat1.jar:org-apache-commons-logging.jar",jvmargs=[])
    class_json = Rjb::import('com.alibaba.fastjson.JSONObject')
    porps = class_json.new
    class_macac_cli = Rjb::import('macaca.client.MacacaClient')
    @@driver = class_macac_cli.new
    porps.put("host",hash[:host])
    porps.put("port",hash[:port])
    porps.put("autoAcceptAlerts",hash[:autoacceptalerts])
    porps.put("browserName",hash[:browsername])
    porps.put("platformName",hash[:platformname])
    porps.put("version",hash[:version])
    porps.put("platformVersion",hash[:platformversion])
    porps.put("deviceName",hash[:devicename])
    porps.put("javascriptEnable",hash[:javascriptenable])
    porps.put("app",hash[:app])
    porps.put("udid",hash[:udid])
    porps.put("bundleId",hash[:bundleid])
    desiredcapabilities = class_json.new
    desiredcapabilities.put("desiredCapabilities",porps)
    @@driver.initDriver(desiredcapabilities)
    end
    end

    end

    end