Class TestStartInfo


  • public class TestStartInfo
    extends Object
    This class keeps some attributes related to the started test.
    Since:
    4.5
    • Constructor Detail

      • TestStartInfo

        public TestStartInfo​(boolean captureStandardOutput,
                             Long startTimestamp,
                             String locationHint)
        Parameters:
        captureStandardOutput - true if TeamCity server should automatically collect test output between testStart and testFinished messages on the server side
        startTimestamp - actual timestamp when test was started, can be passed via service message (or it will be taken from test start block timestamp instead)
        locationHint - an optional hint for test opening in IDE, can be passed by particular test runner and should be with IDE plugin implementation
    • Method Detail

      • isCaptureStandardOutput

        public boolean isCaptureStandardOutput()
        Returns:
        true if TeamCity server should automatically collect test output between testStart and testFinished messages
      • getStartTimestamp

        public Long getStartTimestamp()
        Returns:
        explicitly passed test start timestamp (or it will be taken from test start block timestamp instead)
      • getLocationHint

        public String getLocationHint()
        Returns:
        an optional hint for test opening in IDE, can be passed by particular test runner and should be with IDE plugin implementation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object