Forum Discussion

makh_dv's avatar
makh_dv
Occasional Contributor
15 years ago

IntelliSense for NameMapping.tcNM using MS VS CustomTool.

I'd like to have IntelliSense for NameMapping and Alliases in connected application. And I'd like to have it for 7.52.



I see it in a way of auto code generation using "CustomTool" in MS VS Studio 2k8+.



Maybe someone did something for parsing NameMapping in more clear form (I am going to create xslt for preparing it for code generation).

I saw pretty similar thing in MS VS 2010 for UI Automation Map. (IMHO, TestComplete better do mapping, but approach is better in MS VS 2010)



So the general question is, does someone did/have similar what can reduce current amount of work?



Btw, is there any differences in tcNM files for 7.52 and 8+?



P.S. If someone could found it interesting, I will try to share it when it will work.

6 Replies

  • Hello Dmytro,



    I am sure you know, but I will mention this anyway, just in case:


    Please note that the format of the .tcNM file is undocumented and can be changed in future versions of TestComplete. In this case, you will need to rewrite your parser.



    Another difficulty with the approach you are trying to implement is the fact that a name mapping tree of a TestComplete project can change. It can be modified, for example, from the TestComplete GUI. Additionally, TestComplete can automatically add new elements to the name mapping tree while recording a test. Every time the name mapping tree is changed, you will need to recreate the code completion information.
  • makh_dv's avatar
    makh_dv
    Occasional Contributor
    Hi Alex,



    I have prototyped most of it, and I can make a video.

    It is not hard to apply new shcema if it'll be changed in future, prototype design allows it very quickly.



    MS VS CustomTool code is launched every time the related file is changed. So if TC GUI will update it the code will be regenerated in shadow.

    I am in a way to release it for wider use.



    For now I would really like to share the knowledge and in future the code. How can I show you video? I have skype: makh_dv and I can share my desktop to you. :-)



    My team on a way porting most JScript code from TestComplete to C#. And what is only will left in TestComplete is tcNm.

    This was caused because we want more easier refactoring of test framework and it is hard to provide under any script language.



    And the goal of this is exactly to have compilation error if anyhow some nameMapping nodes were changed outside. This goal was achieved. I really like how it works!
  • Hello Dmytro,



    Thank you for your proposition. It would be interesting to take a look at your solution. Can you upload an archive with the video demonstrating your solution to our download portal using the link below?



    http://downloads.automatedqa.com/support/e7fab376-5dab-4eea-ad81-e8a2aa4c2335



    We will study your solution and register it as a suggestion in our database. Its rating will take into account the requests from other users that asked for this functionality.
  • makh_dv's avatar
    makh_dv
    Occasional Contributor
    I have uploaded two files:

    - ReadMe.txt (start from this file)

    - Demo-IntelliSense-NameMapping.zip (sources and example of generated code)

    - TestProject1.zip (demo project that was used in video, tcNm was linked from original place)



    If you have ways to contact me in other way I'd prefer skype. :-)

  • Hello Dmytro,





    Thank you for the information. We will review the provided files.

    If the Dev Team needs more information from you, I will let you know.