【问题标题】:Selenium C# integration With Neoload performance testing toolSelenium C# 与 Neoload 性能测试工具的集成
【发布时间】:2020-01-21 06:27:14
【问题描述】:

谁能帮我详细说明将 selenium C# 脚本与 neoload 工具集成的过程。我想将 selenium C# 和 Appium C# 编码与 neoload 集成。所以我完成了文档中的一些步骤,但无法运行示例代码并没有不明白我们如何将 selenium/appium C# 脚本与用于 chrome 或任何浏览器的 neoload 集成,并使用相同的工具对 Web 或移动应用程序执行负载测试。请你看看共享的屏幕截图并帮助我分享有价值的东西包含任何简单示例的文档,以了解概念/获得一些信心。感谢您提供宝贵的时间

【问题讨论】:

    标签: c# performance selenium devops neoload


    【解决方案1】:

    我修改了此处为 chrome 驱动程序找到的代码:https://www.neotys.com/documents/doc/neoload/latest/en/html/#24364.htm

    DesiredCapabilities cap = new DesiredCapabilities();
    NLWebDriverFactory.AddProxyCapabilitiesIfNecessary(cap);
    object proxyCapability = cap.GetCapability(CapabilityType.Proxy);
    ChromeProfile profile = new ChromeProfile();
    if (proxyCapability != null) {
        profile.SetProxyPreferences(proxyCapability as Proxy);
    }
    
    ChromeDriver webDriver = new ChromeDriver(profile);
    

    您的问题是您需要为 ChromeDriver 提供一个具有 DesiredCapabilities 的配置文件,而您尝试将它们直接应用于驱动程序。

    【讨论】:

      猜你喜欢
      • 2020-07-18
      • 2016-12-04
      • 1970-01-01
      • 2010-10-03
      • 2015-08-03
      • 2012-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多