开发者

Custom extraction rule in VS2008 doesn't work

开发者 https://www.devze.com 2022-12-21 21:27 出处:网络
I\'m cr开发者_开发百科eating a Web Test in VS2008 and have extended ExtractionRule. Now when I run test where my extraction rule used it displays \"Request failed: Could not load type \'TypeName, vers

I'm cr开发者_开发百科eating a Web Test in VS2008 and have extended ExtractionRule. Now when I run test where my extraction rule used it displays "Request failed: Could not load type 'TypeName, version, locale etc'. This happens even though I added my class in designer.


Answering my own question. One MUST add his extraction rules to project OTHER than his WebTests project. I tend to create WebTests.Helpers project for that. Afterwards one must reference that project and compile it to use custom extraction rules.


Just for completeness: another option (if you don't want to add a 2nd project) is to explicitly add your project's dll file to the Deployment section in the TestSettings.

0

精彩评论

暂无评论...
验证码 换一张
取 消