I have one program which parse the output on run, compare the time from that with given value and prints the difference, but it is not working as per my way:
a = 'Time Taken for Response: 31 msec'
time_out = 75
if a.split()[4] > time_out:
print "time taken is more than given conditions"
print a.split()[4]
OUTPUT IS AS BELOW:
time taken is more than given conditions
31
I do not understand as why the program goes into the loop itself when 31 < 75
Any clue or guidance???