1

I have a web test, let's call it WebTestParent that calls another web test, WebTestChild. There is no problem when I run it from the IDE, but when I try running it from the command line using mstest, like this:

C:\MySolution> mstest.exe /testmetadata:"Tests.vsmdi" /test:"WebTestParent.webtest" /testsettings:"local.testsettings"

I get this error:

Cannot find the test 'WebTestChild' with storage 'C:\MySolution\somesubfolder\WebTestChild.webtest'.

The file local.testsettings has "Enable deployment" checked.

Did anyone experience this and maybe found a solution?

Thanks.

Paul
  • 1,224
  • 2
  • 14
  • 31

1 Answers1

2

I am not familiar with web tests but I have done this with unit tests. I belive that your problem is not the call from one to test to the other. Maybe your 'WebTestChild' (or both tests) does not belong on the 'TestList' in your 'Tests.vsmdi' file.

If you have not a list for your tests then you should create one. Check here for more details.

chaliasos
  • 9,659
  • 7
  • 50
  • 87
  • Thanks, I was actually using test lists, the text was simplified for the sake of the example. However, the problem "magically" went away after I ran Clean Solution then built the code again ... – Paul Mar 14 '12 at 16:09
  • Yeah, sometimes all it needs is just a Rebuilt :) – chaliasos Mar 15 '12 at 15:12