de.oio.bugkilla.protocol
Class TestSequence

java.lang.Object
  |
  +--de.oio.bugkilla.protocol.TestSpecification
        |
        +--de.oio.bugkilla.protocol.ComplexTestSpecification
              |
              +--de.oio.bugkilla.protocol.TestSequence
All Implemented Interfaces:
java.io.Serializable

public class TestSequence
extends ComplexTestSpecification
implements java.io.Serializable

Represent one TestSequence (child of Scenario) with one or more TestStep(s)

See Also:
Scenario, TestStep, Serialized Form

Constructor Summary
TestSequence()
           
 
Method Summary
 boolean add(TestStep step)
          Returns the number of TestStep elements in this sequence.
 boolean add(UserInteraction ui)
          Returns the number of UserInteraction elements in this sequence.
 boolean contains(TestStep step)
          Returns true if this sequence contains the specified TestStep element.
 boolean contains(UserInteraction ui)
          Returns true if this sequence contains the specified UserInteraction element.
 java.lang.String getDescription()
          Returns the description.
 Environment getEnvironment()
          Returns the environment.
 java.lang.String getQualifiedName()
          Returns the qualifiedName.
 java.lang.Object next()
          Returns the next UserInteraction or TestStep element in the iteration.
 TestStep nextTestStep()
          Returns the next TestStep element in the iteration.
 boolean remove(TestStep step)
          Removes the first occurrence of the specified TestStep element in this sequence.
 boolean remove(UserInteraction ui)
          Removes the first occurrence of the specified UserInteraction element in this sequence.
 void setDescription(java.lang.String description)
          Sets the description.
 void setEnvironment(Environment environment)
          Sets the environment.
 void setQualifiedName(java.lang.String qualifiedName)
          Sets the qualifiedName.
 
Methods inherited from class de.oio.bugkilla.protocol.ComplexTestSpecification
beforeFirst, clear, getElements, hasNext, isEmpty, size
 
Methods inherited from class de.oio.bugkilla.protocol.TestSpecification
getID, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSequence

public TestSequence()
Method Detail

getEnvironment

public Environment getEnvironment()
Returns the environment.

Returns:
Environment

setEnvironment

public void setEnvironment(Environment environment)
Sets the environment.

Parameters:
environment - The environment to set

add

public boolean add(TestStep step)
Returns the number of TestStep elements in this sequence.

Parameters:
step - the number of TestStep elements in this sequence
Returns:
true if step successfully added

add

public boolean add(UserInteraction ui)
Returns the number of UserInteraction elements in this sequence.

Parameters:
ui - the number of UserInteraction elements in this sequence
Returns:
true if ui successfully added

contains

public boolean contains(TestStep step)
Returns true if this sequence contains the specified TestStep element.

Parameters:
step - - TestStep element whose presence in this sequence is to be tested.
Returns:
true if this sequence contains the specified TestStep element

contains

public boolean contains(UserInteraction ui)
Returns true if this sequence contains the specified UserInteraction element.

Parameters:
ui - - TestStep element whose presence in this sequence is to be tested.
Returns:
true if this sequence contains the specified UserInteraction element

remove

public boolean remove(TestStep step)
Removes the first occurrence of the specified TestStep element in this sequence.

Parameters:
step - - TestStep element to be removed from this sequence, if present.
Returns:
true if the sequence contained the specified TestStep element.
See Also:
Vector.remove(Object)

remove

public boolean remove(UserInteraction ui)
Removes the first occurrence of the specified UserInteraction element in this sequence.

Parameters:
ui - - UserInteraction element to be removed from this sequence, if present.
Returns:
true if the sequence contained the specified UserInteraction element.
See Also:
Vector.remove(Object)

nextTestStep

public TestStep nextTestStep()
Returns the next TestStep element in the iteration.

Returns:
the next TestStep element in the iteration it is not possible to invoke this method because there will be no iterator instance.

next

public java.lang.Object next()
Returns the next UserInteraction or TestStep element in the iteration.

Returns:
the next UserInteraction or TestStep element in the iteration or null

getQualifiedName

public java.lang.String getQualifiedName()
Returns the qualifiedName.

Returns:
String

setQualifiedName

public void setQualifiedName(java.lang.String qualifiedName)
Sets the qualifiedName.

Parameters:
qualifiedName - The qualifiedName to set

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
String

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - The description to set


Copyright © Orientation in Objects GmbH. All Rights Reserved.