Forum Discussion
Hi,
I am not sure where and how you have tried to change filter data, but it is my understanding that .FilterText property is just a textual representation of the applied filter.
Highlight the required grid object in your tested application using Object Spy and check the Methods pane in the Object Browser / Object Spy. This pane will list all methods that are accessible from test script code.
Talk to your developers and ask them how they are setting filter in code. Check if the same method is accessible to you in TestComplete. Depending on the implementation of the grid, you might be needing debug version of it (along with debug information) to be used in the tested application in order to access required method.
Really .FilterText property is just a textual representation of the applied filter, but it was my attempt. I do not master the Delphi language, my scripts in Test Complete I develop in javascript.
I am using it in active debug mode. The developer compiled following the example of the test complete documentation.
Yesterday I talked to a colleague at work who had the source code, we found that the grid filter uses an object with class TVsClientDataSet. Even the IndexFieldNames property has the name of the columns.
I ended up solving the window I sent in the print, checking the column with the value (3,2248 and 2,66). And I continued my script development
As soon as I encounter similar problems I will investigate in the class (TVsClientDataSet) and post here if I discover something
There is a way to search the object browser for words? For example, I've been trying to use the Find() and FindChild() methods, but in the Property parameter (PropNames) I can't use regular expressions, only in PropValues. The idea is to search for the words that were in the grid columns.
Regards,
João
Related Content
- 3 years ago
- 3 years ago
- 2 months ago
- 10 months ago