add a template code for test automation