I am testing find my iphone on my mac. However when I try to track it, it says No location avalable although it is connected to the internet.
Track what? And what is connected to the internet?
Are you sure "Find my Phone" is turned on in the settings of the iPhone. I assume you are saying the iPhone has internet turned on.
Retrieving data ...