• 我这边用百度免费的通用文字识别(高精度版)AI 接口对下面的这种验证码格式基本都识别不成功,有没有小伙伴遇到这种情况
    client = AipOcr(APP_ID, API_KEY, SECRET_KEY)

    options = {"language_type": "ENG", "detect_direction": "true", "detect_language": "true", "probability": "true"}
    result = client.basicAccurate(image_data, options)

  • 简单聊聊 TestNG 中的并发 at 2019年12月06日

    Nisir,您好,想问下并发执行日志怎么进行管理,日志输出会比较乱,有没有方法针对设备进行区分

  • 这个有实现白名单和黑名单了吗

  • @seveniruby 为啥下面的操作执行时成为 click 操作了

    testcase:
      name: login
      steps:
      - when:
          xpath: //*[@resource-id='xxx/et_phone']
          action: 10086
        then: []
    
  • @seveniruby 思寒,现在是不是还不支持长按操作,我看源码里面写着 undo,啥时会实现呢

  • @seveniruby appcrawler 控制台乱码怎么解决

  • 可惜在北京

  • 你这是获取到了一个集合

  • @gw172311655 这种情况没有解决方案吗?

  • @lihuazhang 怎么解决?

  • @lylyliuyu 我过了很久才去截取此界面,也是报这个错,在 Android4.4.4 的系统总是遇到,5 的系统是 OK 的

  • @chenhengjie123 tmp 参数是用来管理临时文件的目录,官方文档是这样说的
    Absolute path to directory Appium can use to manage temporary files, like built-in iOS apps it needs to move around. On *nix/Mac defaults to /tmp, on Windows defaults to C:\Windows\Temp

  • 一台 mac 机交替运行多台设备可用如下方法,必须指定下 tmp 参数才可行
    appium -p 4727 --tmp /tmp/tmp4727
    appium -p 4729 --tmp /tmp/tmp4729
    并发运行 ios 目前还不支持

  • time 时间设置大点

  • @chenhengjie123
    好的,我先试试

  • JetsamEvent-2015-08-17-211102.ips 文件内容

    {"version":"105","bug_type":"198","os_version":"iPhone OS 8.1.2 (12B440)"}
    Incident Identifier: 9CC1F385-21E1-41AD-8D92-F62C5E190A5C
    CrashReporter Key:   729cafa78776b71e233c364269b7373f4a475f07
    Hardware Model:      iPhone7,2
    OS Version:          iPhone OS 8.1.2 (12B440)
    Kernel Version:      Darwin Kernel Version 14.0.0: Mon Nov  3 22:27:30 PST 2014; root:xnu-2783.3.22~1/RELEASE_ARM64_T7000
    Date:                2015-08-17 21:11:02 +0800
    Time since snapshot: 208 ms
    
    Free pages:                              2522
    Active pages:                            102116
    Inactive pages:                          51324
    Speculative pages:                       542
    Throttled pages:                         0
    Purgeable pages:                         43
    Wired pages:                             51796
    File-backed pages:                       52072
    Anonymous pages:                         101910
    Compressions:                            486100
    Decompressions:                          56384
    Compressor Size:                         45040
    Uncompressed Pages in Compressor:        168409
    Page Size:                               16384
    Largest process:   yymeet
    
    Processes
         Name       |            <UUID>                |     CPU Time|     rpages|       purgeable| recent_max| lifetime_max| fds |  [reason]         | (state)
    
               tipsd <8a4b7d2b982d3a24a404911bd1e0b4fa>         0.034         241                0           -          1120   50                       (daemon) (idle)
            BlueTool <98f4ae8f4a86387ba994a3921c75f200>         0.057         123                0           -           403   50                       (daemon) (idle)
    CloudKeychainPro <8c8fca92a936364e8fbd4ca2ebca5551>         0.048         207                0           -           798   50                       (daemon) (idle)
         touchsetupd <360a0fa361f93b9ca29b60ca8d150c24>         0.018         184                0           -           677   50                       (daemon) (idle)
      askpermissiond <f85d377ccc3a3c6291cbe7f30b657940>         0.055         372                0           -          1771   50                       (daemon) (idle)
    softwarebehavior <b5a422d8ee04359394b4791a0040027b>         1.655         139                0           -           493   50                       (daemon) (idle)
    AppleIDAuthAgent <32f4603750953460b1a7cb4969fd7cf5>         0.048         289                0           -          1377   50                       (daemon) (idle)
    AGXCompilerServi <19cedded71103f5ca8a899879bc5dee9>         0.287         819                0           -          1239   50                       (daemon) (idle)
    com.apple.Mobile <5757266bc2b73350a2ab93c8f1c8c55d>         0.028         157                0           -           632   50                       (daemon) (idle)
              oscard <25f1ef6b1ac93b9ab8c69716dc40d8d2>         0.038         155                0           -           618   50                       (daemon) (idle)
                misd <33855e3c639237059e7c9d7dda6aca90>         0.040         177                0           -           752   50                       (daemon) (idle)
              cloudd <0494e724c52d3983a07fe13b65f887b5>         1.511         652                0           -          1939   50                       (daemon) (idle)
               homed <c7a57707f0cb303aa51c5ef3eba49bf5>         0.318         483                0           -          1398   50                       (daemon) (idle)
                 ind <555954f98c873bf9a1dad92299d94862>         0.092         413                0           -          1156   50                       (daemon) (idle)
    AGXCompilerServi <19cedded71103f5ca8a899879bc5dee9>         0.059         702                0           -           998   50                       (daemon) (idle)
    CallHistorySyncH <bc9285858ef43d54840605171b184fa2>         0.089         395                0           -          1185   50                       (daemon) (idle)
    familynotificati <5fa9c22cf4483195998842525051ec31>         0.056         379                0           -          1801   50                       (daemon) (idle)
    com.apple.uifoun <87486c98c2873ab7a0a1a044a5a0cfd3>         0.042         223                0           -           839   50                       (daemon) (idle)
        CMFSyncAgent <f7bc930000a53768a6287fbb3aff41a0>         0.050         204                0           -           802   50                       (daemon) (idle)
                absd <49d206be83ec33ffac40704c64442ab7>         0.129         108                0           -           377   50                       (daemon) (idle)
      CalendarWidget <6bf4546d25ad3af88f0a8ebdc7b9c008>         0.267         711                0           -          2240   50                       (suspended)
    limitadtrackingd <a18e33d0c7d23fe5957c2248f120c290>         0.107         282                0           -          1291   50                       (daemon) (idle)
           pipelined <705014c3b3bd30b38477a0f1b898d940>         0.142         382                0           -          1628   50                       (daemon) (idle)
    com.apple.Mobile <865e9aa3dce0392393a2445e115bc26f>       103.078         327                0           -         53339   50                       (daemon) (idle)
     softwareupdated <096da8bc1478333b82f5ad017f717683>         0.089         191                0           -           514   50                       (daemon) (idle)
    softwareupdatese <4709ed9e2ad1314c8967b0ccefdd61eb>         4.655        1187                0           -          2460   50                       (daemon) (idle)
       familycircled <9ec9bd0fd26a360abcd72e6719607ec5>         0.238         546                0           -          2162   50                       (daemon) (idle)
                fmfd <79ac5763aecf3701ac2f8dc4cc32dd6e>         0.268         348                0           -          1045   50                       (daemon) (idle)
    AssetCacheLocato <55ab6e6f9fcc3faa808315c68a9bd671>         0.206         294                0           -           812   50                       (daemon) (idle)
    com.apple.Stream <203112144ccc3e84acf77312bcf37070>        44.902         174                0           -           661   50                       (daemon) (idle)
    networkd_privile <eebb16a6041134bc8478a72db624dedc>         0.026         101                0           -           220   50                       (daemon) (idle)
    AGXCompilerServi <19cedded71103f5ca8a899879bc5dee9>         0.548         787                0           -          1162   50                       (daemon) (idle)
           coreauthd <e89a494d9c6d344db380dd6027c41e26>         0.174         409                0           -          1561   50                       (daemon) (idle)
        itunescloudd <3c27717ba95236b5bc820c9c337da4eb>         2.764        1837                0           -          4423   50                       (daemon) (idle)
    WirelessRadioMan <c4181e6d863133e8aa0c95e77a7bb206>         0.152         293                0           -           924   50                       (daemon) (idle)
           mapspushd <123d4e62753d3ca0a5283b692f62e306>         0.310         552                0           -          1297   50                       (daemon) (idle)
       callservicesd <27cad5bfd74a36248eb3f7f986205967>         0.216         527                0           -          1843   50                       (daemon) (idle)
             healthd <9c827f1747f83866b20dcf4e398cc04d>         0.415         756                0           -          1518   50                       (daemon) (idle)
                afcd <af8b79b0410a319c8446f31eb8a9cf5f>         0.245         128                0           -           338   50                       (daemon) (idle)
    com.apple.Stream <203112144ccc3e84acf77312bcf37070>         5.169         162                0           -           686   50                       (daemon) (idle)
                swcd <05434abfd6103a369f3321d5bd15c96e>         0.022         170                0           -           507   50                       (daemon) (idle)
          aosnotifyd <8928d77645f134aa9150588fe1c143cf>         0.881         554                0           -          1907   50                       (daemon) (idle)
            nehelper <a98617d4c9893a96ae15f98983dc7357>         0.550         235                0           -           726   50                       (daemon) (idle)
       fileproviderd <1e8233d44774331681acd321b0b68c5c>         0.468         206                0           -           530   50                       (daemon) (idle)
    streaming_zip_co <60920fc5a7c335beb44817afc5fe72c3>         2.698         259                0           -           979   50                       (daemon) (idle)
               amfid <b99c533410f83014865bb0977d6f1a45>         0.602         191                0           -          1482   50                       (daemon) (idle)
    storebookkeeperd <82ef625f18ee32a0b095abe367a3e492>         2.054        1736                0           -          3726   50                       (daemon) (idle)
       findmydeviced <36e2b8af21133fb7a5a6271ab4d4f8de>         0.251         581                0           -          1952   50                       (daemon) (idle)
            profiled <0f31f2a45f1c344cb3e4262aeaa0bd6e>         0.637         582                0           -          2294   50                       (daemon) (idle)
                adid <4311d58b77b73fd4bf2c9e9e0bbe7102>         0.101         139                0           -           558   50                       (daemon) (idle)
    containermanager <7036996ffbed3c0e9b50d8868efe28e0>         4.455         285                0           -           698   50                       (daemon) (idle)
            installd <7c3b2d42b66f3980901a019d84660fab>        22.276         870                0           -          2402   50                       (daemon) (idle)
        mobileassetd <2a22e27544cc3061a22b02482e465e18>        15.579         757                0           -          2609   50                       (daemon) (idle)
          librariand <f9f0c579e622316c8bbbb336519c77cf>         0.288         291                0           -           955   50                       (daemon) (idle)
    CacheDeleteITune <7f900802917d313298879dec688b2d0e>         0.117         209                0           -           704   50                       (daemon) (idle)
    CacheDeleteAppCo <61f8c6f529ba3ccca46faeeba32337c2>         0.714         312                0           -           856   50                       (daemon) (idle)
             assetsd <276c271c5b073f58bf87c49abf22b264>         3.200        2172                0           -          4991   50                       (daemon) (idle)
       webbookmarksd <ef37d07a6d2c36d69d0c8a443e47b70b>         0.089         323                0           -          1346   50                       (daemon) (idle)
    CacheDeleteGeoTi <aae2236e838a3953b6e27472731c6772>         0.058         175                0           -           525   50                       (daemon) (idle)
       medialibraryd <6a42c5e99f153b4baa0992e9902bee82>         1.426        1187                0           -          2371   50                       (daemon) (idle)
    CacheDeleteMobil <1bacbffe07b13637aa9aad35edb7761c>         0.427         990                0           -          2343   50                       (daemon) (idle)
             deleted <92e51a2db5813edb965afddd42774ef5>         0.206         179                0           -           502   50                       (daemon) (idle)
             lockbot <e3986c6d811b3ce2ac54a7e4a028b97e>         0.132         171                0           -           692   50                       (daemon) (idle)
    mobile_assertion <86fcecf09c743011873ff3058c4f14f2>         0.050         131                0           -           376   50                       (daemon) (idle)
                bird <646b4254a19a34caa4840f8001fd4420>         0.194         426                0           -          1672   50                       (daemon) (idle)
          calaccessd <0a7ad7bbfb523bfdbae43aa6f21279f6>         2.089         795                0           -          1878   50                       (daemon) (idle)
    DuetHeuristic-BM <9aa9282d17cf332e8533e8c3b993a5f8>         1.114         331                0           -           997   50                       (daemon) (idle)
                 pkd <caa0944ef38235e7ac99199add47d66d>         0.692         306                0           -           664   50                       (daemon) (idle)
        StocksWidget <2028e47c87423ef5a6e34ce0fa47c967>         5.696        2135                0           -          4027   50                       (suspended)
            recentsd <c21dbb35d7a232298410e388a1752a23>         0.473         481                0           -          1435   50                       (daemon) (idle)
     lsuseractivityd <1f7bf524070239ec8b880c0e23d3605e>         0.328         428                0           -          1690   50                       (daemon) (idle)
    mobile_installat <edbce91b2e3c348f8f4ad95fb6b1ad46>         4.719         397                0           -          1116   50                       (daemon) (idle)
        itunesstored <360e542ae3f4340f9e0e4abb66d7f8b3>        91.988        4459                0           -          7555  100                       (daemon) (idle)
                 atc <8f9dadfafed8349cbbc0ebffcb5bb407>         5.399        2039                0           -          4780   50                       (daemon) (idle)
            misagent <ddb04cb78e2537a088fbe6c299c0ed8e>         0.816         269                0           -          1417   50                       (daemon) (idle)
       nsurlstoraged <85de3fa57a65304a959e6c2956042080>         6.140        1014                0           -          1858  100                       (daemon) (idle)
                awdd <58036e1703903ee798a8803de204c300>         1.980        1915                0           -          2591   50                       (daemon) (idle)
               timed <6fa98ab7f5de312b9bfed47e04e3a43e>        10.188         330                0           -          1139   50                       (daemon) (idle)
            routined <6af52733d73a3138b87a648155eb3029>        12.416         798                0           -          1665   50                       (daemon) (idle)
             keybagd <3cc5172d4fa8356eb974349470656fdd>         1.527         128                0           -           441   50                       (daemon) (idle)
            sandboxd <9c8a7200ee063eb4b1c5828bfe7a65ee>         0.087         156                0           -           685   50                       (daemon) (idle)
    IMDPersistenceAg <2dce0ccfbe5937ab8444f5c6847b4ba1>         0.154         429                0           -          1137   50                       (daemon) (idle)
    assistant_servic <97db64323f2e364ea0af497680126850>         1.214        1592                0           -          3994   50                       (daemon) (idle)
          assistantd <8cd686ffca53371b82b5dd21033baf56>         4.423        1004                0           -          3162   50                       (daemon) (idle)
                geod <0f816c02eb453d968c7bd1e4c1ecb994>         5.666         683                0           -          1510   50                       (daemon) (idle)
           coreduetd <9350124ebae037c6af119882ab89eb49>        16.970        1194                0           -          2072   50                       (daemon) (idle)
      mobactivationd <76a2c0e632ca3eb3ba69d95a68bdaee4>         1.238         217                0           -           772   50                       (daemon) (idle)
           securityd <d402105e9df1368ab75d7537cb8b43c0>        30.892        1000                0           -          1649   50                       (daemon) (idle)
           accountsd <75b3925e9bec337abda4f51e69fc8aa3>        37.954        1561                0           -          4443   50                       (daemon) (idle)
        mediaremoted <baa09addc0ae3b55a72cfe7b2699a962>         2.981         307                0           -          1130   50                       (daemon) (idle)
    MobileGestaltHel <19968f31a89230a6b66e51ad668f0921>         1.652         180                0           -           534   50                       (daemon) (idle)
    coresymbolicatio <09a629143bfc3a7d9228b414bb958ae9>         0.025         102                0           -           221   50                       (daemon) (idle)
         diagnosticd <274578acfd6d358a95c961c0bab148a9>         0.040         122                0           -           216   50                       (daemon) (idle)
       nsurlsessiond <ab90763d8a453fc68012fabc4b4f55fb>       139.588         548                0           -          1542   50                       (daemon)
                seld <18863ab32c7634d5b7f200821acffd06>         0.138         262                0           -           999   50                       (daemon)
                nfcd <59e46913bec838d989d5bed82cb05791>         0.140         261                0           -           717   50                       (daemon)
       biometrickitd <71607be9393c366eb1bbe281256fde77>         0.586         264                0           -           748   50                       (daemon)
    notification_pro <b143453e80393938a7ba23a0181dc52c>         1.205         229                0           -           468   50                       (daemon)
               passd <56971afa88b53f05a37688cad47b4160>         1.441         760                0           -          2704   50                       (daemon)
                afcd <af8b79b0410a319c8446f31eb8a9cf5f>         0.663         179                0           -          1326   50                       (daemon)
          MobileMail <4b48abd990e93dbea47db1cbf328da9e>         3.619        1882                0           -          3610   50                       (resume) (continuous)
            mstreamd <61632b0d340f3a9880dece3cccf3d9cc>         0.120         515                0           -          1938   50                       (daemon)
                 lsd <f554bd07b90a3cfc9d9ef9f8e234833c>         4.376         596                0           -          1397   50                       (daemon)
                tccd <f2878273872231afa1a6e0af2dcb73a6>         1.038         322                0           -           879   50                       (daemon)
                 kbd <8c8bded31cf73db2b44aa996c0e90921>        12.792        2626                0           -          8011   50                       (daemon)
              yymeet <e4fc6b86c9063883ae7db55bf0c92912>       297.273      167019                0           -         50504  100  [per-process-limit]  (frontmost) (resume)
                ptpd <a06176d3eefe3e3c8549bb4f6d340658>         3.163        1010                0           -          2187   50                       (daemon)
            BTServer <2d0fc0974c073a0aafc9954110080950>         1.057         541                0           -          1779   50                       (daemon)
               wifid <43e56e539a6a3114bf4cd7646c8dd90e>        23.386         718                0           -          1831   50                       (daemon)
           lockdownd <3a0b3375ad6e391da37a1f79f46843b0>        25.942         543                0           -          1280   50                       (daemon)
          discoveryd <68f73878299336d7872b0ae9ce3f7f08>        59.952        1071                0           -          1406  100                       (daemon)
           locationd <5b826e2c09c23eaaa2acc2472269cb30>       313.388        2500                0           -          5259   50                       (daemon)
        mediaserverd <a0354e528bc431958df0d50830bead36>      1360.982        2940                0           -          5296   50                       (daemon)
       iaptransportd <4bf77076d69630e389ba64229c526723>         3.205         369                0           -           897   50                       (daemon)
    identityservices <9d4b00e3c6003685ac8697c59f4e4d38>        14.896        1033                0           -          5499   50                       (daemon)
             imagent <d5e037ad2173362d8a6077788b2d7074>         1.543         866                0           -          3185   50                       (daemon)
            cfprefsd <4325eab208063b998046460a4c2ee484>        23.317         452                0           -          1575   50                       (daemon)
             syslogd <05f6b5e5512938a892bac5af23ab1c08>        82.871         264                0           -           597   50                       (daemon)
              powerd <2b4ae8758a5b3b709a97c452ec08923b>        13.082         450                0           -           791   50                       (daemon)
                apsd <bb925404cb1137b09b85671a8d2c7656>        14.403         722                0           -          2012   50                       (daemon)
            networkd <fa2acedf0b0035269d66a72e28c3a95a>        29.523         784                0           -          1723   50                       (daemon)
                 vmd <c3b3270d187f3dcaa843ba73f01ff8cb>         0.037         254                0           -           859   50                       (daemon)
         dataaccessd <33bcaea3bc473f128685f4df14a115eb>         1.571         940                0           -          2855   50                       (daemon)
            sharingd <1ed17c64831f32ea9cbb47e48c4d222c>         0.662         735                0           -          2200   50                       (daemon)
        syslog_relay <087c67d0371b324fb6df48442016ec90>         9.342         113                0           -           236   50                       (daemon)
         SpringBoard <96f929dd23123d8bbc9ba2a0bb48bde1>       250.312       12307               43           -         20141   50                      
          backboardd <e263837653b434f1880f9d37b3926998>      1753.130        9037               86           -          5946   50                       (daemon)
      UserEventAgent <f5a211b9c88e3fa481f2bd1ee1f5a921>       120.243        1040                0           -          2869  100                       (daemon)
           fseventsd <16c9b62bb28c388ca10d54dbff18c4f8>        13.375         424                0           -           855   50                       (daemon)
             configd <ed40fcde35ae337ab3b70073199564b1>         9.491         552                0           -          1536   50                       (daemon)
        fairplayd.H2 <cae337642f6d396b82ac54e72bc0e0a4>        32.897         456                0           -          1830   50                       (daemon)
       wirelessproxd <ab1fa7e43a7c3f9393533404c2cc80b8>         0.123         242                0           -           971   50                       (daemon)
          assertiond <10ec04add18f3ecd8a8efbb1cc4e2bd6>        16.846         351                0           -           946   50                       (daemon)
           distnoted <cb5e76091dc53ceeaf65290f8e197a89>         2.201         214                0           -           303   50                       (daemon)
          aggregated <281958649a3130aab6ecb1aa47f0a6c1>       316.850        1564                0           -          2521   50                       (daemon)
    discoveryd_helpe <492c39ae2d643adca0ed971675c77406>         0.024         153                0           -           688   50                       (daemon)
    filecoordination <5ec159db1afe3317878b8ab794e2d7d1>         1.253         284                0           -           940   50                       (daemon)
          DTMobileIS <2fdc94aa5069338e815fbe3a13e3d95c>        88.875        1584                0           -          3570   50                       (daemon)
         ScriptAgent <15de65a9681f396a89c3114abd41c2a6>        83.782        4000                0           -          5300   25                       (daemon)
          CommCenter <33412ab229c738c8860c70803fed173b>       191.895        1602                0           -          4698   50                       (daemon)
             notifyd <5fa8fd5e44c83f64be1475b882b16c82>        52.202         382                0           -           426   50                       (daemon)
         ReportCrash <e946799f25f833fd9b37a6a1c7b1993c>         0.090         340                0           -           806   50                       (daemon)
    
    **End**
    
     ``` java
    
  • @chenhengjie123 @sanlengjingvv
    log 里没有出现 crash 的日志,有个 JetsamEvent-2015-08-17-211102.ips 这样的文件,有没有可能是内存不足退出去了

  • 期待好书

  • 楼主这个问题解决没,我目前也遇到这个问题 ,不断交互后发出不了命令,卡在那,也不报任何错。

  • 我最开始也是遇到这个问题,主要还是坐标设置得不合理引起的

  • 先 debug 模式运行代码,看是否能实现滑动效果,如果不行修改对应的坐标值