Not familiar with your tractor but on mine (12.5 hp Kohler OHV Command engine), it was easiest to check the fuel flow from the tank by disconnecting the fuel line where it connects to the fuel filter. Then, just drop the line into a empty can or bucket and see if the fuel flows out.
If nothing comes out, try blowing some air through the hose and see if there might be an obstruction in the fuel line or the tank - you might need another person to watch the gas tank with the cap off to see where the bubbles come out from... Afterwards, you should be able to get fuel to flow through the line if your fuel connection is similar to my Cub Cadet's.
For the last 3 years, I've been dealing with a situation that as long as the temperature is very cold or cool, I can plow snow or mow for hours. As soon as the air temp hits 80 degrees F and the engine gets hot, it will shutoff and die like it's fuel starved.
I wait a couple of hours for it to cool down and the engine will start right up until it gets hot again and dies.
New spark plug, coil, rebuilt carb, left fuel cap loose/off.
The other thing I've come across is to check all the electrical connections on Cubs but not sure that's going to help since once the engine dies, the starter will crank until the battery goes dead.
Good luck,
greynold99
Electrical stuff is tough. If you have a vom (H Frt cheapo for this) or test light you can slowly try testing wire continuity by using the beep funcion or light flicker while bending and wiggling the wire /connector under test.