Test automation: API-based model