com.appfoundation.automation.framework.gwen.business
Class TestAssembler

java.lang.Object
  extended by com.appfoundation.automation.framework.gwen.business.TestAssembler

public class TestAssembler
extends java.lang.Object

TestAssembler

The purpose of this class is take a an Assembled File of Assembled Action, and to create a Test Suite Definition. A Test Suite Definition is a collection of Test Case Definitions, which contain Action Definitions. The primary responsibility it to make sure the order and placement of user defined actions are correct.

Author:
john.valentino

Constructor Summary
TestAssembler()
           
 
Method Summary
protected  TestSuiteDefinition assemble(java.lang.String name, java.util.List<AssembledAction> assembledActions)
          Assembles a suite based on the given list of actions.
protected  void markError(TestSuiteDefinition suite, ActionDefinition definition, int index, java.lang.String message)
          Marks the given Action Definition with an error, and notifies the containing test suite.
 TestSuiteDefinition process(AssembledFile file)
          Create a Test Suite Definition, and stores any errors that are encountered during assembly.
protected  void validateActionsAndConstructTests(TestSuiteDefinition suite)
          Handles populating the given suite with Test Cases, and stores any errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAssembler

public TestAssembler()
Method Detail

process

public TestSuiteDefinition process(AssembledFile file)
Create a Test Suite Definition, and stores any errors that are encountered during assembly.

Parameters:
file -
Returns:

assemble

protected TestSuiteDefinition assemble(java.lang.String name,
                                       java.util.List<AssembledAction> assembledActions)
Assembles a suite based on the given list of actions.

Parameters:
name -
assembledActions -
Returns:

validateActionsAndConstructTests

protected void validateActionsAndConstructTests(TestSuiteDefinition suite)
Handles populating the given suite with Test Cases, and stores any errors.

Parameters:
suite -

markError

protected void markError(TestSuiteDefinition suite,
                         ActionDefinition definition,
                         int index,
                         java.lang.String message)
Marks the given Action Definition with an error, and notifies the containing test suite.

Parameters:
suite -
definition -
index -
message -