I have been playing around with Visual Studio Team System 2008 – Test Edition for past couple of weeks. It’s a good tool for regression testing, automated testing (we can record macro’s) and load testing using IIS (more on this later).
The issue I faced was when I ran web test (macro recording), Visual Studio would throw this error –
Request failed: Could not run Web test ‘Login’ on agent ‘ABCPC00124’: Method not found: ‘Void Microsoft.VisualStudio.TestTools.WebTesting.WebTestContext (System.Collections.Generic.Dictionary`2, Int32, System.String, System.String, Int32, Int32, Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel)’.
I could successfully record web tests but could never execute them!
The issue was because the web test agent couldn’t reference the assembly Microsoft.VisualStudio.TestTools.WebTesting.WebTestContext correctly. It was resolved when I installed (actually reinstalled) the Visual Studio 2008 SP1 https://www.microsoft.com/en-in/download/details.aspx?id=10986.
Hope this helps someone.