Cashfree interview question

How would you design an automation framework for testing a given API?