cancel
Showing results for 
Search instead for 
Did you mean: 

Slick grid - Row selection + pagination

Super Contributor

Slick grid - Row selection + pagination

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 ? 

 

Please update 

 

Thanks

Nishchal

 

 

16 REPLIES 16
Super Contributor

Re: Slick grid - Row selection + pagination

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 

 

 

Community Manager

Re: Slick grid - Row selection + pagination

Hi @nisgupta,

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.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Super Contributor

Re: Slick grid - Row selection + pagination

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.

 

Thanks

Nishchal

Community Hero

Re: Slick grid - Row selection + pagination

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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Super Contributor

Re: Slick grid - Row selection + pagination

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 ?

Community Hero

Re: Slick grid - Row selection + pagination

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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Super Contributor

Re: Slick grid - Row selection + pagination

Thanks @tristaanogre 

 

Do you have any examples somewhere where automation is done for the grid where testcomplete do not support it ?

 

Thanks

Nishchal

Community Hero

Re: Slick grid - Row selection + pagination

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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Super Contributor

Re: Slick grid - Row selection + pagination

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.

 

For e.g.

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);

 

if(codeColumnValue1.Exists){

Log.Message("hello");
Log.message(codeColumnValue1.);
}

after typing codeColumnvalue1.    it do not display any properties and methods ? 

 

Please advise 

 

Let me know if more information is required 

 

Thanks

Nishchal