Hi, we are using vsts web testing module to write web tests (not load tests) with rather complicated scenarios.
our tests were converted to 'coded' mode so we have to handle C# classes & code.
default test scenario can include 4-6 and more web request during run.
here comes my question... since we would like to write as modular as possible we would like to put each 'public override IEnumerator<WebTestRequest> ' in external class as a separate method so we can call and reuse same web request from any web test.
Is that possible at all? (so far we didn't manage to do this).
Re: Reusing same WebTestRequest from different tests
Sorry to say but I'm almost certain that there isn't a way to do this. I was looking to do this myself. The problem is that webrequests are IEnumerator object which doesn't allow instantiation. So even through a coded plugin, this doesn't seem to be possible.