Forum Discussion
You can use VBScript in TestComplete but I don't think you can necessarily expect a 1 to 1 port over from UFT. Both tools have certain native objects, methods, etc., that are unique to the tool.
If you have aVBScript file, you can, in your TestComplete project, right click on the Script object and select Add -> Existing item. Browse to the file and click OK and your code unit is now part of your project. Note that TestComplete uses the svb extension for VBScript units instead of vbs but it should still work.
Thank you replying, I have my own keywords developed when I was using UFT, is it possible to add them as methods in Testcomplete without using the recording means I need to define my own methods and than test an Excel script by calling some of these keywords ? I want to do that to don't lost my old scripts and to test them with Testcomplete too with the possible minimun of changes.
I just need to use my old execution steps and keywords developed in VBScript too to run my old and my new tests in Testcomplete, is this possible or I have to redefine my keywords(methods) and execution steps according to Testcomplete terms ?
- tristaanogre8 years agoEsteemed Contributor
I'll confess, I don't know a thing about UFT, about how it works, about what things you can set up in there, etc. So... if you have VBScript code files you created in UFT that do certain tasks and such, best thing I can tell you is try to add them to your TestComplete project and see what happens. Again, you might have to do some rework of a few things, especially things referencing the UFT object repository (what TestComplete calls Namemapping) and any other native UFT objects you are referencing.
Again, it won't be a 1 to 1 port... you can't just dump UFT stuff into TestComplete and expect it to work "out of the box".
- rhsou1238 years agoContributor
Yes certainly, I will not dump UFT stuff and instractions into Testcomplete and wait it to work.
I will import my files in Testcomplete and I will try to make them work.
- Colin_McCrae8 years agoCommunity Hero
I've used both with VBScript. Well, UFT was still QTPro when I used it, but I get the idea.
tristaanogre is right. You won't get a straight port. They are too different. Similar, yes. But different enough that it won't port.
You should be able to copy in the basic logic and re-work it to fit TC though. How complex that will be entirely depends on your tests and how complex they are and how you wrote them.
Related Content
- 2 years ago
- 3 years ago
- 2 years ago
Recent Discussions
- 2 days ago