net.thucydides.plugins.jira
Class JiraListener

Package class diagram package JiraListener
java.lang.Object
  extended by net.thucydides.plugins.jira.JiraListener
All Implemented Interfaces:
net.thucydides.core.steps.StepListener

public class JiraListener
extends Object
implements net.thucydides.core.steps.StepListener

Updates JIRA issues referenced in a story with a link to the corresponding story report.


Field Summary
 net.thucydides.core.model.Story currentStory
           
 
Constructor Summary
JiraListener()
           
JiraListener(IssueTracker issueTracker, net.thucydides.core.util.EnvironmentVariables environmentVariables, WorkflowLoader loader)
           
 
Method Summary
 void assumptionViolated(String s)
           
 void exampleFinished()
           
 void exampleStarted()
           
 void exampleStarted(Map<String,String> stringStringMap)
           
 String formatTestResultsLink(String reportUrl, String reportName)
           
protected  IssueTracker getIssueTracker()
           
protected  Workflow getWorkflow()
           
 void lastStepFailed(net.thucydides.core.steps.StepFailure stepFailure)
           
 void notifyScreenChange()
           
protected  boolean shouldUpdateIssues()
           
protected  boolean shouldUpdateWorkflow()
           
 void skippedStepStarted(net.thucydides.core.steps.ExecutedStepDescription description)
           
 void stepFailed(net.thucydides.core.steps.StepFailure stepFailure)
           
 void stepFinished()
           
 void stepIgnored()
           
 void stepIgnored(String s)
           
 void stepPending()
           
 void stepPending(String s)
           
 void stepStarted(net.thucydides.core.steps.ExecutedStepDescription executedStepDescription)
           
 void testFailed(net.thucydides.core.model.TestOutcome testOutcome, Throwable cause)
           
 void testFinished(net.thucydides.core.model.TestOutcome result)
           
 void testIgnored()
           
 void testRetried()
           
 void testStarted(String testName)
           
 void testSuiteFinished()
           
 void testSuiteStarted(Class<?> testCase)
           
 void testSuiteStarted(net.thucydides.core.model.Story story)
           
 void useExamplesFrom(net.thucydides.core.model.DataTable dataTable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentStory

public net.thucydides.core.model.Story currentStory
Constructor Detail

JiraListener

public JiraListener(IssueTracker issueTracker,
                    net.thucydides.core.util.EnvironmentVariables environmentVariables,
                    WorkflowLoader loader)

JiraListener

public JiraListener()
Method Detail

shouldUpdateIssues

protected boolean shouldUpdateIssues()

shouldUpdateWorkflow

protected boolean shouldUpdateWorkflow()

getIssueTracker

protected IssueTracker getIssueTracker()

getWorkflow

protected Workflow getWorkflow()

testSuiteStarted

public void testSuiteStarted(Class<?> testCase)
Specified by:
testSuiteStarted in interface net.thucydides.core.steps.StepListener

testSuiteStarted

public void testSuiteStarted(net.thucydides.core.model.Story story)
Specified by:
testSuiteStarted in interface net.thucydides.core.steps.StepListener

testStarted

public void testStarted(String testName)
Specified by:
testStarted in interface net.thucydides.core.steps.StepListener

testFinished

public void testFinished(net.thucydides.core.model.TestOutcome result)
Specified by:
testFinished in interface net.thucydides.core.steps.StepListener

testRetried

public void testRetried()
Specified by:
testRetried in interface net.thucydides.core.steps.StepListener

testSuiteFinished

public void testSuiteFinished()
Specified by:
testSuiteFinished in interface net.thucydides.core.steps.StepListener

formatTestResultsLink

public String formatTestResultsLink(String reportUrl,
                                    String reportName)

stepStarted

public void stepStarted(net.thucydides.core.steps.ExecutedStepDescription executedStepDescription)
Specified by:
stepStarted in interface net.thucydides.core.steps.StepListener

skippedStepStarted

public void skippedStepStarted(net.thucydides.core.steps.ExecutedStepDescription description)
Specified by:
skippedStepStarted in interface net.thucydides.core.steps.StepListener

stepFailed

public void stepFailed(net.thucydides.core.steps.StepFailure stepFailure)
Specified by:
stepFailed in interface net.thucydides.core.steps.StepListener

lastStepFailed

public void lastStepFailed(net.thucydides.core.steps.StepFailure stepFailure)
Specified by:
lastStepFailed in interface net.thucydides.core.steps.StepListener

stepIgnored

public void stepIgnored()
Specified by:
stepIgnored in interface net.thucydides.core.steps.StepListener

stepIgnored

public void stepIgnored(String s)

stepPending

public void stepPending()
Specified by:
stepPending in interface net.thucydides.core.steps.StepListener

stepPending

public void stepPending(String s)
Specified by:
stepPending in interface net.thucydides.core.steps.StepListener

assumptionViolated

public void assumptionViolated(String s)
Specified by:
assumptionViolated in interface net.thucydides.core.steps.StepListener

stepFinished

public void stepFinished()
Specified by:
stepFinished in interface net.thucydides.core.steps.StepListener

testFailed

public void testFailed(net.thucydides.core.model.TestOutcome testOutcome,
                       Throwable cause)
Specified by:
testFailed in interface net.thucydides.core.steps.StepListener

testIgnored

public void testIgnored()
Specified by:
testIgnored in interface net.thucydides.core.steps.StepListener

notifyScreenChange

public void notifyScreenChange()
Specified by:
notifyScreenChange in interface net.thucydides.core.steps.StepListener

useExamplesFrom

public void useExamplesFrom(net.thucydides.core.model.DataTable dataTable)
Specified by:
useExamplesFrom in interface net.thucydides.core.steps.StepListener

exampleStarted

public void exampleStarted(Map<String,String> stringStringMap)
Specified by:
exampleStarted in interface net.thucydides.core.steps.StepListener

exampleStarted

public void exampleStarted()

exampleFinished

public void exampleFinished()
Specified by:
exampleFinished in interface net.thucydides.core.steps.StepListener


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.