none
Test framework with WCF RRS feed

  • Question

  • Happy New year guys-

    Designing a test framework for growing test requirements is a daunting task for me. Attached is the concept i am thinking of.

    

    Notes:  Clients can be in the same computer or different. 

    Question 1:  Is this  a good idea to use WCF service based test framework (Idea is to develop a open test framework where we can attach and detach modules.)

    Question 2:  To develop a service for every test module in the library? or

                        To maintain one service library to manage all test functions

    My main problem is that  I am very new to WCF,C# but have used C,C++ and COM based apps.

    please share your thoughts or redirect me to right areas.

    thanks

    Jis

    Thursday, January 1, 2015 2:03 PM

Answers

  • Hi,

    Based on my understanding, you want to create a WCF service to make a communication between the client side and the test machine side. And also you want it can attach and detach modules. For this situation, you could create a WCF service application (Not WCF service Library), and create functions for each module, then host the service on IIS. If you want to add more module, you could add another service file within the WCF service to create functions for this module.

    For creating WCF service and host it on IIS, you could refer to the following links:

    http://www.codeproject.com/Articles/42643/Creating-and-Consuming-Your-First-WCF-Service

    http://www.codeproject.com/Articles/550796/A-Beginners-Tutorial-on-How-to-Host-a-WCF-Service

    Regards

    Friday, January 2, 2015 8:23 AM
    Moderator
  • Why would you test a WCF service? What you should be testing is the classlib project that the WCF service has reference to, which should have the logic for various fuctionality. WCF in this situation is just a commnunicationspassthrough mechinisum between the WCF client and the classlib project the WCF service has reference to. WCF is about commnucations and what communication protocol that is going to be used between the WCF client and WCF service. Should one be testing the communications betwwen the WCF client and service? Or should one be testing logic the WCF service project has reference to? 
    Thursday, January 8, 2015 3:30 PM

All replies

  • Hi,

    Based on my understanding, you want to create a WCF service to make a communication between the client side and the test machine side. And also you want it can attach and detach modules. For this situation, you could create a WCF service application (Not WCF service Library), and create functions for each module, then host the service on IIS. If you want to add more module, you could add another service file within the WCF service to create functions for this module.

    For creating WCF service and host it on IIS, you could refer to the following links:

    http://www.codeproject.com/Articles/42643/Creating-and-Consuming-Your-First-WCF-Service

    http://www.codeproject.com/Articles/550796/A-Beginners-Tutorial-on-How-to-Host-a-WCF-Service

    Regards

    Friday, January 2, 2015 8:23 AM
    Moderator
  • Thank you!

    Wit that I modified my block diagram as follows

    

     questions I have is  -

    • What is the minimum requirement of a Client App. Client app may be off the shelf tool i buy from market. What do i need to look into while purchasing the tool.

    thanks

    jis

    Tuesday, January 6, 2015 6:05 AM
  • Hi,

    >>What is the minimum requirement of a Client App.

    Based on your description, I am not quite understand what the meaning is. In my opinion, your client application may need to have the ability to test each module in the WCF service.

    Wednesday, January 7, 2015 6:41 AM
    Moderator
  • Sorry! I meant -

    The Client App (implements order of testing)  talk to  WCF service ( implements core test features) over IIS protocol.

    So, Client App should be able to understand IIS.

    Here, the Client App is a third party tool running on Windows. What is that Client tool need to have which will allow seamless communication between  WCF service and Client App.

    I hope it is clear.



    thanks

    Jis


    Wednesday, January 7, 2015 8:48 AM
  • Hi,

    You may be can not find any better tool for creating automated tests of WCF servcies than to use your favorite unit test framework and write tests.

    http://stackoverflow.com/questions/620333/whats-the-best-way-to-test-wcf-services

    http://msdn.microsoft.com/en-us/library/vstudio/hh323710(v=vs.100).aspx

    Thursday, January 8, 2015 5:51 AM
  • Why would you test a WCF service? What you should be testing is the classlib project that the WCF service has reference to, which should have the logic for various fuctionality. WCF in this situation is just a commnunicationspassthrough mechinisum between the WCF client and the classlib project the WCF service has reference to. WCF is about commnucations and what communication protocol that is going to be used between the WCF client and WCF service. Should one be testing the communications betwwen the WCF client and service? Or should one be testing logic the WCF service project has reference to? 
    Thursday, January 8, 2015 3:30 PM