none
WCF-Manual Testing (Performance and Load testing) RRS feed

  • Question

  • Hello,

    We need to performance Load and manual testing for WCF service...Manual, C# coding. We are upgrading from .net framework 1.0 to 4.5 framework

    Can somebody please point me to some references wherein I see the code snippets etc of how these are achieved and what all to consider. I'm not allowed to use any tools to perform this testing.... 


    thanks

    Swat

    Friday, May 2, 2014 6:28 AM

Answers

  • Hi,

    Windows Communication Foundation (WCF) includes a large set of performance counters to help you gauge your application's performance.
    For enabling Performance Counters, you can do it through the app.config configuration file of the WCF service as follows:
    <configuration>
        <system.serviceModel>
            <diagnostics performanceCounters="All" />
        </system.serviceModel>
    </configuration>
    

    You can also enable performance counters in your code as follows:

    using System.Configuration;
    using System.ServiceModel.Configuration;
    using System.ServiceModel.Diagnostics;
    Configuration config = ConfigurationManager.OpenExeConfiguration(
        ConfigurationUserLevel.None);
    ServiceModelSectionGroup sg = ServiceModelSectionGroup.GetSectionGroup(config);
    sg.Diagnostic.PerformanceCounters = PerformanceCounterScope.All;
    config.Save();
    
    

    For more information, please try to refer to:
    #WCF Performance Counters:
    http://msdn.microsoft.com/en-us/library/vstudio/ms735098(v=vs.100).aspx .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by StSingh Tuesday, May 6, 2014 5:01 PM
    Monday, May 5, 2014 4:50 AM
    Moderator

All replies

  • Hi,

    Windows Communication Foundation (WCF) includes a large set of performance counters to help you gauge your application's performance.
    For enabling Performance Counters, you can do it through the app.config configuration file of the WCF service as follows:
    <configuration>
        <system.serviceModel>
            <diagnostics performanceCounters="All" />
        </system.serviceModel>
    </configuration>
    

    You can also enable performance counters in your code as follows:

    using System.Configuration;
    using System.ServiceModel.Configuration;
    using System.ServiceModel.Diagnostics;
    Configuration config = ConfigurationManager.OpenExeConfiguration(
        ConfigurationUserLevel.None);
    ServiceModelSectionGroup sg = ServiceModelSectionGroup.GetSectionGroup(config);
    sg.Diagnostic.PerformanceCounters = PerformanceCounterScope.All;
    config.Save();
    
    

    For more information, please try to refer to:
    #WCF Performance Counters:
    http://msdn.microsoft.com/en-us/library/vstudio/ms735098(v=vs.100).aspx .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by StSingh Tuesday, May 6, 2014 5:01 PM
    Monday, May 5, 2014 4:50 AM
    Moderator
  • <style type="text/css"><!-- @page { margin: 2cm } p { margin-bottom: 0.25cm; line-height: 120% } a:link { so-language: zxx } --> </style>

    Hello,

    You can use Windows Communication Foundation (WCF) which includes a large set of performance counters to help you gauge your application's performance.

    For enabling Performance Counters, you can do it through the app.config configuration file of the WCF.

    Thank you.


    Saturday, November 17, 2018 4:02 AM