|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.model.Story
public class Story
Represents a given user story. Used to record test results and so on.
| Constructor Summary | |
|---|---|
protected |
Story(Class<?> userStoryClass)
|
protected |
Story(String qualifiedStoryClassName,
String storyName,
String qualifiedFeatureClassName,
String featureName,
String path)
|
| Method Summary | |
|---|---|
static Story |
called(String storyName)
|
boolean |
equals(Object obj)
|
static Story |
from(Class<?> userStoryClass)
Obtain a story instance from a given story class. |
ApplicationFeature |
getFeature()
|
Class<?> |
getFeatureClass()
What feature does this story belong to? |
String |
getFeatureId()
|
String |
getFeatureName()
|
String |
getId()
|
String |
getName()
Each story has a descriptive name. |
String |
getPath()
|
String |
getReportName()
|
String |
getReportName(ReportType type)
Find the name of the report for this story for the specified report type (XML, HTML,...). |
Class<?> |
getUserStoryClass()
The underlying user story class that represents this story. |
int |
hashCode()
|
static Class<?> |
testedInTestCase(Class<?> testClass)
Returns the class representing the story that is tested by a given test class This is indicated by the Story annotation. |
static Story |
withId(String storyId,
String storyName)
Create a story using a full class name as an id. |
static Story |
withId(String storyId,
String storyName,
String featureClassName,
String featureName)
|
static Story |
withIdAndPath(String storyId,
String storyName,
String storyPath)
|
static Story |
withIdAndPathAndFeature(String storyId,
String storyName,
String storyPath,
String featureClassName,
String featureName)
|
Story |
withNarrative(String narrative)
|
Story |
withPath(String storyPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Story(Class<?> userStoryClass)
protected Story(String qualifiedStoryClassName,
String storyName,
String qualifiedFeatureClassName,
String featureName,
String path)
| Method Detail |
|---|
public String getId()
public static Story from(Class<?> userStoryClass)
public static Story withId(String storyId,
String storyName)
public Story withNarrative(String narrative)
public static Story withIdAndPath(String storyId,
String storyName,
String storyPath)
public static Story called(String storyName)
public static Story withId(String storyId,
String storyName,
String featureClassName,
String featureName)
public static Story withIdAndPathAndFeature(String storyId,
String storyName,
String storyPath,
String featureClassName,
String featureName)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic Class<?> getUserStoryClass()
public Class<?> getFeatureClass()
public static Class<?> testedInTestCase(Class<?> testClass)
public String getName()
public String getFeatureName()
public String getReportName(ReportType type)
public String getReportName()
public String getFeatureId()
public ApplicationFeature getFeature()
public String getPath()
public Story withPath(String storyPath)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||