cancel
Showing results for 
Search instead for 
Did you mean: 

Query on Testcomplete

SOLVED
thoshima
Occasional Contributor

Query on Testcomplete

Hi Members,

 

I have the below query related to My Application with testcomplete Tool:

 

Im working on a Desktop application where one of the screen is PB screen which hits chromium browser screen. with Testcomplete While Identifying one of the text in the screen with help of "Drag the traget to an object" option it shows me below object

 

 "Aliases.Item.wndCornerstone.MDIClient.wndFNWND317041.VcEmbeddedFrame.VcEmbeddedPanel.BrowserPanel.Canvas.CefBrowserWindow.Chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND." 

 

and if im running the script, script is failing again if im trying to do Object property with "Drag the traget to an Object" option it is showing me with new VcEmbeddedFrame appenede with ID like below:

 

 "Aliases.Item.wndCornerstone.MDIClient.wndFNWND317041.VcEmbeddedFrame2.VcEmbeddedPanel.BrowserPanel.Canvas.CefBrowserWindow.Chrome_WidgetWin_0.Chrome_RenderWidgetHostHWND"

 

Here VcEmbeddedFrame is a parent Java frame which Powwerbuilder embeds.

 

So continuous change of this VcEmbeddedFrame id my scripts are failing. could any one please help me on how to resolve this issue.

 

Thanks in Advance.

2 ACCEPTED SOLUTIONS

Accepted Solutions
AlexKaras
Community Hero

Re: Query on Testcomplete

Hi,

 

You need to examine the VcEmbeddedFrame object in the Object Browser and figure out the unique and stable set of properties that identify this frame and do not change from run to run. Then you should to correct NameMapping for this element so that it uses identified properties and their respective values (maybe, wildcarded with * and ?).

 

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

View solution in original post

TanyaYatskovska
Community Manager

Re: Query on Testcomplete

Hi @thoshima,

 

I've found a new (and great!) article on the TestComplete documentation. It will explain you why you have different names in Name Mapping and how to avoid this:

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/dynamic-identif...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

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

View solution in original post

6 REPLIES 6
AlexKaras
Community Hero

Re: Query on Testcomplete

Hi,

 

You need to examine the VcEmbeddedFrame object in the Object Browser and figure out the unique and stable set of properties that identify this frame and do not change from run to run. Then you should to correct NameMapping for this element so that it uses identified properties and their respective values (maybe, wildcarded with * and ?).

 

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

View solution in original post

BenoitB
Community Hero

Re: Query on Testcomplete

Wildcards in TC is a great great feature !

Un sourire et ça repart

TanyaYatskovska
Community Manager

Re: Query on Testcomplete

Hi @thoshima,

 

I've found a new (and great!) article on the TestComplete documentation. It will explain you why you have different names in Name Mapping and how to avoid this:

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/dynamic-identif...

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

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

View solution in original post

thoshima
Occasional Contributor

Re: Query on Testcomplete

Thank you all,

My Script is working fine with Wildcards, My Issue got resolved.

 

 

I have used WildCards for AWBObject as  AWTObject("VcEmbeddedFrame", "", ?*) and now VcEmbeddeFrame is not appending with any numbers for each run and it is working fine but i have small clarification. Can any one please explain clearly what is the meaning of ?(Question mark wildcard) and *(asterisk wildcard).

 

 

TanyaYatskovska
Community Manager

Re: Query on Testcomplete

Hi @thoshima,

Happy to hear that the issue has been resolved.

 

TestComplete supports two standard wildcards: the asterisk (*) and the question mark (?). The asterisk wildcard corresponds to a string of any length (including an empty string). The question mark corresponds to any single character.

 

More info

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
BenoitB
Community Hero

Re: Query on Testcomplete

Remember the old time DOS wildcard ...

Souvenir, souvenir ...

 

😉

 

Un sourire et ça repart

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors