Reduce waiting time of getting PDF test script