| org.objectweb.salome_tmf.api.sql.ISQLTest
All known Subclasses: org.objectweb.salome_tmf.databaseSQL.SQLTest, org.objectweb.salome_tmf.soap.SQLTestSoapBindingStub,
Method Summary | |
public int | addAttachFile(int idTest, SalomeFileWrapper f, String description) | public int | addAttachUrl(int idTest, String url, String description) | public void | addUseParam(int idTest, int paramId) | public void | delete(int idTest) | public void | delete(int idTest, boolean reorder) | public void | deleteAllAttach(int idTest) | public void | deleteAllUseParam(int idTest) | public void | deleteAttach(int idTest, int attachId) | public void | deleteUseParam(int idTest, int paramId) | public FileAttachementWrapper[] | getAllAttachFiles(int testId) | public UrlAttachementWrapper[] | getAllAttachUrls(int testId) | public AttachementWrapper[] | getAllAttachemnt(int testId) | public ParameterWrapper[] | getAllUseParams(int testId) | public int | getID(int idTestList, String name) | public TestWrapper | getTest(int testId) | public void | update(int idTest, String newName, String newDesc) | public int | updateOrder(int idTest, boolean increment) | public void | updateUserRef(int idSuite, int oldIdUser, int newIdUser) |
addAttachFile | public int addAttachFile(int idTest, SalomeFileWrapper f, String description) throws Exception(Code) | | Attach a file attach to a test in table ATTACHEMENT and reference in table CAS_ATTACHEMENT
Parameters: idTest - : id of the test Parameters: f - : the file Parameters: description - of the file the id of the attachment in the table ATTACHEMENT throws: Exception - |
addAttachUrl | public int addAttachUrl(int idTest, String url, String description) throws Exception(Code) | | Attach a url to a test in table ATTACHEMENT and reference in table CAS_ATTACHEMENT
Parameters: idTest - : id of the test Parameters: url - Parameters: description - of the url the id of the attachment in the table ATTACHEMENT See Also: ISQLUrlAttachment.insert(String, String); throws: Exception - |
addUseParam | public void addUseParam(int idTest, int paramId) throws Exception(Code) | | Add in database the reference of use paramter paramId for test idTest in table CAS_PARAM_TEST
Parameters: idTest - : id of the test Parameters: paramId - : id of the parameter throws: Exception - need permission canUpdateTest |
delete | public void delete(int idTest) throws Exception(Code) | | Delete the test in table CAS_TEST and all reference (Parameter, Campaign) and the test attachments
delete test actions (if manual test), delete test script (if automatic test)
Parameters: idTest - : id of the test throws: Exception - See Also: deleteAllUseParam(int) See Also: deleteAllAttach(int) See Also: ISQLCampaign.deleteTestInAllCampaign(int) See Also: need permission canDeleteTest |
delete | public void delete(int idTest, boolean reorder) throws Exception(Code) | | Delete the test in table CAS_TEST and all reference (Parameter, Campaign) and the test attachments
delete test actions (if manual test), delete test script (if automatic test)
Update order of test in the suite if reorder = true
Parameters: idTest - : id of the test Parameters: reorder - reorder the test in the suite throws: Exception - See Also: deleteAllUseParam(int) See Also: deleteAllAttach(int) See Also: ISQLCampaign.deleteTestInAllCampaign(int) See Also: need permission canDeleteTest |
deleteAllAttach | public void deleteAllAttach(int idTest) throws Exception(Code) | | Delete all attachment in table (CAS_ATTACHEMENT and ATTACHEMENT) for the test
Parameters: idTest - : id of the test throws: Exception - See Also: deleteAttach(int, int) See Also: no permission needed |
deleteAllUseParam | public void deleteAllUseParam(int idTest) throws Exception(Code) | | Delete all reference about using parameter (table CAS_PARAM_TEST) for the test
if the test is manual, parameters are deleted in action
Parameters: idTest - : id of the test throws: Exception - need permission canUpdateTest |
deleteAttach | public void deleteAttach(int idTest, int attachId) throws Exception(Code) | | Delete attachement for the test and the attachement (tables CAS_ATTACHEMENT, ATTACHEMENT)
Parameters: idTest - : id of the test Parameters: attachId - : id of the attachment throws: Exception - See Also: ISQLAttachment.delete(int) See Also: no permission needed |
deleteUseParam | public void deleteUseParam(int idTest, int paramId) throws Exception(Code) | | Delete reference about using parameter paramId (table CAS_PARAM_TEST) for the test
if the test is manual, parameters are deleted in action
Parameters: idTest - : id of the test Parameters: paramId - : id of the parameter throws: Exception - See Also: ISQLAction.deleteParamUse(int, int) See Also: need permission canUpdateTest |
getAllAttachFiles | public FileAttachementWrapper[] getAllAttachFiles(int testId) throws Exception(Code) | | Get an Array of FileAttachementWrapper for the test identified by testId
Parameters: testId - : id of the test throws: Exception - |
getAllAttachUrls | public UrlAttachementWrapper[] getAllAttachUrls(int testId) throws Exception(Code) | | Get an Array of UrlAttachementWrapper for the test identified by testId
Parameters: testId - : id of the test throws: Exception - |
getAllAttachemnt | public AttachementWrapper[] getAllAttachemnt(int testId) throws Exception(Code) | | Get an Array of AttachementWrapper (FileAttachementWrapper, UrlAttachementWrapper)
for the test identified by testId
Parameters: testId - : id of the test throws: Exception - |
getAllUseParams | public ParameterWrapper[] getAllUseParams(int testId) throws Exception(Code) | | Get an Array of ParameterWrapper (only id is set) using by the test identifed by testId
Parameters: testId - : id of the test throws: Exception - |
getID | public int getID(int idTestList, String name) throws Exception(Code) | | Get the id of the test identified by name in the testlist identified by idTestList
Parameters: idTestList - : id of the testlist Parameters: name - : the test name a test id throws: Exception - |
update | public void update(int idTest, String newName, String newDesc) throws Exception(Code) | | Update the test with new name and description
Parameters: idTest - : id of the test Parameters: newName - : the new name Parameters: newDesc - : the new description throws: Exception - need permission canUpdateTest |
updateOrder | public int updateOrder(int idTest, boolean increment) throws Exception(Code) | | Update order of the test by incrementation if increment = true or decrementation
Parameters: idTest - : id of the test Parameters: increment - the new order of the test in database throws: Exception - |
updateUserRef | public void updateUserRef(int idSuite, int oldIdUser, int newIdUser) throws Exception(Code) | | replace all reference of user oldIdUser by newIdUser in the table (CAS_TEST) where suite = idSuite
Parameters: oldIdUser - Parameters: newIdUser - throws: Exception - no permission needed |
|
|