Forum Discussion

soundhar's avatar
soundhar
New Contributor
14 years ago

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

10 Replies

  • Hi,



    WCF services are not supported. We have a suggestion to implement support for them, and your request has increased its rating.
  • Jyoungfl's avatar
    Jyoungfl
    Occasional Contributor
    Please add my vote for WCF as well, the direction our entire product profolio is moving towards WCF services starting within the next 3-6 months. 
  • Please add mine too. I need it immediately, but the sooner, the better. Thanks!
  • kgoundar's avatar
    kgoundar
    Occasional Contributor
    What is the status of possibly adding this feature?
  • Hi,



    Currently, we're working on this. I've increased the suggestion's rating to add your vote.
  • Anonymous's avatar
    Anonymous
    We expect support for WCF to be available late in 1H 2011.

    Thank you all for submitting the requests - this helps us evaluate priorities of product features.

    As you know, we listen!
  • WB's avatar
    WB
    Occasional Contributor
    Hi Sergei,



    I thought WCF service testing feature is added to the new version of test complete already!   But I see ur comment saying its not the yet!



    Can you please clarify?



    Thanks in advance

    W.B.