I'm new to test complete tool and there are couple of test that required to validate the sorting order. any possible way to validate it?
Note: i'm proceeding with the Keyword Testing
Solved! Go to Solution.
for a descending sort it would be something like this
sorted = true
x = first date
y = second date
while (y is not empty) and (sorted is true)
if x > y then
log.message sort is good
if y = lastdateinlist then
set y = empty
else
set x = y
set y = nextdate
else
log.message sort is bad
set sorted = false
can you elaborate further on what you mean by "sorting function"
provide some screenshots and whatnot please
for a descending sort it would be something like this
sorted = true
x = first date
y = second date
while (y is not empty) and (sorted is true)
if x > y then
log.message sort is good
if y = lastdateinlist then
set y = empty
else
set x = y
set y = nextdate
else
log.message sort is bad
set sorted = false
Thanks for the reply, badly i'm using keyword test. any possibility to resolve this with keyword test?
Yes, you have all those constructs in Keyword Tests
Hi,
Run Script Routine operation (https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/test-actions/run-script-ro...) should help.
Subject | Author | Latest Post |
---|---|---|