Ask a Question

Is it possible to Automate Windows /C# Applications using TestComplete with JavaScript

SOLVED
bunty1989
New Contributor

Is it possible to Automate Windows /C# Applications using TestComplete with JavaScript

HI,

I want to automate objects on my Desktop(either be a thick client application/Windows application or any except Web Application) with Test Complete JavaScript.

I we can perform all actions with JavaScript coding  (rather Record and Play),please guide me through a Web URL.
I have https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript.html 

3 REPLIES 3
AlexKaras
Champion Level 2

Hi,

 

Yes, this is possible.

Scripting language for TestComplete project and technology used to create a tested application are not related in any way to each other.

https://support.smartbear.com/testcomplete/docs/app-testing/desktop/index.html

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================

Thanks for reverting back.

Can you guide me through some references,where i can learn to code in TestComplete using Javascript.

I do have knowledge on Selenium,so wanted to try TestComplete for Thick client and windows application,before aquiring in my company

Hi,

 

TestComplete is extremely well documented and it is really worth to read its documentation for details.

 

First off, you may try record a simple keyword test (which is suggested by default) to get an initial impression. (Don't expect the recorded test to be reliably replayed. Reliable replay of the recorded test requires some preliminary NameMapping activities.)

https://support.smartbear.com/testcomplete/docs/testing-with/creating/index.html

 

Then you may convert recorded keyword test to code (right click it and select appropriate command from the context menu) to get a coded version of recorded test.

https://support.smartbear.com/testcomplete/docs/testing-with/running/index.html

 

Before going on, I would recommend to carefully read documentation about how TestComplete recognizes and addresses objects of the tested application: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/index.html

 

Last but not the least: Page Object Model and search by XPath are holy cows in Selenium world. But they are not the best means for TestComplete tests. Actually, Object Browser already provides you with a kind of POM, so no real need to re-implement it. And the search methods provided by TestComplete (Aliases and .FindXXX() methods) work faster and are more convenient and flexible then search by XPath (which you will not be able to use for Desktop anyway 😉 )

 

Also, recordings from the https://support.smartbear.com/screencasts/testcomplete/ page are worth to be seen.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: