Forum Discussion
6 Replies
- scot1967
Champion 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
Champion 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... - rraghvani
Champion Level 3
You might be able to find more information at https://smartbear.com/ai/
- Gunacelan94New Contributor
I don't see anything w.r.to AI leveraging scripting here
- rraghvani
Champion 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
Champion 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:
- TestComplete proprietary NameMapping
- Application internal elements recognition
- 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.