testing_dude
13 years agoNew Contributor
Extended Find Warning
In my testproject (web-based java application) i have implemented some functions to check objects. In this case its a function which offeres a simple visibility check of a gui element.
The pages of the application are created dynamically and objects appear or are hidden depending on the previous entries made to other objects in the application.
To test the visibility of an object I simply do a
> if(object.Exists)
If in the test specification the required state of an object is <not visible> and the object really does not exist, the testrun continues and a log is posted "check ok: item not visible", else an error would be logged and the testrun stops with an error.
My problem is:
If the item should not be visible and could naturally not be found by TestComplete, a warning is posted -> "The mapped item has the extended find attribute enabled"
The item is correctly not visible but the testrun finishes with a wrong state (with warnings instead of success).
Is it possible to disalbe this warning message?
I can not find anything in the preferences and when using a eventhandler it is only possible to add something to the currently fired event, but not to overwrite and handle the event by myself.
And it is also not possible to disalbe the extended find because in the application the parent objects are often created dynamically and the object tree can change from test to test, so i have to release the mapped objects from their mapped position to the mostly top level of the current page.
Thanks!
The pages of the application are created dynamically and objects appear or are hidden depending on the previous entries made to other objects in the application.
To test the visibility of an object I simply do a
> if(object.Exists)
If in the test specification the required state of an object is <not visible> and the object really does not exist, the testrun continues and a log is posted "check ok: item not visible", else an error would be logged and the testrun stops with an error.
My problem is:
If the item should not be visible and could naturally not be found by TestComplete, a warning is posted -> "The mapped item has the extended find attribute enabled"
The item is correctly not visible but the testrun finishes with a wrong state (with warnings instead of success).
Is it possible to disalbe this warning message?
I can not find anything in the preferences and when using a eventhandler it is only possible to add something to the currently fired event, but not to overwrite and handle the event by myself.
And it is also not possible to disalbe the extended find because in the application the parent objects are often created dynamically and the object tree can change from test to test, so i have to release the mapped objects from their mapped position to the mostly top level of the current page.
Thanks!