01: /*
02: * SalomeTMF is a Test Management Framework
03: * Copyright (C) 2005 France Telecom R&D
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *
19: * @author Marche Mikael
20: *
21: * Contact: mikael.marche@rd.francetelecom.com
22: */
23:
24: package org.objectweb.salome_tmf.api.sql;
25:
26: import java.rmi.Remote;
27:
28: import org.objectweb.salome_tmf.api.data.ActionWrapper;
29:
30: public interface ISQLManualTest extends ISQLTest, Remote {
31:
32: /**
33: * Insert a Manual test in table CAS_TEST
34: * @param idTestList : the id of the testlist which contain the inserted test
35: * @param name : the name of the test
36: * @param description : the description of the tests
37: * @param conceptor : the conceptor of the test
38: * @param extension : the plug-in extension of the test
39: * @return the id of the test in table CAS_TEST
40: * @throws Exception
41: * need permission canCreateTest
42: */
43: public int insert(int idTestList, String name, String description,
44: String conceptor, String extension) throws Exception;
45:
46: /**
47: * Delete the test in the database, this include :
48: * delete test actions, and all reference (Parameter, Campaign) and the test attachments
49: * @param idTest : id of the test
50: * @throws Exception
51: * @see ISQLAction.delete(int)
52: * need permission canDeleteTest (do a special allow)
53: */
54: public void delete(int idTest) throws Exception;
55:
56: /**
57: * Delete reference about using parameter paramId (table CAS_PARAM_TEST) for the test and his actions
58: * @param idTest : id of the test
59: * @param paramId : id of the parameter
60: * @throws Exception
61: * need permission canUpdateTest
62: * @see deleteUseParamRef
63: * @see ISQLAction.deleteParamUse(int, int)
64: */
65: public void deleteUseParam(int idTest, int paramId)
66: throws Exception;
67:
68: /**
69: * Get an Array of ActionWrapper representing all Action of the test
70: * @param idTest : id of the test
71: * @return
72: * @throws Exception
73: */
74: public ActionWrapper[] getTestActions(int idTest) throws Exception;
75:
76: /**
77: * Get the number of action contening in the test identified by idTest
78: * @param idTest
79: * @return
80: * @throws Exception
81: */
82: public int getNumberOfAction(int idTest) throws Exception;
83:
84: /**
85: * Get a ActionWrapper representing an action in position order for the test idTest
86: * @param idTest : id of the test
87: * @param order : order of the action
88: * @return a ActionWrapper
89: * @throws Exception
90: */
91: public ActionWrapper getActionByOrder(int idTest, int order)
92: throws Exception;
93: }
|