MSECK

Hi,

Here is our testing environment: the web application is running upon IIS from ServerA and is connected to the SQL Server from ServerB. In addition to this, the web application is SSLed and heavily built upon JavaScript and Ajax.

I ran the web application in ServerA from my computer and used Fiddler2 to capture all the HTTP Responses and Requests then saved it as myWebTest.webtest to my computer.

I ran myWebTest.webtest from my computer. It returned ¡®Request Failed: Unable to connect to the remote server.¡¯

Do I need to config any remote access or not prior running the web test remotely

Please help, thanks!



Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

Dennis Stone - MSFT

It's possible you may need to set your proxy server. The web test engine won't use your default server as your browser most likely does, you need to explicitly set it in the web test properties.




Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

Thanks for the reply!

Can you show me where to set the proxy server in the web test, please





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

Dennis Stone - MSFT

If you click on the Web Test node in the editor there will be a Proxy property in the properties grid.




Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

I entered the <IP Address> to the Proxy property in the properties grid. The same message 'Request Failed: Unable to connect to the remote server. returned from the web test.

So, I captured another web test from VSTS with the port number embedded, ie https://<ip address>:<port number>/<web site>. It returned the same message 'Request Failed: Unable connect to the remote server.' when I ran the webtest from the test editor.

Please help!





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

After the web test run is finished and rerturned 'Failed' in the Test Results panel, I selected the request which returned the message "Requested failed: Unable to connect to the remote server" from the Details tab (from the panel in between the Request and Test Results), and found the following message.

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable host
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.VisualStudio.TestTools.WebStress.WebTestTransaction.ResponseReceived(IAsyncResult result)

Could anyone be able to help, please





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

Dennis Stone - MSFT

Hrmm, if you haven't already, go to your Internet Options (via IE or control panel) and view the proxy server info there and try entering it the exact same way it appears there in the web test property.




Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

Our web application is heavily built upon JavaScript and Ajax,therefore I used Fiddler2 to capture the HTTP traffic and saved it as a WebTest then ran it from VSTS.

I made changes on IE as your suggestion. It returned the same message "Request failed: Unable to connect to the remote server".

Can anyone create a webtest towards a remote server and run it successfully be help, please





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

It might be a little bit late to ask this question. Do I need to install VSTS Test Load Agent prior to running web tests remotelty. We have VSTS Software Tester suite only but not VSTS Test Load Agent.


Can anyone share their experiences with us in this area, please





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

Dennis Stone - MSFT

Re: IE, sorry if it wasn't clear but I meant for you to change the settings in your web test properties to match that of IE, not change the IE settings, is that what you did

Regarding the agent/controller, you don't need these to run against a remote server. The controller and agent are for when you want to have the test itself execute on a different machine from where you're running visual studio. Where you execute the test, locally or remotely, is where the web requests will originate from, and is independent of whether the server you're testing against is local or remote.






Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

Thanks Dennis,

I used Fiddler2 to capture HTTPS traffic of the web application (https://<remoteServer>/<webApplicationName>/) that locates at a remote server, Fiddler2 changed the Proxy Settings in my IE during the capturing process. The altered Proxy Settings in IE has been reset after the capturing process was completed.

In the webtest, I entered 127.0.0.1:8888 to the Proxy properties from the Property Grid and run the webtest, it returned message ¡°RequestFailed: Unable to connect to the remote server¡±. Then I emptied the Proxy properties from the Property Grid and run the webtest again. It returned the same message.

Please help!





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

MSECK

I am so silly. Once I removed the firewall from my computer and then resolved this issue. The message "Request Failed: Unable to connect to the remote server" disappear :>

However, it turned up an atlas error. We used UpdatePanel from Ajax in one of the web pages. In the Details tab, it showed message "The HTTP response does not contain an HTML document." In the Response tab, it showed "20364|updatePanel|ctl00_contentPage_atlasUpdatePanel|"

Any idea, please help!





Re: Visual Studio Team System - Web and Load Testing Failed to run WebTest from a remote computer

Dennis Stone - MSFT

Split the above post off into its own thread so that you have a better chance of getting a good answer for that particular issue.

[Edit]... Well, tried to anyways, it didn't seem to work the way I wanted it to. I would advise posting your follow up question in a seperate thread.