Forum Discussion

VivekKumar's avatar
VivekKumar
New Contributor
12 years ago

hoe to invoke wcf service having message contracts through test complete

message headers are not visible in test complete. Also how to call web service in test complete having message contracts(request-response)

3 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Vivek,



    I assume that you are looking for the functional testing of the WCF service, not the load one.

    Have a look at the <Users>\Public\Documents\TestComplete 8 Samples\Web Service Testing\Functional Testing\ demo project. I think it should help.



    Also, WCF services must conform to certain requirements to be testable with TestComplete (http://support.smartbear.com/viewarticle/25329/).

    Also http://support.smartbear.com/viewarticle/18893/ might be worth reading.
  • VivekKumar's avatar
    VivekKumar
    New Contributor
    i am having netnamed pipe and wshttp binding in my wcf service.i am also having message contract. but i am not able to see message header in testcomlete screen webservice methods.



    i want to know the possibility of testing in this case.
  • AlexeyK's avatar
    AlexeyK
    SmartBear Alumni (Retired)

    Vivek,


    TestComplete supports WCF services testing. Testing of MessageContract services should not differ from testing of other WCF services. So, to test the described service, you need to have .NET Framework ver. 3.5 or 4.0 on your computer. You can use TestComplete 8.70 or 9 (I'd recommend that you use version 9). Also, the WebServices project item (or the entire test project) must be created in these versions of the product.


    Before you start creating automated tests, please check whether the service methods can be called from your computer successfully. That is, check manually whether the tested application works as expected. If it does, this means that your computer is configured properly (all the needed certificates are installed, and so on).


    To understand how to call web service methods from your tests, please read the TestComplete documentation and see the sample project:




    * Testing Web Services - Overview




    * Creating Web Service Tests




    * WCF Services - Specifics of Testing




    * Sample project: <Users>\Public\Documents\TestComplete 9 Samples\Web Service Testing\Functional Testing .


    Message headers are not displayed in TestComplete. Could you please explain what you need them for?