es.upm.dit.gsi.beast.reader.system
Class CreateSystemCaseManager

java.lang.Object
  extended by es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager

public class CreateSystemCaseManager
extends Object

Project: beast File: es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.java Main class that generates the CaseManager.java File to run the System Tests. Grupo de Sistemas Inteligentes Departamento de Ingeniería de Sistemas Telemáticos Universidad Politécnica de Madrid (UPM)

Version:
0.1
Author:
Jorge Solitario, Alberto Mardomingo, alvarocarrera

Constructor Summary
CreateSystemCaseManager()
           
 
Method Summary
static void addStory(File caseManager, String storyName, String testPath, String user, String feature, String benefit)
          The second method to write caseManager.
static void closeSystemCaseManager(File caseManager)
          Method to close the file caseManager.
static File startSystemCaseManager(String package_path, String dest_dir)
          This method creates CaseManager file and writes on it: the package, the imports, its comments and the class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSystemCaseManager

public CreateSystemCaseManager()
Method Detail

startSystemCaseManager

public static File startSystemCaseManager(String package_path,
                                          String dest_dir)
                                   throws BeastException
This method creates CaseManager file and writes on it: the package, the imports, its comments and the class name.

Parameters:
package_path - as es.upm.dit...
dest_dir - as src/main/java
Returns:
the File with its first part written
Throws:
BeastException

addStory

public static void addStory(File caseManager,
                            String storyName,
                            String testPath,
                            String user,
                            String feature,
                            String benefit)
                     throws BeastException
The second method to write caseManager. Its task is to write the call to the story to be run.

Parameters:
caseManager - the file where the test must be written
storyName - the name of the story
test_path - the path where the story can be found
user - the user requesting the story
feature - the feature requested by the user
benefit - the benefit provided by the feature
Throws:
BeastException

closeSystemCaseManager

public static void closeSystemCaseManager(File caseManager)
Method to close the file caseManager. It is called just one time, by Reader.java.

Parameters:
caseManager -


Copyright © 2014 Grupo de Sistemas Inteligentes - Universidad Politécnica de Madrid. All Rights Reserved.