Forum Discussion

itaykaldi's avatar
itaykaldi
Contributor
13 years ago

Methods/Test description

hey,

How do i write description for method?

when i use method from script in KeyWordTest i saw there is description,

see attachment.



10x.





3 Replies


  • Hi Itay,


     


    Unfortunately, there is no way to do this in the current version of TestComplete. However, we have an appropriate suggestion in our DB, and your message has increased its rating. Thank you.


     

  • How do i write description for method?--- Answer below...



    Follow coding standards when you developing TC functions: below is  the example....


    //=============================================================================================================================================



    /* Function: IsValidLogin(UID,PWD

    Desc: This method validates Login functionality

    Input: UID,PWD

    Return: bLoginFlag 

    Author:Kumar

    Date: 18 Dec 2012


     



    Status: Final



     



    //=============================================================================================================================================

    function IsLoginValid(UID,PWD)

    {

     var bLoginFlag = false; 

    -----------;

    bLoginFlag  = true;

    ---------;



     



    return bLoginFlag  ;



    }



  • Kumar,


    Thanks for your example! The way you use to document a script is good. However, it's still impossible to see the description of your own functions in TestComplete's Code Completion window. This is what Itay was asking.