We have a grid which is not suported by testcomplete which means testComplete do not recognize as table . It recognize the grid and it row, columns, cells as panels.
Grid also has pagination .
What is the best way to automate such grid ?
I am currently using xpath identify the cell but that will only do for the first page . how can I move to the next page
You will need to work with native methods and properties of the grid. TestComplete allows calling such methods. To learn which ones you can use, please refer to the control's documentation.
TestComplete should start supporting slick grid . We have lot of applications/forms that contain slick grid.
We need good framework to automate this type of grid. Since testcomplete do not support it we are not able to build any good framework for this grid.
There are, literally, HUNDREDS of grid type components out there... and there are new ones coming out all the time. So.... sometimes, different components need to be accounted for. This is why TestComplete allows you to write custom code and access native properties and such. so, you may need to build your own sets of methods and such to work with the grid.
Additionally, you can add this as a feature request in the appropriate forum for other users to vote on.
You are right . whatever the grid sTestcomplete is supporting now - how testcomplete start supporting those grids. is it because those have high number of requests ?
Honestly... I don't know. I'm pretty sure there's alot of processing going into the decision... market share, number of requests, complexity, etc.
I'm guessing one of the reasons why SlickGrid is not supported YET is its open-source positioning. This is not a deterrent (SmartBear has several open source product offerigns themselves) but because it doesn't have (a based upon the website) a stable nature of something that you can say "here's our component", it's kind of hard to support it in a tool like TestComplete. As soon as they support it, all it takes is for someone to come along and change the component so the tool no longer works with it. So.... perhaps that's a factor, too.
Now... all that said, please understand.
i am not a SmartBear employee so all these statements are my opinion and my opinion alone and are not reflective of SmartBear's actual policy.
In the meantime, as @TanyaGorbunova said, you're best bet until support can be added (if it will be added) is to work with native properties and methods and such on the grid component itself and write your own library of functions to interact with the component. I've had to do that many times in the past and it really works well if done well.
Do you have any examples somewhere where automation is done for the grid where testcomplete do not support it ?
I don't have any, personally, no. All the grids and such that I work with are fully supported by TestComplete and recognized as components with rows, columns, cells, etc. So, I'm not sure how much help I'm going to be with that. Perhaps there's someone else that can give more help to you. Keep in mind, any such work will be unique to that grid and may not apply to yours. You will need to work with the native properties and methods of the grid component. Find that grid in your Object Browser (not the sub panels, etc), and start examining all the properties and methods. Refer to the documentation for the grid to understand what's there and how to use it. It's going to take code work to get this to work but it can be done.
We are trying to use FindChild to identify the object. If the object is identfied then we can use Testcomplete properties and methods. But there is a problem testcomplete IDE do not display the methods and properties while coding.
var STVDEGCGrid = Aliases.browser.pageApplicationNavigator.frameBannerhs.formFrames7.panelPnlstvdegc1canvas.panelGrdstvdegc;
var propCodeArray = new Array("ObjectType","contentText");
var valueCodeArray = new Array("Panel","ADN");
var codeColumnValue1 = STVDEGCGrid.FindChild(propCodeArray,valueCodeArray,10);
after typing codeColumnvalue1. it do not display any properties and methods ?
Let me know if more information is required