Ask a Question

How to check whether a software is available or not in our machine using testcomplete tool.

Shiva_Kumar
Occasional Contributor

How to check whether a software is available or not in our machine using testcomplete tool.

Hi,
I need some information/javascript code to check whether a software is available or not in my machine in automate manner.
If I run the test- it has to check in control panel whether the given software is available or not.
If available- it has to print - yes it's available.
Thanks in advance.
3 REPLIES 3
Marsha_R
Community Hero

You can use this method to look for the program file in the folder for the start menu.

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfilesystem/exists.html


Marsha_R
[Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
AlexKaras
Community Hero

Hi,

 

The actual check (and, thus, the code) depends on your tested application. It might be just a check of some folder, as it was suggested by Marsha; or it might be a query to WMI; or some other flag that indicates whether or not the tested application is installed in the system.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
sonya_m
SmartBear Alumni (Retired)

Thank you Marsha and Alex!

 

@Shiva_Kumar could you mark the best reply as a solution here? This will be very helpful for all TestComplete Community members.


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: