Forum Discussion
I don't know if there is a TestComplete tool that will do this for you, but chatGPT works great for tasks like this. All you have to do is say,
'Hi ChatGPT, I would like to convert the following script from VBScript into a Python script: "<codehere>" '.
I'm pretty sure ChatGPT also knows about TestComplete, so you could add info about TestComplete like so:
'Hi ChatGPT, I wrote some code in TestComplete using VBScript. Because VBScript is being discontinued in 2027, I would like to convert the VBScripts into Python scripts. Here are all the functions/methods I've written in VBScript. Can you please convert these to Python for me? Here is the code: "<codehere>" '.
Once you get a reply from ChatGPT, If you would like it to write one of the python generated functions in a different way, you can reply to chat like so: "Hi Chat, thank you for all the conversions. I would like to improve on the conversion you did of function, <function name>. The function, <function name>, could be made better by using the testcomplete functionality aqString (or whatever you would like it to change). Can we improve this by implementing these changes?" ...
and then just continue the conversation with ChatGPT until everything looks the way you want it to look. Yes, you will have to manually copy the VBScript code from each file and then paste it into chatGPT, but it cuts down on the amount of time tremendously. Try Copy and Paste multiple functions into ChatGPT ... I wouldn't worry ... I'm pretty sure ChatGPT can handle having multiple VBScripts handed to it at once and will return a conversion for each one.
To your question #3: As far as I know, you are only allowed to use one scripting language per project. I am pretty sure that if you have multiple projects within the same suite, then project-a within the suite does Not have to use the same scripting language as project-b.
Related Content
- 13 years ago
- 8 years ago
- 11 years ago
Recent Discussions
- 2 days ago