Capture-based Automated Test Input Generation