| java.lang.Object org.objectweb.salome_tmf.databaseSQL.SQLExecutionResult
Method Summary | |
public int | addAttachFile(int idExecRes, SalomeFileWrapper file, String description) | public int | addAttachUrl(int idExecRes, String url, String description) | public void | delete(int idResExec) | public void | deleteAllAttach(int idResExec) | public void | deleteAttach(int idResExec, int idAttach) | public TestAttachmentWrapper[] | getAllAttachTestInExecutionResult(int idResExec) | public FileAttachementWrapper[] | getAttachFiles(int idResExec) | public UrlAttachementWrapper[] | getAttachUrls(int idResExec) | public AttachementWrapper[] | getAttachs(int idResExec) | public ExecutionResultTestWrapper[] | getExecutionResultTestWrapper(int idResExec) | public int | getID(int idExec, String name) | public int | getNumberOfFail(int idResExec) | public int | getNumberOfInc(int idResExec) | public int | getNumberOfPass(int idResExec) | int | getNumberOfResult(int idResExec, String type) | public String | getTestResultInExecution(int idResExec, int idTest) | public ExecutionResultWrapper | getWrapper(int idResExec) | public int | insert(int idExec, String name, String description, String status, String result, int idUser) | public void | update(int idResExec, String description, String status, String result, int idUser) | public void | updateUserRef(int idExec, int oldIdUser, int newIdUser) |
addAttachFile | public int addAttachFile(int idExecRes, SalomeFileWrapper file, String description) throws Exception(Code) | | Attach a file to the Execution Result : idExecRes (table ENV_ATTACHEMENT)
Parameters: idExecRes - Parameters: file - Parameters: description - of the file the Id of the attachment in the table ATTACHEMENT throws: Exception - See Also: ISQLFileAttachment.insert(File, String) See Also: no permission needed |
addAttachUrl | public int addAttachUrl(int idExecRes, String url, String description) throws Exception(Code) | | Attach an Url to the Execution Result : idExecRes (table ENV_ATTACHEMENT)
Parameters: idExecRes - Parameters: url - Parameters: description - of the url the Id of the attachment in the table ATTACHEMENT throws: Exception - See Also: ISQLUrlAttachment.insert(String, String) See Also: no permission needed |
delete | public void delete(int idResExec) throws Exception(Code) | | Delete the Execution Result identified by idExecRes in table RES_EXEC_CAMP
Then delete all attachements, and related Test and Action execution result
Parameters: idResExec - throws: Exception - See Also: ISQLExecutionTestResult.deleteAllFrom(int) See Also: need permission canExecutCamp |
deleteAllAttach | public void deleteAllAttach(int idResExec) throws Exception(Code) | | Delete all attchements of the Execution Result identified by idExecRes
Parameters: idResExec - throws: Exception - no permission needed |
deleteAttach | public void deleteAttach(int idResExec, int idAttach) throws Exception(Code) | | Delete an attchement idAttach of the Execution Result identified by idExecRes
Parameters: idResExec - Parameters: idAttach - throws: Exception - See Also: ISQLAttachment.delete(int) See Also: no permission needed |
getAttachFiles | public FileAttachementWrapper[] getAttachFiles(int idResExec) throws Exception(Code) | | Get a vector of FileAttachementWrapper representing the files attachment of the
Execution Result identified by idExecRes
Parameters: idResExec - throws: Exception - |
getAttachUrls | public UrlAttachementWrapper[] getAttachUrls(int idResExec) throws Exception(Code) | | Get a vector of UrlAttachementWrapper representing the Urls attachment of the
Execution Result identified by idExecRes
Parameters: idResExec - throws: Exception - |
getAttachs | public AttachementWrapper[] getAttachs(int idResExec) throws Exception(Code) | | Get a vector of all attachments (AttachementWrapper, File or Url) of the
Execution Result identified by idExecRes
Parameters: idResExec - throws: Exception - |
getExecutionResultTestWrapper | public ExecutionResultTestWrapper[] getExecutionResultTestWrapper(int idResExec) throws Exception(Code) | | Get an Array of ExcutionResultTestWrapper included in the ExecutionResult identifed by idResExec
Parameters: idResExec - throws: Exception - |
getID | public int getID(int idExec, String name) throws Exception(Code) | | Get the id of the Execution Result identified by name in the Excecution idExec
Parameters: idExec - Parameters: name - throws: Exception - |
getNumberOfFail | public int getNumberOfFail(int idResExec) throws Exception(Code) | | Parameters: idResExec - The number of test FAIL (ApiConstants.FAIL, and FAILED in the databse) in the execution result |
getNumberOfInc | public int getNumberOfInc(int idResExec) throws Exception(Code) | | Parameters: idResExec - The number of test FAIL (ApiConstants.UNKNOWN, and INCONCLUSIF in the databse) in the execution result |
getNumberOfPass | public int getNumberOfPass(int idResExec) throws Exception(Code) | | Parameters: idResExec - The number of test FAIL (ApiConstants.SUCCESS, and PASSED in the databse) in the execution result |
getTestResultInExecution | public String getTestResultInExecution(int idResExec, int idTest) throws Exception(Code) | | Get the status of the execution of the tests idTest in the execution result idResExec
Parameters: idResExec - Parameters: idTest - throws: Exception - |
insert | public int insert(int idExec, String name, String description, String status, String result, int idUser) throws Exception(Code) | | Insert an Execution Result in the database (table RES_EXEC_CAMP)
Parameters: idExec - : id of the related execution Parameters: name - of the Execution Result Parameters: description - of the Execution Result Parameters: status - (FAIT, A_FAIRE) Parameters: result - (INCOMPLETE, STOPPEE, TERMINEE) Parameters: idUser - the id of the Execution Result in the table RES_EXEC_CAMP throws: Exception - canExecutCampneed permission |
update | public void update(int idResExec, String description, String status, String result, int idUser) throws Exception(Code) | | Update the data of the Execution Result identified by idExecRes
Parameters: idResExec - Parameters: description - Parameters: status - (FAIT, A_FAIRE) Parameters: result - (INCOMPLETE, STOPPEE, TERMINEE) Parameters: idUser - throws: Exception - need permission canExecutCamp |
updateUserRef | public void updateUserRef(int idExec, int oldIdUser, int newIdUser) throws Exception(Code) | | replace all reference of user oldIdUser by newIdUser in the table (RES_EXEC_CAMP) where execution is idExec
Parameters: oldIdUser - Parameters: newIdUser - throws: Exception - no permission needed |
|
|