如何使用WebDriver向webgetest提交web性能测试结果?

2024-05-15 17:30:45 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用Python中的Selenium Webdriver自动化web应用程序的性能测试。在

我在GTAC演讲中遵循了建议的解决方案Web Performance Testing with WebDriver

这是Java和Python中的the example of the code。 但在Python示例中,只描述了从开发工具获取日志的部分内容。 而向webgetest提交日志的部分仅提供Java语言。在

我从Chrome开发工具获得JSON格式的性能日志。以下是一部分:

{
    "params":
    {
        "initiator": {"type": "other"},
        "documentURL": "https://stackoverflow.com/",
        "timestamp": 43210.132828,
        "request": {
            "mixedContentType": "none",
            "headers": {
                "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36",
                "Upgrade-Insecure-Requests": "1"
            },
            "url": "https://stackoverflow.com/",
            "initialPriority": "VeryHigh",
            "method": "GET"
        },
        "frameId": "29134.1",
        "requestId": "29134.1",
        "loaderId": "29134.1",
        "type": "Document",
        "wallTime": 1479142661.979178
    },
    "method": "Network.requestWillBeSent"
}

现在我无法将结果提交给网页测试.org. 在

有没有人有从Selenium WD Python向webgetest提交性能测试结果的经验?在


Tags: thehttpscomweb应用程序typeseleniumjava