Why TestComplete and TestExecute recognizes objects differently.
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why TestComplete and TestExecute recognizes objects differently.
if aqObject.CheckProperty(Sys.Process('MdataQ').VCLObject('DocumentSelectionView').VCLObject('pnlActiveDocs').VCLObject('cxOrderGrid').Window('TcxGridSite', '', 1).Window('TcxFindPanelMRUEdit', '', 1).Window('TcxFindPanelMRUEditInnerEdit', '', 1), 'Visible', cmpEqual, true) then
mdataQ.DocumentSelectionView.pnlActiveDocs.cxOrderGrid.TcxGridSite.TcxFindPanelMRUEdit.TcxFindPanelMRUEditInnerEdit.Keys(orderNr+'[Enter]');
TestComplete:
TestExecute:
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
To work around this, you can use the conditional option inside NameMapping.
Add an external condition "OR" for this object value.
I mean, for example, if you need to have a value of class A and B within one object -> add it to the NameMapping condition.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Wamboo
Tnx for your answer,
We have a developing machine with TestComplete where we write test cases, then we have a Test server with TestExecute here we run out test cases. The application we test contents DevExpress's TcxGrid
with TcxFindPanel that we tring to access here:
application.DocumentSelectionView.pnlActiveDocs.cxOrderGrid.TcxGridSite.TcxFindPanelMRUEdit.TcxFindPanelMRUEditInnerEdit.Keys(orderNr+'[Enter]');
The code above working perfectly in TestComplete but TestExecute fails to find the object.
Im not shure then NameMapping will help here , but i'll try.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your advice Wamboo!
@aletsu did you give this suggestion a try? Please share your results with the Community🙂
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In this case, if there is a fixed point in NameMapping, use the .find() function on it to dynamically find the object indicated in the topic.
