Use Speedtest component for specific network interface

I have my raspberry pi connected to internet with both lan and wifi. currently speedtest component measures download and upload speed of lan. how can i set it to measure wifi network too?

You cannot specify interface in the speedtest component, but you can route the traffic to your speedtest site over a specific interface. Look ip route add for details on how to specify the route on your pi.