Automated use case scripting