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
Solved! Go to Solution.
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.
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:
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.
Thank you for your advice Wamboo!
@aletsu did you give this suggestion a try? Please share your results with the Community🙂
Community and Education Specialist
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.