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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -