@Parameters({"logtest-logname","logwrite-number-of-records"}) @Test(groups={"api-adminread"},dependsOnMethods={"writeAdminLogRecord"}) public void readAdminLogRecord(String rLogName,String rNumRecs) throws AMLogException {
  SSOToken adminToken=getAdminSSOToken();
  int numRecs=0;
  if ((rNumRecs != null) && (rNumRecs.length() > 0)) {
    try {
      numRecs=Integer.parseInt(rNumRecs);
    }
 catch (    NumberFormatException nfe) {
      numRecs=1;
    }
  }
  readAllRecords(rLogName,adminToken,numRecs);
  readLogQuery(rLogName,adminToken,numRecs);
}

@ Parameters ( { "logtest-logname" , "logwrite-number-of-records" } ) @ Test ( groups = { "api-adminread" } , dependsOnMethods = { "writeAdminLogRecord" } ) public void readAdminLogRecord ( String rLogName , String rNumRecs ) throws AMLogException { SSOToken adminToken = getAdminSSOToken ( ) ; int numRecs = 0 ; if ( ( rNumRecs != null ) && ( rNumRecs . length ( ) > 0 ) ) { try { numRecs = Integer . parseInt ( rNumRecs ) ; } catch ( NumberFormatException nfe ) { numRecs = 1 ; } } readAllRecords ( rLogName , adminToken , numRecs ) ; readLogQuery ( rLogName , adminToken , numRecs ) ; }
the amadmin read log record test . test reads as amadmin only . test 1 : retrieve all records . * should * be logwrite - number - of - records if the logtest - logname exists before the whole run , then this test will fail ( more than expected records retrieved ) .
