Team System Developer Center >
Visual Studio Team System Forums
>
Visual Studio Web Performance and Load Testing
>
How to delete an image request from a web test in vsts 2008
How to delete an image request from a web test in vsts 2008
- Hi,
I am using vsts 2008 version 9.0.21022 RTM running on windows server 2003 SP2 for a financial application. I did the registry changes so that all components(css, images, js etc.) are captured, however at recording css and js files and some images are not displayed in the web test editor.
Changes performed:-
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\EnterpriseTools\QualityTools\WebLoadTest]
"DefaultBrowserTemplate"="Internet Explorer 7.0"
"WebTestRecorderMode"="exclude"
"ExcludeMimeTypes"=""
"ExcludeExtensions"=""
At playback, the result window shows all the css, images, js associated with the application & for 1 particular image (which is not being captured by the recorder ) i am getting 404-Not found error. I wanted to delete the particular request for the image from the script.
Is there a way to delete this image request from the script ?
Any help will be greatly appreciated.
thanks in advance.
vishal
Answers
- Hello vishal,
As I know we are not able to delete this particular request for image. But we could add this new dependent request to the corresponding request in web test editor and set the expected http status code to 404 to fix this issue.
You may refer to the following artilce for more detailed steps.
http://blogs.msdn.com/edglas/archive/2008/08/06/masking-a-404-error-in-a-dependent-request.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.- Marked As Answer byslumley MSFTMSFT, ModeratorThursday, November 05, 2009 3:25 PM
- Proposed As Answer byAshish Narmen Thursday, November 05, 2009 9:01 AM
- There is another option. First off, the 404 is likely highliting a problem that the web site you are testing is requesting a file that does not exist on the server. You could create a request pluging which removes this particular dependent from being fetched. Here is a link on how to do this: http://blogs.msdn.com/densto/pages/webtestrequest-dependentrequests-collection.aspx
Blog - http://blogs.msdn.com/slumley/default.aspx- Marked As Answer byslumley MSFTMSFT, ModeratorThursday, November 05, 2009 3:25 PM
All Replies
- Hello vishal,
As I know we are not able to delete this particular request for image. But we could add this new dependent request to the corresponding request in web test editor and set the expected http status code to 404 to fix this issue.
You may refer to the following artilce for more detailed steps.
http://blogs.msdn.com/edglas/archive/2008/08/06/masking-a-404-error-in-a-dependent-request.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.- Marked As Answer byslumley MSFTMSFT, ModeratorThursday, November 05, 2009 3:25 PM
- Proposed As Answer byAshish Narmen Thursday, November 05, 2009 9:01 AM
- Hi Edwer,
Thanks for the link - There is another option. First off, the 404 is likely highliting a problem that the web site you are testing is requesting a file that does not exist on the server. You could create a request pluging which removes this particular dependent from being fetched. Here is a link on how to do this: http://blogs.msdn.com/densto/pages/webtestrequest-dependentrequests-collection.aspx
Blog - http://blogs.msdn.com/slumley/default.aspx- Marked As Answer byslumley MSFTMSFT, ModeratorThursday, November 05, 2009 3:25 PM


