01: package org.objectweb.salome_tmf.api.sql;
02:
03: import java.rmi.Remote;
04:
05: import org.objectweb.salome_tmf.api.data.SalomeFileWrapper;
06: import org.objectweb.salome_tmf.api.data.ScriptWrapper;
07:
08: public interface ISQLAutomaticTest extends ISQLTest, Remote {
09: /**
10: * Insert an Automatic test in table CAS_TEST
11: * @param idTestList : the id of the testlist which contain the inserted test
12: * @param name : the name of the test
13: * @param description : the description of the tests
14: * @param conceptor : the conceptor of the test
15: * @param extension : the plug-in extension of the test
16: * @return the id of the test in table CAS_TEST
17: * @throws Exception
18: * need permission canCreateTest
19: */
20: public int insert(int idTestList, String name, String description,
21: String conceptor, String extension) throws Exception;
22:
23: /**
24: * Insert a Script to the test
25: * @param idTest : id of the test to insert the script
26: * @param file : the file of the script
27: * @param description : the description of the file
28: * @param name : the name of the script
29: * @param arg1 : argument 1 of the script (free use for plug-in)
30: * @param arg2 : argument 1 of the script (free use for plug-in)
31: * @return the id of script inserted in the table SCRIPT_ATTACHEMENT
32: * @throws Exception
33: * @see ISQLFileAttachment.insert(File, String)
34: * @see ISQLScript.addAttach(int, int);
35: * need permission canUpdateTest
36: */
37: public int addScript(int idTest, SalomeFileWrapper file,
38: String description, String name, String arg1, String arg2)
39: throws Exception;
40:
41: /**
42: * Delete the test in the database, this include :
43: * delete test script, and all reference (Parameter, Campaign) and the test attachments
44: * @param idTest
45: * @throws Exception
46: * need permission canDeleteTest (do a special allow)
47: */
48: public void delete(int idTest) throws Exception;
49:
50: /**
51: * Delete reference about using parameter paramId (table CAS_PARAM_TEST) for the test
52: * @param idTest
53: * @param paramId
54: * @throws Exception
55: * need permission canUpdateTest
56: * @see deleteUseParamRef
57: */
58: public void deleteUseParam(int idTest, int paramId)
59: throws Exception;
60:
61: /**
62: * Delete the script used by the tests, this include the removing of Attachement and all reference
63: * @param testId
64: * @throws Exception
65: * need permission canUpdateTest
66: * @see ISQLScript().delete(int, int)
67: */
68: public void deleteScript(int testId) throws Exception;
69:
70: /**
71: * Get a ScriptWrapper representing the script for the tests testId
72: * @param testId : id of the test
73: * @return
74: * @throws Exception
75: * @see ScriptWrapper
76: */
77: public ScriptWrapper getTestScript(int testId) throws Exception;
78:
79: /**
80: * Get the Script File atached to the script for the tests testId
81: * @param testId
82: * @return
83: * @throws Exception
84: * @see ISQLScript.getFile(int)
85: * no permission needed
86: */
87: public SalomeFileWrapper getTestScriptFile(int testId)
88: throws Exception;
89: }
|