time complexity of programme

if we have to find time complexity of total programme ,should we consider loop of test cases also and run programme in given time limit for all maximum test cases?

Instead of trying to estimate absolute execution time of your program, perhaps you should try to calculate the complexity of your algorithm.
The following links may prove useful, especially the second one:

Time complexity analysis - How to calculate running time?
this link will surely help you … Time complexity analysis - How to calculate running time? - YouTube