001: /*
002: * SalomeTMF is a Test Management Framework
003: * Copyright (C) 2005 France Telecom R&D
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: *
019: * @author Marche Mikael
020: *
021: * Contact: mikael.marche@rd.francetelecom.com
022: */
023:
024: package org.objectweb.salome_tmf.api.sql;
025:
026: import java.rmi.Remote;
027:
028: import org.objectweb.salome_tmf.api.data.ExecutionActionWrapper;
029:
030: public interface ISQLExecutionActionResult extends Remote {
031:
032: /**
033: * Insert a result of the execution of the action idAction in the execution result idExecRes
034: * @param idExecRes id of the ExecutionResult (table RES_EXEC_CAMP)
035: * @param idTest : id of the test
036: * @param idAction : id of the action
037: * @param description : description of the action
038: * @param awaitedRes : awaited result of the action
039: * @param effectiveRes : the effective result of the action
040: * @param result : of the action ('PASSED', 'FAILED', 'INCONCLUSIF')
041: * @return the id of the row in the table EXEC_ACTION
042: * @throws Exception
043: * need permission canExecutCamp
044: */
045: public int insert(int idExecRes, int idTest, int idAction,
046: String description, String awaitedRes, String effectiveRes,
047: String result) throws Exception;
048:
049: /**
050: * Insert a result of the execution of the action idAction in the execution result idExecRes
051: * @param idRestestExec : id of the ExecutionTestResult (EXEC_CAS)
052: * @param idAction : id of the action
053: * @param description : description of the action
054: * @param awaitedRes : awaited result of the action
055: * @param effectiveRes : the effective result of the action
056: * @param result : of the action ('PASSED', 'FAILED', 'INCONCLUSIF')
057: * @return the id of the row in the table EXEC_ACTION
058: * @throws Exception
059: * need permission canExecutCamp
060: */
061: public int insert(int idRestestExec, int idAction,
062: String description, String awaitedRes, String effectiveRes,
063: String result) throws Exception;
064:
065: /**
066: * Update the effective result of the execution of the action
067: * @param idResActionExec
068: * @param effectiveResult
069: * @param result : of the action ('PASSED', 'FAILED', 'INCONCLUSIF')
070: * @throws Exception
071: * need permission canExecutCamp
072: */
073: public void update(int idResActionExec, String effectiveResult,
074: String result) throws Exception;
075:
076: /**
077: * Update the effective result of the execution of the action
078: * @param idExecRes
079: * @param idTest
080: * @param idAction
081: * @param effectiveResult
082: * @param result : of the action ('PASSED', 'FAILED', 'INCONCLUSIF')
083: * @throws Exception
084: * need permission canExecutCamp
085: */
086: public void update(int idExecRes, int idTest, int idAction,
087: String effectiveResult, String result) throws Exception;
088:
089: /**
090: * Update the effective result of the execution of the action
091: * @param idRestestExec
092: * @param idAction
093: * @param effectiveResult
094: * @param result : of the action ('PASSED', 'FAILED', 'INCONCLUSIF')
095: * @throws Exception
096: * need permission canExecutCamp
097: */
098: public void update(int idRestestExec, int idAction,
099: String effectiveResult, String result) throws Exception;
100:
101: /**
102: * Update the description, the awaited result and effective result of the execution of the action
103: * @param idRestestExec
104: * @param idAction
105: * @param description
106: * @param awaitedResult
107: * @param effectiveResult
108: * @param result : of the action ('PASSED', 'FAILED', 'INCONCLUSIF')
109: * @throws Exception
110: * need permission canExecutCamp
111: */
112: public void update(int idRestestExec, int idAction,
113: String description, String awaitedResult,
114: String effectiveResult, String result) throws Exception;
115:
116: /**
117: * Delete result of all actions in the ExecResulTest
118: * @param idRestestExec
119: * need permission canExecutCamp
120: */
121: public void deleteAll(int idRestestExec) throws Exception;
122:
123: /**
124: * Delete result of the action in the ExecResulAction identified by idResActionExec
125: * @param idResActionExec
126: * @throws Exception
127: * need permission canExecutCamp
128: */
129: public void delete(int idResActionExec) throws Exception;
130:
131: /**
132: * Get the id of the ExecutionActionResult name in the project idProject
133: * @param idRestestExec
134: * @param idAction
135: * @return
136: * @throws Exception
137: */
138: public int getID(int idRestestExec, int idAction) throws Exception;
139:
140: /**
141: * Get an ExecutionActionWrapper representing the row idResActionExec in the table EXEC_ACTION
142: * @param idResActionExec
143: * @return
144: * @throws Exception
145: */
146: public ExecutionActionWrapper getExecAction(int idResActionExec)
147: throws Exception;
148: }
|