cancel
Showing results for 
Search instead for 
Did you mean: 

Using TestComplete API to directly access Windows Objects

New Contributor

Using TestComplete API to directly access Windows Objects

I would like to be able to use testcomplete window's object recognition capability but call this from the API.



e.g. Call Aliases.WORDPAD.wndWordPadClass.MainMenu.Click("Format|Font...")



I want to execute this from say, visual basic. Something similar to this.



set ap = CreateObject("TestComplete.TestCompleteApplication")

ap.Aliases.WORDPAD.wndWordPadClass.MainMenu.Click("Format|Font...")



Sam
2 REPLIES 2
Staff

RE: Using TestComplete API to directly access Windows Objects

Hi Sam,



The only way to do this is to create a connected application (see the "Connected Applications" help topic).

------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
New Contributor

RE: Using TestComplete API to directly access Windows Objects

So I found the easiest way to get Testcomplete working with Cucumber/Ruby is to convert the TCConnect.bas file included in the VB folder and once you've conneceted to the TC Api you can then use cucumber as the test framework to drive windows automation.



If anyone is interested in Ruby/Cucumber and TestComplete send me message..samtreweek at gm*il dotcom
New Here?
Join us and watch the welcome video:
Top Kudoed Authors