Package com.piketec.tpt.api
Interface TestSet
-
- All Superinterfaces:
IdentifiableRemote
,NamedObject
,java.rmi.Remote
,TestSetOrGroup
,TptRemote
public interface TestSet extends TestSetOrGroup
ATestSet
represents a set of test cases (Scenarios
)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addTestCase(Scenario tc)
Add a new test case to the test set.RemoteCollection<ScenarioOrGroup>
getSelectedTestCasesOrGroups()
Get the selected test cases and test case groups without taking the test set condition into account.RemoteCollection<Scenario>
getTestCases()
Deprecated.-
Methods inherited from interface com.piketec.tpt.api.IdentifiableRemote
getIdentifier
-
Methods inherited from interface com.piketec.tpt.api.NamedObject
getName, setName
-
Methods inherited from interface com.piketec.tpt.api.TestSetOrGroup
copy, getGroup, move
-
-
-
-
Method Detail
-
getTestCases
@Deprecated RemoteCollection<Scenario> getTestCases() throws java.rmi.RemoteException
Deprecated.UsegetSelectedTestCasesOrGroups()
. This method will be removed in TPT 18.- Returns:
- The
set
of alltest cases
that are assigned to thisTestSet
and are not suppresed by its test set condition (using default values to evaluate the condition). - Throws:
java.rmi.RemoteException
- remote communication problem
-
getSelectedTestCasesOrGroups
RemoteCollection<ScenarioOrGroup> getSelectedTestCasesOrGroups() throws java.rmi.RemoteException
Get the selected test cases and test case groups without taking the test set condition into account. If a group is contained in the set all descendent scenarios in this group are contained in the set as well.- Returns:
- The raw selected test cases and test case groups.
- Throws:
java.rmi.RemoteException
- remote communication problem
-
addTestCase
void addTestCase(Scenario tc) throws ApiException, java.rmi.RemoteException
Add a new test case to the test set.A test case is a
Scenario
that is placed directly or in any sub-group of the top levelScenarioGroup
of the top levelTestlet
of a TPT project.- Parameters:
tc
- The test case to be added to theTestSet
- Throws:
ApiException
- If the givenScenario
is not a test case.java.rmi.RemoteException
- If the givenScenario
is not an object from the current TPT instance.- See Also:
ScenarioOrGroup.isTestcaseOrGroup()
,Project.getTopLevelTestlet()
,Testlet.getTopLevelScenarioOrGroup()
-
-