Ask a Question

hoe to invoke wcf service having message contracts through test complete

VivekKumar
New Contributor

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)

Please suggest me how to implement [

 

MessageContract](wcf service) in test complete tool.

 

3 REPLIES 3
AlexKaras
Champion Level 2

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.
Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
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.

Please suggest me how to implement [

 

MessageContract](wcf service) in test complete tool.

 

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? 

I’m not a member of the SmartBear Support Team, I’m just helping users in this community.
Any views or opinions expressed do not necessarily represent those of SmartBear Software.

-----
cancel
Showing results for 
Search instead for 
Did you mean: