Walk me through how you would design an automation framework from scratch for a monolithic application migrating to microservices.