1

Resolved

"Run Tests" does not launch StatLight as expected on Windows 7 Ultimate x64

description

Windows 7 Ultimate x64
Visual Studio 2010 Premium
StatLight v1.2 extracted to "C:\Users\username\AppData\Local\StatLight"
silverlight v4.0.50917.0 installed
created Silverlight Unit Test Application
updated references to "C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Toolkit\Apr10\Testing"
list of assemblies work as expected (it lists all the silverlight applications in the sln)
but no test methods are listed.
 
Selecting an assembly and then clicking on "Run Tests" does not seem to launch StatLight as expected.
 
Any ideas?
 
Thank you.

comments

do0g wrote Mar 11, 2011 at 4:37 AM

Did you have any luck resolving this? I'm experiencing the same problem on Windows 7 Ultimate x86.

do0g wrote Mar 11, 2011 at 9:33 AM

I've got it running - there were a few issues for me:
  • The version check was not handling StatLight versions greater than 1.2
    I fixed this by altering StatLightManager.IdentifyStatLightVersion() line 79 from
    {{else if (fvI.FileMajorPart == 1 && fvI.FileMinorPart == 2)}}
    to
    {{else if (fvI.FileMajorPart == 1 && fvI.FileMinorPart >= 2)}}
  • There is a logic flaw that requires the .xap to be built and present before StatLight is run.
  • I also had to run StatLight once with the command parameters generated once before it would work. Not sure why this was. In my case the cmd was:
    {{>statlight -x="C:\Users\do0g\Documents\Projects\lab\SilverlightTest1\SilverlightTest1.Web\ClientBin\SilverlightTest1.xap" -r="C:\Users\do0g\Documents\Projects\lab\SilverlightTest1\SilverlightTest1.Web\ClientBin\Combined_TestResult.xml"}}

do0g wrote Mar 11, 2011 at 9:34 AM

I've got it running - there were a few issues for me:
  • The version check was not handling StatLight versions greater than 1.2
    I fixed this by altering StatLightManager.IdentifyStatLightVersion() line 79 from
    {{ else if (fvI.FileMajorPart == 1 && fvI.FileMinorPart == 2) }}
    to
    {{ else if (fvI.FileMajorPart == 1 && fvI.FileMinorPart >= 2) }}
  • There is a logic flaw that requires the .xap to be built and present before StatLight is run.
  • I also had to run StatLight once with the command parameters generated once before it would work. Not sure why this was. In my case the cmd was:
    {{ statlight -x="C:\Users\do0g\Documents\Projects\lab\SilverlightTest1\SilverlightTest1.Web\ClientBin\SilverlightTest1.xap" -r="C:\Users\do0g\Documents\Projects\lab\SilverlightTest1\SilverlightTest1.Web\ClientBin\Combined_TestResult.xml" }}

do0g wrote Mar 11, 2011 at 9:37 AM

One more try, if an admin could delete the repeated posts that'd be great...

I've got it running - there were a few issues for me:
  • The version check was not handling StatLight versions greater than 1.2
    I fixed this by altering StatLightManager.IdentifyStatLightVersion() line 79 from
    {code:c#}
    else if (fvI.FileMajorPart == 1 && fvI.FileMinorPart == 2)
    {code:c#}
    to
    {code:c#}
    else if (fvI.FileMajorPart == 1 && fvI.FileMinorPart >= 2)
    {code:c#}
  • There is a logic flaw that requires the .xap to be built and present before StatLight is run.
  • I also had to run StatLight once with the command parameters generated once before it would work. Not sure why this was. In my case the cmd was:
statlight -x="C:\Users\do0g\Documents\Projects\lab\SilverlightTest1\SilverlightTest1.Web\ClientBin\SilverlightTest1.xap" -r="C:\Users\do0g\Documents\Projects\lab\SilverlightTest1\SilverlightTest1.Web\ClientBin\Combined_TestResult.xml"

icnocop wrote Sep 17, 2012 at 10:39 PM

Fixed in changeset 20441

wrote Feb 13, 2013 at 2:41 AM

wrote May 14, 2013 at 9:51 PM

wrote May 14, 2013 at 9:52 PM

wrote Jun 11, 2013 at 12:45 AM