def add_automation_link(testcase):
    """Append link to automation script to the test description."""
    automation_script = testcase.get('automation_script')
    if not automation_script:
        return testcase
    automation_link = '<a href="{}">Test Source</a>'.format(automation_script)
    testcase['description'] = '{}<br/>{}'.format(testcase.get('description'
        ) or '', automation_link)
    return testcase
