Managing Resources and Risk During Software Testing