public void creatAAC_Task() throws DocumentException { // String[] sampleratelist = { "24000", "32000", "44100", "48000" }; String[] sampleratelist = { "24000" }; for (int j = 0; j < sampleratelist.length; j++) { TaskPara model = new TaskPara(); model.setTaskName("AAC_" + sampleratelist[j]); //model.setVideoCodec("h264"); model.setVideoProfile("Main"); model.setAudioCodec("aac"); //model.setAudioProfile("LC"); model.setSamplerate(sampleratelist[j]); String content = taskcaseAPIs.createTaskXML(model); String xmlString = arcvideo.addNewTask(content); assertTrue(!xmlString.contains("<errors>")); //compare(e://xml2.xml); String taskID = taskAPIs.getTaskID(xmlString); String delXML = arcvideo.deleteTask(taskID); assertTrue(delXML.contains("<success></success>")); } } |