RomilHandoo's avatar
RomilHandoo
Occasional Visitor
6 days ago
Status:
New Idea

Script Test - Show Usage/references

When we create reusable script routines to serve some common purposes, and use the same in different script files, and functions, TestComplete should have the ability to find and show all the usage / references of the reusable function, like the other standard IDEs.

2 Comments

  • RomilHandoo's avatar
    RomilHandoo
    Occasional Visitor

    Hi Alex,

    Currently I am using global search for the function name (as this is the only possible option as of now). It is helpful, but requires some extra effort to correctly identify the references of a function. I've observed the challenges in following scenarios:

    1. When the function with the same name is present in multiple script files, then global search by function name isn't very helpful. We still need to identify the correct references manually.
    2. It is again time-taking to identify the correct function call, go to the calling function, and make the necessary changes.

    Example: suppose, a new parameter is added to the reusable function, then it is required to update all the calls of the specific function, and specify an additional parameter. With global search, it will involve lots of manual effort to correctly update all the references.

    In case of standard IDEs, it is really easy to check the references / usage of current function as shown in the attached snippet (snippet from IntelliJ IDE). All the standard IDEs have this feature. It is very helpful to check all the functions calling the current function, jump to the calling function and so on with this feature.

     

     

  • AlexKaras's avatar
    AlexKaras
    Community Hero

    Hi,

     

    Doesn't global search for function name work for this?