-1

In Junit test there is @After for the clenaup. Is there any similar way for the postman testing? If yes, how it should be done? Pls let me know.

Masi Boo
  • 635
  • 1
  • 10
  • 24

1 Answers1

0

I found the way to do it. I can simpley do it after the test as the last test for the clenaup

pm.test("Clean up after test", function () {
    // Add your cleanup code here
});
Masi Boo
  • 635
  • 1
  • 10
  • 24