org.javagen.funcgen.model
Class PermutationsGroup

java.lang.Object
  extended by org.javagen.agile.core.model.AbstractModel
      extended by org.javagen.funcgen.model.PermutationsGroup
All Implemented Interfaces:
Serializable, org.javagen.agile.core.context.ContextHolder, org.javagen.agile.core.model.Model

public class PermutationsGroup
extends org.javagen.agile.core.model.AbstractModel

A permutation group represents a specific set of test properties and a set of values for those properties that are to be tested. Use permutation groups when a test condition can't be represented using a single property. A good example of a is a set of database properties:

 <permutationsGroup name="Database tests">
   <permutationSet name="Test on Oracle">
     <context>
       <entry key="dbUrl"><value>jdbc:oracle:thin:(HOST=dev03.javagen.com)</value></entry>
       <entry key="username"><value>tiger</value></entry>
     </context>
   </permutationSet>
   <permutationSet name="Test on HSQL">
     <context>
       <entry key="dbUrl"><value>jdbc:hsqldb:hsql://localhost/testdb</value></entry>
       <entry key="username"><value>sa</value></entry>
     </context>
   </permutationSet>
 </permutationsGroup>

Author:
Richard Easterling
See Also:
Serialized Form

Field Summary
static String DEFAULT_MODEL_TYPE
           
 
Fields inherited from class org.javagen.agile.core.model.AbstractModel
childModels, context, id, modelType, name, parentModel
 
Constructor Summary
PermutationsGroup()
           
PermutationsGroup(String name)
           
 
Method Summary
 void addPermutationSet(PermutationSet set)
           
 List<PermutationSet> getPermutationSets()
          Returns child PermutationSet instances.
 
Methods inherited from class org.javagen.agile.core.model.AbstractModel
addChildModel, allOwnedModels, copyTo, equals, get, getChildModels, getContext, getId, getModelType, getName, getParentModel, lookupChildByName, put, setChildModels, setContext, setId, setModelType, setName, setParentModel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_TYPE

public static final String DEFAULT_MODEL_TYPE
See Also:
Constant Field Values
Constructor Detail

PermutationsGroup

public PermutationsGroup()

PermutationsGroup

public PermutationsGroup(String name)
Method Detail

addPermutationSet

public void addPermutationSet(PermutationSet set)

getPermutationSets

public List<PermutationSet> getPermutationSets()
Returns child PermutationSet instances.



Copyright 2006-2006 Outsource Cafe Inc.. All Rights Reserved.