You can do this action in a @BeforeClass annotated static method to have it executed once for all runs through this test. Ditto for other uses of it in other methods.