魅力测试报告未获取执行测试的正确设备名称

时间:2019-11-15 00:29:35

标签: mocha webdriver-io allure browserstack

我对“魅力报告”中的“设备名称”有疑问。

我正在将WebdriverIO与Mocha框架和“魅力报告”一起使用,以在BrowserStack上运行测试。

以下是我在各种iOS设备上运行测试的配置:

{
        build: buildName,
        maxInstances: 1,
        device: "iPhone 6S Plus",
        os_version: "11",
        project: "Mobile Mobile",
        app: "Mobile-iOS",
        deviceName: "iPhone 6S Plus OS-11",
        "browserstack.debug": true,
        "browserstack.networkLogs":true,
        "appium:newCommandTimeout": 300,
        "appium:orientation": "PORTRAIT",
        "appium:default": true,
        "appium:automationName": "XCUITest"
    },

    {
        build: buildName,
        maxInstances: 1,
        device: "iPhone XS",
        os_version: "13",
        project: "Mobile Mobile",
        app: "Mobile-iOS",
        deviceName: "iPhone XS Plus OS-13",
        "browserstack.debug": true,
        "browserstack.networkLogs":true,
        "appium:newCommandTimeout": 300,
        "appium:orientation": "PORTRAIT",
        "appium:default": true,
        "appium:automationName": "XCUITest"
    },

    {
        build: buildName,
        maxInstances: 1,
        device: "iPad Pro 11 2018",
        os_version: "12",
        project: "Mobile Mobile",
        app: "Mobile-iOS",
        deviceName: "iPad Pro 11 OS-12",
        "browserstack.debug": true,
        "browserstack.networkLogs":true,
        "appium:newCommandTimeout": 300,
        "appium:orientation": "PORTRAIT",
        "appium:default": true,
        "appium:automationName": "XCUITest"
    },

    {
        build: buildName,
        maxInstances: 1,
        device: "iPad Mini 2019",
        os_version: "12",
        project: "Mobile Mobile",
        app: "Mobile-iOS",
        deviceName: "iPad Mini OS-12",
        "browserstack.debug": true,
        "browserstack.networkLogs":true,
        "appium:newCommandTimeout": 300,
        "appium:orientation": "PORTRAIT",
        "appium:default": true,
        "appium:automationName": "XCUITest"
    }

在BrowserStack上执行测试之后,Allure测试结果包括以下内容作为每个测试的设备名称:

<parameter kind='argument' name='device' value='iphone-12.1'/>

我不知道诱惑如何以及从何处获取“ iphone-12.1”,为什么魅力无法获取在配置中传递的设备的真实名称?

我感谢在这方面的任何帮助。谢谢。

0 个答案:

没有答案