Constants.java are URLs and parameters in some interface tests.
Public classConstants { Public Static FinalString base_url = "http://192.168.1.116:8080/cloudalbums/website/"; /*** Login Module*/ //Login Interface Public Static FinalString Login_url = base_url + "User/login1"; Public Static FinalString login_content = "{' Registractionid ': ' XXXXXXXX ', ' mobile ': ' xxxxxxxxx ', ' Password ': ' XXXXXXXX ', ' apptype ': ' 1 ' }";}
Recordstore.java is a record of some information, because after not executing a test, the record is changed and then written to HTML, so the file will only save the last record. Of course, the total will increase one by one.
Public classRecordStore { Public Static inti = 0;//record number of steps Public Static intP_pass = 0;//number of pass cases Public Static intP_fail = 0;//number of fail use cases Public StaticString result = "";//Case Results Public StaticObject expected = "";//Expected value Public StaticObject actual = "";//Actual value Public StaticString instruction = "";//Case Description}
Interface testing-automated-java implementation-constants.java/recordstore.java