• 是的

  • 仅楼主可见
  • @Samuel.ZhaoY 我也在做类似这样的工作,你说的通过窗口 digest 的方式去对比,有详细的策略吗?可以加你讨论下不 哈?

  • @zhupengfarmer 请教一下,使用 allure,脚本中都使用 throws Exception 的形式抛出异常,但是测试报告中并不能把异常详情捕获到,类似
    ,而实际日志中
    ,异常能否我们自定义呢

  • Macaca App Inspector 2.0 发布 at 2017年08月11日

    @yxys01 我的也是 mac 啊😁

  • Macaca App Inspector 2.0 发布 at 2017年08月11日

    @yxys01 是的,
    (inherited)
    @executable_path/Frameworks
    $(SRCROOT)/../Carthage/Build/iOS
    $(PROJECT_DIR)/Carthage/Build/iOS

  • Macaca App Inspector 2.0 发布 at 2017年08月11日

    @yxys01 配置了路径,重启了手机,但是还是报 ld: warning: directory not found for option '-F/Users/nd-mac/Desktop/test/XCTestWD/XCTestWD/../Carthage/Build/iOS'
    异常

  • @dftx511619 html 报告是什么生成的呢

  • 我试了下,发现 macaca doctor 报 sdk 的版本范围只支持 16-24 之间!你那边可以支持 sdk25?

  • Macaca iOS 真机测试 at 2016年12月24日

    @adfghzhang 都安装了,还是报这个异常
    Node.js checklist:

    node env: D:\workspace\macaca\nodejs\node.exe
    node version: v6.9.1

    Android checklist:

    JAVA version is 1.8.0_31
    JAVA_HOME is set to D:\workspace\Java\jdk1.8.0_31
    ANDROID_HOME is set to D:\workinformation\android\sdk\android-sdk-windows
    Platforms is set to D:\workinformation\android\sdk\android-sdk-windows\platforms\android-24
    Android tools is set to D:\workinformation\android\sdk\android-sdk-windows\tools\android.bat
    ADB tool is set to D:\workinformation\android\sdk\android-sdk-windows\platform-tools\adb.exe
    ANT_HOME is set to D:\workspace\macaca\apache-ant-1.9.7

    Installed driver list:

    android: 1.1.15
    chrome: 1.0.5

  • Macaca iOS 真机测试 at 2016年12月24日

    @adfghzhang
    用 cnpm 来安装的话会报异常,
    Error: build failed
    at ChildProcess. (D:\workspace\macaca\nodejs\node-global\node_modules\macaca-android\node_modules.1.0.4@ant-build\l
    ib\ant-build.js:111:16)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    D:\workspace\macaca\nodejs\node-global\node_modules\macaca-android\node_modules.0.1.16@unlock-apk\script\build.js:28
    throw e;
    ^

    Error: build failed
    at ChildProcess. (D:\workspace\macaca\nodejs\node-global\node_modules\macaca-android\node_modules.1.0.4@ant-build\l
    ib\ant-build.js:111:16)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    Error: post install error, please remove node_modules before retry!
    Run "C:\WINDOWS\system32\cmd.exe /d /s /c node ./script/build.js" error, exit code 1
    at ChildProcess.proc.on.code (D:\workspace\macaca\nodejs\node-global\node_modules\cnpm\node_modules\runscript\index.js:67:21)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
    npminstall version: 2.15.0

  • Macaca iOS 真机测试 at 2016年12月24日

    @praguepp
    1.android 安装的时候遇到 npm i uiautomator-client 安装不上的问题?
    这个问题你是怎么解决的呢

  • @xdf OK

  • @xdf 配置完,执行该命令就异常了
    admindeMac-mini:~ nd-mac$ app-inspector -u b293b5c99905b82e7d10d50ee2cf49f8d58cb77e

    port: 5678 was occupied, changed port: 5679
    xctest-client.js:58:14 [master] pid:41295 project path not found
    app-inspector:66:44 [master] pid:41295 Error: >> xctest-client.js:58:14 [master] pid:41295 project path not found
    at Logger.error (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.5@xlogger/lib/xlogger.js:169:9)
    at XCTest.checkProjectPath (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.28@xctest-client/lib/xctest-client.js:58:14)
    at XCTest.init (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.28@xctest-client/lib/xctest-client.js:51:10)
    at XCTest (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.0.28@xctest-client/lib/xctest-client.js:39:10)
    at Object.exports.initDevice (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.2.15@app-inspector/lib/ios.js:90:12)
    at next (native)
    at onFulfilled (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.4.6.0@co/index.js:65:19)
    at /usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.4.6.0@co/index.js:54:5
    at co (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.4.6.0@co/index.js:50:10)
    at toPromise (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.4.6.0@co/index.js:118:63)

  • 💯

  • Jenkins RESTful API 定制化 at 2016年11月22日

    @AriesHuang 英文代码里面调用的是 Jenkins 的 build 入口,并没有触发 build

  • @sencho 真机上,左右滑动不行呀,ios10 上

  • @fengmiss 跑 android 用例,Junit Test 的时候,报 500 错误【Response content:Internal Server Error】? 你是怎么解决的呀?

  • @quqing 不行,还是报这样的异常,暴风影音也装了

  • @quqing F:\ndtest\traveler\log这个是我的配置,正常编码是什么呢 ?
    到这一步异常,ImagesToMovie 类中 dsink = createDataSink(p, outML) ,outML 是有值的

  • @quqing 创建视频报这样的异常
    javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@2793b2a5
    at pers.traveler.review.core.Jim2Mov.saveMovie(Jim2Mov.java:148)
    at pers.traveler.review.PicToAvi.convertPicToAvi(PicToAvi.java:64)
    at pers.traveler.robot.Robot.afterTravel(Robot.java:255)
    at pers.traveler.robot.Robot$1.run(Robot.java:165)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)
    Caused by: javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@2793b2a5
    at javax.media.Manager.createDataSink(Manager.java:1894)
    at pers.traveler.review.sun.ImagesToMovie.createDataSink(ImagesToMovie.java:177)
    at pers.traveler.review.sun.ImagesToMovie.saveMovie(ImagesToMovie.java:115)
    at pers.traveler.review.core.Jim2Mov.saveMovie(Jim2Mov.java:144)
    ... 5 more
    是怎么解决呢?

  • @quqing 是的,我在 window 上跑的!
    <!--窗口鉴定策略,默认取前 8 个节点生成 md5-->
    8
    <!--Tab 窗口用 selected 区别,可能要多选几个节点到达-->

    设置,我,活动>>24

    这个的配置是指页面上 tab 切换吗

  • @quqing 启动,udid 替换了呀,port 也替换成我本机的了

  • @quqing 我的配置:
    <?xml version="1.0" encoding="UTF-8"?>

    <!--Appium 服务关键字-->

    1.0
    true
    false
    zh-Hans


    E:/nddoc/soft/commomsoft/activity.apk
    1115fb8502812b05
    Android
    18
    1115fb8502812b05
    com.nd.sdp.component.debug
    com.nd.smartcan.appfactory.demo.SplashActivity
    true
    true
    1200
    true

    <!--引导流 关键字驱动,引导至所需模块再开始遍历-->

    <!--输入类型设置-->
    click>>id::com.nd.sdp.component.debug:id/login_account
    input>>id::com.nd.sdp.component.debug:id/login_account|421490@ndtest
    input>>id::com.nd.sdp.component.debug:id/etPsw|123456
    click>>id::com.nd.sdp.component.debug:id/btn_login


    <!--窗口鉴定策略,默认取前 8 个节点生成 md5-->
    8
    <!--Tab 窗口用 selected 区别,可能要多选几个节点到达-->

    设置,我,活动>>24

    <!--窗口执行顺序 1:从上到下 (默认) 2:从下到上-->
    1
    <!--控件白名单-->

    android.widget.Button
    android.widget.ImageButton
    android.widget.TextView
    android.widget.ImageView
    android.widget.FrameLayout
    android.widget.LinearLayout


    UIATextField
    UIASearchBar
    UIASecureTextField
    android.widget.EditText

    <!--启动界面提示框,包含的关键字及操作的控件-->
    <!-- 禁止 | 允许>>//android.widget.Button[@resource-id='com.huawei.systemmanager:id/btn_allow']-->
    <!--无需返回的列表,需配置识别窗口唯一性的内容-->

    设置

    <!--黑名单 支持 text,name,resourceId 的过滤-->

    相机
    退出登录

    <!--触发器 条件>>动作 支持返回,点击,手势密码解锁,延时等待-->


    <!--过滤级别 1:clazz+text+content_desc+resourceId 2:winID+clazz+text+content_desc+resourceId 3:taskID-->
    2
    <!--退出遍历的条件:同一窗口内的停留次数-->
    10

    <!--app 日志-->

    adb -s #udid# logcat -b main -b system -b events -b radio *:D | grep xxx


    <!--Appium port-->
    5757
    <!--Appium host-->
    127.0.0.1
    <!--测试类型 1.android 2.ios 3.web-->
    1
    <!--运行模式 1.遍历模式 2.业务场景模式-->
    1
    <!--遍历深度-->
    3
    <!--截图和视频的目录-->
    F:\ndtest\traveler\log
    <!--启动 appium-->
    D:/Program Files (x86)/Appium/node.exe D:/Program Files (x86)/Appium/node_modules/appium/bin/appium.js -p #port# -bp 5760 --session-override --command-timeout 7200 --udid #udid#
    <!--遍历时间 分-->
    3
    <!--延时等待 秒-->
    4
    <!--超时 秒-->
    30

    跑不起来,public void dfsSearch(Stack taskStack, int depth) taskStack.size 一直为 0;麻烦帮我看下 ~

  • @harsayer 你好,我安装驱动的时候报这样的错误,是什么情况呢?麻烦帮忙看下 哈

    D:\macaca-test-sample-master>npm i macaca-chrome -g
    npm ERR! Windows_NT 10.0.10586
    npm ERR! argv "D:\Program Files (x86)\nodejs\node.exe" "D:\Program Files (x86)\nodejs\node-global\node_modules\npm\bin\npm-cli.js" "i" "macaca-chrome" "-g"
    npm ERR! node v4.4.7
    npm ERR! npm v3.8.7
    npm ERR! path D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz.2692764412
    npm ERR! code EPERM
    npm ERR! errno -4048
    npm ERR! syscall rename

    npm ERR! Error: EPERM: operation not permitted, rename 'D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz.2692764412' -> 'D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz'
    npm ERR! at Error (native)
    npm ERR! { [Error: EPERM: operation not permitted, rename 'D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz.2692764412' -> 'D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz']
    npm ERR! errno: -4048,
    npm ERR! code: 'EPERM',
    npm ERR! syscall: 'rename',
    npm ERR! path: 'D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz.2692764412',
    npm ERR! dest: 'D:\Program Files (x86)\nodejs\node-cache\macaca-chrome\1.0.3\package.tgz' }
    npm ERR!
    npm ERR! Please try running this command again as root/Administrator.
    npm ERR! Windows_NT 10.0.10586
    npm ERR! argv "D:\Program Files (x86)\nodejs\node.exe" "D:\Program Files (x86)\nodejs\node-global\node_modules\npm\bin\npm-cli.js" "i" "macaca-chrome" "-g"
    npm ERR! node v4.4.7
    npm ERR! npm v3.8.7
    npm ERR! path D:\macaca-test-sample-master\npm-debug.log.4109059911
    npm ERR! code EPERM
    npm ERR! errno -4048
    npm ERR! syscall rename

    npm ERR! Error: EPERM: operation not permitted, rename 'D:\macaca-test-sample-master\npm-debug.log.4109059911' -> 'D:\macaca-test-sample-master\npm-debug.log'
    npm ERR! at Error (native)
    npm ERR! { [Error: EPERM: operation not permitted, rename 'D:\macaca-test-sample-master\npm-debug.log.4109059911' -> 'D:\macaca-test-sample-master\npm-debug.log']
    npm ERR! errno: -4048,
    npm ERR! code: 'EPERM',
    npm ERR! syscall: 'rename',
    npm ERR! path: 'D:\macaca-test-sample-master\npm-debug.log.4109059911',
    npm ERR! dest: 'D:\macaca-test-sample-master\npm-debug.log' }
    npm ERR!
    npm ERR! Please try running this command again as root/Administrator.

    npm ERR! Please include the following file with any support request:
    npm ERR! D:\macaca-test-sample-master\npm-debug.log