Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6640299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:39:22+00:00 2026-05-25T23:39:22+00:00

I m using Silverlight Unit Test framework for testing my application. The unit testing

  • 0

I m using Silverlight Unit Test framework for testing my application. The unit testing framework gets executed successfully and displays the result in the phone application page.
I would like to get the results stored in a log file inside the device itself instead of displaying it on the phone application page on the device. Please find the image below which shows the results displayed for an application

http://www.jeff.wilcox.name/wp-content/uploads/2010/03/SilverlightUnitTestFrameworkforWindowsPhone1_thumb.jpg

Please suggest if there is any way to do it.

Thanks,
Mugu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:39:23+00:00Added an answer on May 25, 2026 at 11:39 pm

    As far as I know the results are not stored in a log, but you can get access to the results.

    From within the unit test’s MainPage.xaml.cs you can hook into the TestHarness’s TestHarnessCompleted event to get details about the completed test run. You can then format your output as required, and save to IsolatedStorage or/and transfer off the device.

    //inside MainPageLoad()
    var unitTestSettings = UnitTestSystem.CreateDefaultSettings();
    unitTestSettings.TestHarness.TestHarnessCompleted += TestRunCompletedCallback;
    var testPage = UnitTestSystem.CreateTestPage(unitTestSettings) as IMobileTestPage;
    
    void TestRunCompletedCallback(object sender, TestHarnessCompletedEventArgs e) {
        var testHarness = sender as UnitTestHarness;
        foreach (var result in testHarness.Results) {
            switch (result.Result) {
                case TestOutcome.Passed:
                case TestOutcome.Completed:
                    break;
                default:
                    // must be a failure of some kind
                    // perform some outputting
                    break;
             }
        }
    }
    

    I think I read somewhere that there may be ways of transferring files programmatically from IsolatedStorage onto your desktop. I instead format the test results to a String and then use NLog to send that output to a listening service running on my desktop/buildserver. The full source NLog download provides a Visual Studio sample project for creating and running this sevice.

    Cheers,
    Al.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight testing project using the Silverlight Unit Test Framework . I
I am using the Silverlight Unit Testing Framework to test some View Manager classes.
I'm trying to get a Silverlight 4 unit test to work (using the framework
We are Silverlight Unit Test Framework for testing. Which one will be better for
I am using Jeff Wilcox's unit test framework for Windows Phone 7 (based on
I'm using NUnit for testing back-end. Unit tests are being executed while building (I'm
I am using silverlight unit tests to test an important part of our site.
Trying to write Unit test for Silverlight 4.0 using Moq 4.0.10531.7 public delegate void
I am using Silverlight 3.0 Unit Testing, version Silverlight Toolkit November 2009. Apart from
We're using Silverlight 2 with ADO.NET dataservices and to test the silverlight page we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.