How to test WCF services using test complete?
Hi,
I have the following Scenario while testing webservices.
1. I can able to access "WCF" web service using test complete project item
2.I can able to see all the methods defined in the service
3.I can able to access the methods using 'webservice" object in the script unit.
Question:
1. How to pass parameter values to the methods to get the response?
I have the following methods in my service:
Method:
Write(LoginContext as object, Audit as Object)
Where,
Parameter 1:
LoginContext has the following fields:
1. CurrentLocationCodes = string value
2. TraceID = string value
3. user = string value
Parameter 2:
Audit has the following fields:
1. ApplicationName = String value
2. DateTime = Date
3. ID = String value
The method has only two parameters in the syntax.
I am using the following script to call the methods.
Result=WebService.webservice.Write(LoginContext as object, Audit as Object)
Since the method has only 2 parameters, how will you pass the above input parameter values?
Please give me some solution to handle the above issue.
Please Let me know if you have any questions.
Thanks,
Soundhar