wsherwin
11 years agoOccasional Contributor
Issues with Data Sorting and Table Comparisons
I'm not sure if this post belongs under "Novices" or under "General" but, since I'm a novice with TestComplete, I'll post it here.
Our application has some sortable data tables with clickable headers (to select sorting). The data are not static, so I cannot store them in the script in advance. I know how I would go about doing this if I had two tables and either C++ or Python, but how does one effect a comparison to ensure that proper sorting is being performed?
Thank you very much in advance.
Our application has some sortable data tables with clickable headers (to select sorting). The data are not static, so I cannot store them in the script in advance. I know how I would go about doing this if I had two tables and either C++ or Python, but how does one effect a comparison to ensure that proper sorting is being performed?
Thank you very much in advance.
- Hi!
You can only accomplish what you want through scripting.
For instance:
- First you can click the column you want to sort your table, then do your magic going through all the table lines to check if the sorting is ok
- Second, click another column (different sorting criteria) do your magic
-Repeat to every column and adjust your script to match each criteria