How you are perfected by discharging your occupational duty, how it is tested. That test is svanusthitasya dharmasya samsiddhir. Your occupational duty will be perfect when? Samsiddhir hari-tosanam [SB 1.2.13]. When you satisfy the Supreme Lord by your occupational duties. That is dharma.
Lecture on Bhagavat-Gita 4.7, Montreal, 13 June, 1968