Ask a Question

.Net Application is not recognized

pmalichenko
Occasional Contributor

.Net Application is not recognized

Hello,

 

It looks like TestComplete doesn't recognize the application being tested. It does exist in the TestedApps folder.

 

Every time I try to check if the app is running (when it actually does) using Sys.WaitProcess(TestedApps.{AppName}).Exists it is not being recognized as running.

 

Also, in the object browser if I select the "Show Only Tested Application" filter, it doesn't appear there.

And I couldn't find anywhere what is the meaning of this "eye" icon next to my app ? (I have a feeling this is somehow related).

 

Thanks,

Pavel.

7 REPLIES 7
Marsha_R
Community Hero

Re: .Net Application is not recognized

Try deleting it from the Tested Apps and adding it again.  What happens then?

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
pmalichenko
Occasional Contributor

Re: .Net Application is not recognized

Tried several times, no change. Everything is still the same.

ebarbera
Staff

Re: .Net Application is not recognized

hi @pmalichenko - 

 

What is the message you are getting in the log after you run that step?

pmalichenko
Occasional Contributor

Re: .Net Application is not recognized

Hello @ebarbera,

 

Do you mean this step:

!Sys.WaitProcess(TestedApps.{AppName}).Exists

?

 

Nothing.. it an "if" statement, inside of which I run the app if it is not running... 

But as I mentioned, it is trying to run it every time.

 

Also, can you help me figuring out what is the eye icon that I highlighted with green circle in the attachment ?

 

Thanks.

AlexKaras
Community Hero

Re: .Net Application is not recognized

Hi,

 

what is the eye icon

This means that this application is "open" to TestComplete - https://support.smartbear.com/testcomplete/docs/app-testing/open-apps/about.html#how-to-check-whethe...

 

Sys.WaitProcess(TestedApps.{AppName})

Does the value of TestedApps.{AppName} correspond to the ProcessName property of the tested application displayed by the Object Browser? (I.e. does not contain '.exe' for example)

 

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
================================
pmalichenko
Occasional Contributor

Re: .Net Application is not recognized

Hi @AlexKaras ,

 

Yes, the value corresponds to the ProcessName.

AlexKaras
Community Hero

Re: .Net Application is not recognized

Hi,

 

Sys.WaitProcess(TestedApps.{AppName}).Exists

Actually, TestedApps.{AppName} returns an object, while .WaitProcess() method expects a string as a parameter.

Thus you must use some property of the tested application object.

E.g.:

Sys.WaitProcess(TestedApps.{AppName}.ItemName).Exists

https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/tested-apps/testedap...

 

Does this help?

 

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
================================
cancel
Showing results for 
Search instead for 
Did you mean: