Solutions to Web Test Automation Common Problems

SwatiV
Posted by in Visual Studio category on for Beginner level | Points: 250 | Views : 7748 red flag

Providing the soutions for the common problems that occurs while performing Web Perfomance test in Visual Studio 2010

Introduction


This Article helps us to understand and resolve few common problesm that generally occur while automating with the Web test of Visual studio.

Below are the few issues that we face  while recording the Application under test

Problems and their Solutions

1. During Automation using VSTS 2008, while recording if Internet explorer browser doesnt turn up with the options for recording ( i. e web test recorder) then the Best way is to "Open the Visual studio as Run as Administrator"

The Disabling of  browser  options can be overcomed (If we are using Visual Studio 2008) by installing the  Visual Studio 2008+ SP1 Compatability patch

2. During execution of automation test suite, if you get "The test could not be run because of the following exception: as below

Exception has been thrown by the target of an invocation" then the Solution is

"First Connect to Team Foundation Server then try to execute the test, you will be able to execute the tests Successfully"

3. While recording a website, and once the recording is completed, if you are getting the Error 

"Code coverage in-place instrumentation: Cannot fully backup the binary", 

then the solution for the same is

  •  Navigate to Test ->Edit Test Settings->Local Test Run (Configuration editor). Under Data and diagnostics - >deselect the code Coverage check box and click on OK button
  •  As the Dlls might be corrupted, so navigate to the location where dlls are located delete it and rebuilt the solution
  • For recording using Web test, if the IE browser is not displayed with the options to Record the steps , i.e Recording Panel then the solution is

Navigate to Internet options ->manage add ons and enable the Microsoft Web Test Recorder options

Page copy protected against web site content infringement by Copyscape

About the Author

SwatiV
Full Name: Swathi Vanam
Member Level: Starter
Member Status: Member
Member Since: 3/25/2011 6:59:19 AM
Country: India
Thanks Swathi Vanam


Login to vote for this post.

Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)