You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用TFS 2017的Cloud Based Load Test等步骤测试本地URL?

Fixing Cloud-Based Test Failures for Local URLs in TFS 2017

Got it, let's figure out how to get TFS 2017's cloud-based load and web performance tests working with your local URLs. The core issue here is that Microsoft's cloud test runners live on public networks—they can't reach your local services unless you make them accessible externally. Here are your best options:

Option 1: Use a Local Tunnel Tool (Quick, Temporary Solution)

This is ideal for ad-hoc testing or when you don't have access to enterprise network configurations:

  • Grab a tool like ngrok (a popular free option) and install it on the machine hosting your local service.
  • Run the command ngrok http <your-local-port> (e.g., ngrok http 80 if your service uses port 80). This generates a public URL (like https://abc123.ngrok.io) that forwards traffic straight to your local service.
  • Update your cloud test step in TFS to use this public URL instead of your local localhost or internal IP address.
  • Heads up: Free ngrok URLs are temporary—they change every time you restart the tool. For persistent testing, consider a paid plan with a custom domain.

Option 2: Configure Port Forwarding (Permanent Enterprise Solution)

If your organization has a public IP address, set up port forwarding to expose your local service to the public internet:

  • Work with your IT team to map your local server's IP and port to a public port on your organization's external IP. For example, forward traffic from http://your-public-ip:8080 to http://local-server-ip:80.
  • Ensure your firewall allows incoming traffic from Microsoft's cloud test service IP ranges. You can find these ranges in the TFS 2017 official documentation to set up proper allow rules.
  • Use the public mapped URL in your TFS cloud test steps.

Option 3: Set Up a Site-to-Site VPN (Secure Long-Term Solution)

For secure, ongoing testing without exposing your service directly to the public internet, connect your enterprise network to Microsoft's cloud via a VPN:

  • Create a VPN gateway in Azure (since TFS cloud tests run on Azure infrastructure) and set up a site-to-site VPN connection with your organization's local VPN device.
  • Once the VPN is active, cloud test runners will be able to access your internal URLs directly (e.g., http://internal-server:8080).
  • Update your TFS test configuration to use the internal URL as you would for regular local testing.

Final Pre-Test Check

Before running your test, verify the target URL is accessible from outside your local network. Use a device not connected to your internal network (like a phone on cellular data) to load the URL—if it works, the cloud tests should too.

内容的提问来源于stack exchange,提问作者Mr. N. Das

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:16:56