Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check for sorting functionality through QTP
#4
Solved: 10 Years, 9 Months, 3 Weeks ago
load the data of the column that you want to check the column(sort data) into the datatable global sheet and then compare the values row1 with row2 and row2 with row3 and so on


Code:
dim x,i,k,flag
flag=false
k=1
rowcount=datatable.rowcount

for i=1 to rowcount  
datatable.setcurrentrow i
x=datatable.value("column header",dtglobalsheet)
if x>k then
k=x
flag=true
else
msgbox "your result is fail"
exit for
end if
next

if flag=true then
msgbox "the data is sorted"
Reply


Messages In This Thread
RE: Check for sorting functionality through QTP - by sree.85 - 07-20-2012, 01:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gmail: Compose Mail Functionality kishore.gkk 5 9,679 02-15-2013, 08:39 AM
Last Post: newqtp
  Need help for Enterkey functionality mahesh1612 4 3,225 11-23-2011, 01:51 PM
Last Post: Acharya_silu@yahoo.com
Exclamation Functionality bugs... Unleash Rajesh 4 3,567 07-26-2011, 09:32 AM
Last Post: Unleash Rajesh
  Does QTP 9.0 supports drag & drop functionality check for webelement? jyotikrushna 1 4,015 01-13-2010, 01:33 PM
Last Post: 1981.madhu@gmail.com
  Sorting the data prasanna 1 1,916 04-06-2008, 08:46 PM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 1 Guest(s)