• 关于 IOS 的 monkey 测试 at August 02, 2023

    借贴问一下,大家帮忙推荐下比较好用的 android monkey 工具😁

  • 也遇到楼主一样的问题😨

    [WD Proxy] Got an unexpected response: {"value":{"error":"session not created","message":"'capabilities' is mandatory to create a new session","traceback":""},"sessionId":"226942E2-886E-4293-887C-71C15863468C"}
    [W3C] Matched W3C error code 'session not created' to SessionNotCreatedError
    [XCUITest] Failed to create WDA session (A new session could not be created. Details: 'capabilities' is mandatory to create a new session). Retrying...
    [XCUITest] SessionNotCreatedError: A new session could not be created. Details: 'capabilities' is mandatory to create a new session
    [XCUITest] at errorFromW3CJsonCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:802:25)
    [XCUITest] at ProxyRequestError.errorFromW3CJsonCode as getActualError
    [XCUITest] at JWProxy.getActualError as command
    [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: A new session could not be created. Details: 'capabilities' is mandatory to create a new session Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
    [XCUITest] Quitting and uninstalling WebDriverAgent
    [XCUITest] Shutting down sub-processes
    [XCUITest] Shutting down iproxy process (pid 2712)
    [XCUITest] iproxy exited with code 'null'
    [XCUITest] Shutting down xcodebuild process (pid 2713)
    [XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
    [XCUITest] Removing WDA application from device
    [XCUITest] Error: Unable to start WebDriverAgent session because of xcodebuild failure: A new session could not be created. Details: 'capabilities' is mandatory to create a new session Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
    [XCUITest] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:501:15)
    [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
    [iOSLog] Stopping iOS log capture
    [BaseDriver] Event 'newSessionStarted' logged at 1570212696333 (02:11:36 GMT+0800 (CST))
    [MJSONWP] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: A new session could not be created. Details: 'capabilities' is mandatory to create a new session Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
    [MJSONWP] at quitAndUninstall (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:501:15)
    [HTTP] <-- POST /wd/hub/session 500 29009 ms - 538
    [HTTP]
    [HTTP] --> DELETE /wd/hub/session
    [HTTP] {}
    [HTTP] No route found. Setting content type to 'text/plain'
    [HTTP] <-- DELETE /wd/hub/session 404 3 ms - 57
    [HTTP]

  • pytest 基础讲解 at September 19, 2019

    排版不太好😹
    最好能提供一份 demo 代码

  • FastMonkey iOS11 踩坑记 at August 07, 2019


    这个问题有人遇到没😂

  • Allure 插入附件

    @Attachment("请求报文")
        public static String requestBody(String URL, String body) {
    
            //格式化json串
            boolean prettyFormat = true; //格式化输出
            JSONObject jsonObject = JSONObject.parseObject(body);
            String str = JSONObject.toJSONString(jsonObject,prettyFormat);
    
            //报告展现请求报文
            return URL+"\n"+str;
        }
    
        @Attachment("响应报文")
        public static String respondBody(String respond) {
            //报告展现响应报文
            return respond;
        }
    

    case 引用

    // 请求
    requestBody(SelfConfig.onlineurl + url,jsonObj.toString());
    
    
    // 响应      
    String json = response.asString();
    System.out.println("json:  "+json);
    JsonPath jp = new JsonPath(json);
    
    //测试报告展现 请求报文
    respondBody(json);
    

    报告展示

  • 你这个问题找到原因了没,老哥

  • 开源吗

  • 解决了没