How to verify sorting of elements in grid using sikuli?? Compare elements & verify sorting functionality

Asked by Monodeep

How to verify sorting of elements in grid using sikuli?? Compare elements & verify sorting functionality of column in grid.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Monodeep (monodeep88) said :
#1

High Priority

Revision history for this message
RaiMan (raimund-hocke) said :
#2

If it is high priority, then you should have given as much information as possible from the beginning.

what system environment?
what Sikuli version?

what kind of grid? (exel sheet or table in desktop GUI or table in web app (html or flash))
Have the grid elements to be checked textually (OCR? already tested?) or visually using shot-images?

If I understand right:
- you have a column, that can be sorted somehow.
- you want to check, wether the sort sequence is as expected afterwards.

enough questions, that influence the possibilities and are not yet answered.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

BTW:
- do you already use Sikuli or did you just start to think about it?
- will you script or programming in Java?

Revision history for this message
Monodeep (monodeep88) said :
#4

Hi,

My question is how can we sort data in a column, in ascending /descending order by dynamically comparing element of one row with
the element in its immediate next row.

Thanks,

Revision history for this message
RaiMan (raimund-hocke) said :
#5

does not make it clearer.

Revision history for this message
Monodeep (monodeep88) said :
#6

Hi,

For example there are 3 rows in a grid containing numbers 1,2 & 3. Now, if I sort in ascending order, 1st grid should display 1, second grid should display 2 & third grid should display 3. I need to compare the elements of 1st row with second & perform sorting, then compare 2nd with 3rd row & perform sorting. and so on. This comparing needs to be handled by sikuli script.

Thanks,

Revision history for this message
RaiMan (raimund-hocke) said :
#7

So the sorting should be done by a Sikuli script?

Can the content of each "grid" (for me this is a grid cell) be read using Sikuli's OCR feature?

What should be the out com of the "sort"?
- the values of each cell machine readable in a list/array? or
- the grid cells moved around to be finally sorted?

You might post screenshots somewhere in the net (before sorting and after), since this might make it clearer.

BTW: Sikuli does not have any builtin "grid sorting" feature - this all need to be scripted (Python) or programmed (Java)

Revision history for this message
Monodeep (monodeep88) said :
#8

Please advise me how can I sort using array. This might probably be a easy & simple procedure

Revision history for this message
RaiMan (raimund-hocke) said :
#9

It is really a hard job, to communicate with you.

You did not yet answer any of the questions in comment #2 and #3.

you say: Please advise me how can I sort using array.

the answer: use the respective features, that are available in the scripting/programming environment you are working with, to sort something you call an array.

Since I do not know with what you are working and what your experiences are, this is the possible answer.

Can you help with this problem?

Provide an answer of your own, or ask Monodeep for more information if necessary.

To post a message you must log in.