| || |
How to test asscending and Decending order?
Can any one tell how to testing the ascending and descending order records in web application?
please give some log and sample script?
Re: How to test asscending and Decending order?
You need to arrange to get the columns you're testing into a list of string. Then, copy that list to another list of string, and use ListSort on that list. Then compare the two lists, item by item. If they match, the list was sorted ascending. If the reverse matches (i.e., compare item one against item last, etc), then the list is sorted descending. Depending on the types of string data in your list, you may need to write your own sort function.