cancel
Showing results for 
Search instead for 
Did you mean: 

Using TestComplete API to directly access Windows Objects

Highlighted
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
Highlighted
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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
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:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors