MUST READ BEFORE WRITING AUTOMATION CODE 1. Don't us random. That makes test uncertain, hard to debug and maintain. Instead of it, prepare enough special test data to cover boundary conditions. 2. Name tests properly. "testLoadFileFromServer" is better than "test". 3. Clean up in @After/@AfterClass method to avoid affecting other testcases.