Query on Testcomplete
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
Name Mapping
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?).
/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
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wildcards in TC is a great great feature !
Un sourire et ça repart
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remember the old time DOS wildcard ...
Souvenir, souvenir ...
😉
Un sourire et ça repart
