• 记一次静态代码扫描实践 at 2020年06月19日

    更多情况下还是依赖于开发自定义插件扫描

  • 大公司说 专一个深入一个就行了

  • 关键是只有支持 hessian 方式的类库,应用范围窄

  • 已解决,谢谢

  • 并发 40 台机器,不可能这样替换的,chromedriver 目前只有 2 种方案,一个是启动 server 的时候就明确的指出每个手线程对应的每个手机用哪个 chromedriver,直接启动,另外一个就是使用这个新关键字,在切 h5 句柄的时候动态获取在启动

  • 。。并没有找的日志,上面都是业务逻辑的 log 了,[HTTP] --> POST /wd/hub/session/78435b13-ccb6-48fd-a611-511380dcaba7/context
    [HTTP] {"name":"WEBVIEW_stetho_com.baosight.carsharing:remote"} 这一步就是切 h5 切句柄开始了,能看到找版本的过程的 log,我都搞定了。。。

  • 附上 cap 和 mapping 文件
    {
    "android": {
    "platformName": "android",
    "platformVersion": "",
    "deviceName": "android",
    "app": "./build/xx.apk",
    "appPackage": "com.xx.xx",
    "appActivity": "com.xx.activity.AppStartActivity",
    "noSign": true,
    "unicodeKeyboard": true,
    "resetKeyboard": true,
    "noReset": true,
    "recreateChromeDriverSessions": true,
    "automationName": "UiAutomator2",
    "uiautomator2ServerInstallTimeout": 300000,
    "newCommandTimeout": 500,
    "chromedriverChromeMappingFile": "/xxxxxx/caps/chromeDriverMapping.json",
    "chromedriverExecutableDir": "/xx/xx/Documents/ChromeDriver"
    },

    {
    "2.41": "67.0.3360",
    "2.40": "66.0.3359",
    "2.38": "65.0.3325",
    "2.37": "64.0.3282",
    "2.36": "63.0.3239",
    "2.35": "62.0.3202",
    "2.34": "61.0.3163",
    "2.33": "60.0.3112",
    "2.32": "59.0.3071",
    "2.31": "58.0.3029",
    "2.29": "57.0.2987",
    "2.28": "55.0.2883",
    "2.27": "54.0.2840",
    "2.26": "53.0.2785",
    "2.24": "52.0.2743",
    "2.23": "51.0.2704",
    "2.22": "49.0.2623"
    }

  • [HTTP]
    [HTTP] --> POST /wd/hub/session/78435b13-ccb6-48fd-a611-511380dcaba7/context
    [HTTP] {"name":"WEBVIEW_stetho_com.baosight.carsharing:remote"}
    [Chromedriver] Unable to discover Chrome version. Using Chromedriver 2.41 at '/Users/jinwei/Documents/ChromeDriver/2.41'
    [Chromedriver] Set chromedriver binary as: /Users/jinwei/Documents/ChromeDriver/2.41
    [Chromedriver] No old chromedrivers seemed to exist
    [Chromedriver] Spawning chromedriver with: /Users/jinwei/Documents/ChromeDriver/2.41 --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
    [Chromedriver] Error: Failed to start Chromedriver session: A new session could not be created. Details: session not created exception: Chrome version must be >= 67.0.3396.0
    Chromedriver
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (/usr/local/lib/node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
    [Chromedriver] at Chromedriver.callee$2$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/lib/chromedriver.js:448:13)
    [Chromedriver] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
    [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw

    Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
    [Chromedriver] Unable to automate Chrome version because it is too old for this version of Chromedriver.

    [Chromedriver] Chrome version on device: Chrome/55.0.2883.91

    [Chromedriver] Please see 'https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md'
    [Chromedriver] Error: Failed to start Chromedriver session: A new session could not be created. Details: session not created exception: Chrome version must be >= 67.0.3396.0
    Chromedriver

    看日志,一开始获取手机 chrome 版本的时候获取不到,直接使用了当前最高的 2.41 版本导致版本不匹配报错,但是后续的日志又能识别出 Chrome version on device: Chrome/55.0.2883.91 ,看了 appium 的源码,源码在在判 chromedriver 版本的逻辑为 chromeVersion = chromeVersion ? semver.coerce(chromeVersion) : null; 我感觉我的情况应该是 chromedriver 为 null,但是 不清楚为什么。。。

  • 普通手机装得上吗 xposed installer

  • 您好,suite 文件夹下的模块定义是如何写的?在 testcase 中是如何引用模块定义的呢?
    git 上 https://github.com/HttpRunner/HttpRunner/tree/master/examples 下可能链接失效了 404,并没有你提到的 HelloWorld
    谢谢!!😀 麻烦告知一下,谢谢您,