Often not, you have a Windows Communication Foundation (WCF) service ready for call but do not have a ready service controller or UI to execute testing on it.
Scenario: While I was working on developing front-end of the system that calls a fully developed back-end UI, my software tester requested for assistance in testing the back-end service. (Back then, it was a parallel ongoing work where once software developer completed the back-end service, software developer will proceed with front-end while software tester will do testing on the back-end service)
In order to solve this issue, you just need to run WCF Test Client.
Method 1: Command Prompt
- Go to Start –> Visual Studio 2012 –> Visual Studio Tools –> Developer Command Prompt for VS2012
- Key in ‘wcftestclient’ without quotes.
- WCF Test Client will be shown.
Method 2: Directory
- Alternatively you may go to the following directory:
a. 64 bit OS: “C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDE”.
b. 32 bit OS: “C:Program FilesMicrosoft Visual Studio 11.0Common7IDE”.
- Execute WcfTestClient.exe.
Now, WCFTestClient should be executed as like below figure.
Proceed and follow the instruction mentioned in the Start Page by adding your WCF Service.
Add your WCF Service URL and click OK. It should download the necessary service reference for you to call the service.
There you go.