java - Rest-Assured: How to clean up test data? -
i'm trying start writing new integration tests rest apis. 1 basic requirement able create user user cannot delete itself. system's superuser allowed delete user. best way of doing test data cleanup?
i can superuser login using hardcoded email , password , cleanup, don't credentials hardcoded in test code...
if running tests testng/junit, in @after part make cleanup harded super user.
Comments
Post a Comment