Class Envelope


  • public class Envelope
    extends Object
    When removing a field, replace it with reserved, rather than deleting the line. When adding a field, add it to the end and increment the number by one. See https://developers.google.com/protocol-buffers/docs/proto#updating for details * All the messages that are passed between different components/processes are Envelope messages.
    • Method Detail

      • getAttachment

        public Attachment getAttachment()
        //// Attachments (parse errors, execution errors, screenshots, links...) * An attachment represents any kind of data associated with a line in a [Source](#io.cucumber.messages.Source) file. It can be used for: * Syntax errors during parse time * Screenshots captured and attached during execution * Logs captured and attached during execution It is not to be used for runtime errors raised/thrown during execution. This is captured in `TestResult`.
      • setAttachment

        public void setAttachment​(Attachment attachment)
        //// Attachments (parse errors, execution errors, screenshots, links...) * An attachment represents any kind of data associated with a line in a [Source](#io.cucumber.messages.Source) file. It can be used for: * Syntax errors during parse time * Screenshots captured and attached during execution * Logs captured and attached during execution It is not to be used for runtime errors raised/thrown during execution. This is captured in `TestResult`.
      • getGherkinDocument

        public GherkinDocument getGherkinDocument()
        * The [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) of a Gherkin document. Cucumber implementations should *not* depend on `GherkinDocument` or any of its children for execution - use [Pickle](#io.cucumber.messages.Pickle) instead. The only consumers of `GherkinDocument` should only be formatters that produce "rich" output, resembling the original Gherkin document.
      • setGherkinDocument

        public void setGherkinDocument​(GherkinDocument gherkinDocument)
        * The [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) of a Gherkin document. Cucumber implementations should *not* depend on `GherkinDocument` or any of its children for execution - use [Pickle](#io.cucumber.messages.Pickle) instead. The only consumers of `GherkinDocument` should only be formatters that produce "rich" output, resembling the original Gherkin document.
      • getHook

        public Hook getHook()
      • setHook

        public void setHook​(Hook hook)
      • getMeta

        public Meta getMeta()
        * This message contains meta information about the environment. Consumers can use this for various purposes.
      • setMeta

        public void setMeta​(Meta meta)
        * This message contains meta information about the environment. Consumers can use this for various purposes.
      • setParameterType

        public void setParameterType​(ParameterType parameterType)
      • getParseError

        public ParseError getParseError()
      • setParseError

        public void setParseError​(ParseError parseError)
      • getPickle

        public Pickle getPickle()
        //// Pickles * A `Pickle` represents a template for a `TestCase`. It is typically derived from another format, such as [GherkinDocument](#io.cucumber.messages.GherkinDocument). In the future a `Pickle` may be derived from other formats such as Markdown or Excel files. By making `Pickle` the main data structure Cucumber uses for execution, the implementation of Cucumber itself becomes simpler, as it doesn't have to deal with the complex structure of a [GherkinDocument](#io.cucumber.messages.GherkinDocument). Each `PickleStep` of a `Pickle` is matched with a `StepDefinition` to create a `TestCase`
      • setPickle

        public void setPickle​(Pickle pickle)
        //// Pickles * A `Pickle` represents a template for a `TestCase`. It is typically derived from another format, such as [GherkinDocument](#io.cucumber.messages.GherkinDocument). In the future a `Pickle` may be derived from other formats such as Markdown or Excel files. By making `Pickle` the main data structure Cucumber uses for execution, the implementation of Cucumber itself becomes simpler, as it doesn't have to deal with the complex structure of a [GherkinDocument](#io.cucumber.messages.GherkinDocument). Each `PickleStep` of a `Pickle` is matched with a `StepDefinition` to create a `TestCase`
      • getSource

        public Source getSource()
        //// Source * A source file, typically a Gherkin document or Java/Ruby/JavaScript source code
      • setSource

        public void setSource​(Source source)
        //// Source * A source file, typically a Gherkin document or Java/Ruby/JavaScript source code
      • setStepDefinition

        public void setStepDefinition​(StepDefinition stepDefinition)
      • getTestCase

        public TestCase getTestCase()
        //// TestCases * A `TestCase` contains a sequence of `TestStep`s.
      • setTestCase

        public void setTestCase​(TestCase testCase)
        //// TestCases * A `TestCase` contains a sequence of `TestStep`s.
      • setTestCaseFinished

        public void setTestCaseFinished​(TestCaseFinished testCaseFinished)
      • setTestCaseStarted

        public void setTestCaseStarted​(TestCaseStarted testCaseStarted)
      • setTestRunFinished

        public void setTestRunFinished​(TestRunFinished testRunFinished)
      • setTestRunStarted

        public void setTestRunStarted​(TestRunStarted testRunStarted)
      • setTestStepFinished

        public void setTestStepFinished​(TestStepFinished testStepFinished)
      • setTestStepStarted

        public void setTestStepStarted​(TestStepStarted testStepStarted)
      • setUndefinedParameterType

        public void setUndefinedParameterType​(UndefinedParameterType undefinedParameterType)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object