Forum Discussion

Gunacelan94's avatar
Gunacelan94
New Contributor
17 days ago

AI tool - leveraging for script and integration in testcomplete

Is there any way or any AI tool which can be used in helping generate scripts for testcomplete tool and also get integrated with it??

6 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    We have had some success with ChatGPT and Claude.  AI was able to create scripts for various purposes by reading the XML in the namemap file.  We never took it very far however.  There was alot of AI training and no integration exactly.  The script files it created only needed to be text .js files and the they were dropped into the scripts folder and imported into the project.  Crude but an interesting idea we never took very far. 

    ... If you find my posts helpful drop me a like! πŸ‘ Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎

  • scot1967's avatar
    scot1967
    Icon for Champion Level 1 rankChampion Level 1

    The NameMap is stored in the NameMapping folder in your project in a file called NameMapping.tcNM.  It is in XML format and fairly easy to read and use.  It can be read by AI (once trained) and then AI could be used to create scripts based on what it knows about the app and the objects you have mapped in your NameMap with TestComplete (again training).  It is possible but maybe not practical

    I would not recommend modifying this file externally though VS Code although I have in extreme cases.  It is a quick way to destroy a project. None of this would be supported by SmartBear of course.

    TestComplete NameMap fragment as seen in VS Code showing the Application and main window object names and identification properties...

     

    • Gunacelan94's avatar
      Gunacelan94
      New Contributor

      I don't see anything w.r.to AI leveraging scripting here

      • rraghvani's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion Level 3

        Then I very doubt it's possible to do. The editor is a lightweight tool, and it's easy to script, providing you know Python, JavaScript, VBScript, etc. 

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 2 rankChampion Level 2

    AI does not generate the final TestComplete script that executes the automation run. TestComplete operations rely on NameMapping nodes to recognize application elements, but AI does not have access to:

    1. TestComplete proprietary NameMapping
    2. Application internal elements recognition
    3. Insights into how users interact with the application

     

    However, AI can assist in writing test cases based on requirements. Additionally, AI can reformat these test cases into Behavior-Driven Development (BDD) plain English using Gherkin syntax, which follows the Given/When/Then structure. Once generated, the BDD script can be imported into TestComplete, ready for you to insert your code operations.

    While AI can write generic TestComplete code such as JavaScript functions to open and close a browser, its capabilities remain limited to general scripting and do not extend to internal NameMapping references within the application.

    πŸ’¬ If a response helps you, don’t forget to Like it! If it answers your question, mark it as the solution so others can benefit too.