Class SshVerifications<SELF extends SshVerifications<SELF>>

  • Type Parameters:
    SELF - the type of the subclass
    All Implemented Interfaces:
    dev.aherscu.qa.jgiven.commons.model.ScenarioType<SshScenarioType>

    @ThreadSafe
    public class SshVerifications<SELF extends SshVerifications<SELF>>
    extends dev.aherscu.qa.jgiven.commons.steps.GenericVerifications<SshScenarioType,​SELF>
    Generic SSH configuration verifications. Verifications on the response retrieved by previous action.
    Author:
    aherscu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ThreadLocal<Integer> exitStatus
      The exit status of last SSH batch command.
      • Fields inherited from class dev.aherscu.qa.jgiven.commons.utils.StageEx

        assertElementTimer, ATTACHEMENT_TRANSFORMER, clickTimer, currentStep, locateTimer, pollDelay, pollTimeout, retryPolicy, scrollIntoViewTimer, sendKeysTimer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SELF the_exit_status_is​(int expected)
      Verifies that the exit status of last executed SSH batch command is as expected.
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.steps.GenericVerifications

        beforeScenarioConfigurePolling, eventually, eventually, eventually_assert_that, should_succeed, the_file_$_should_contain, the_file_$_should_match, the_JSON_file_$_should_contain
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.utils.StageEx

        alert, attach, attachScreenshot, attachScreenshot, attachScreenshot, context, element, elements, ensureElements, retry, safely, scrollIntoView
      • Methods inherited from class com.tngtech.jgiven.Stage

        and, but, comment, given, then, when, with
      • Methods inherited from class com.tngtech.jgiven.base.StageBase

        $, $, self
    • Field Detail

      • exitStatus

        @ExpectedScenarioState
        protected final ThreadLocal<Integer> exitStatus
        The exit status of last SSH batch command.
    • Constructor Detail

      • SshVerifications

        public SshVerifications()
    • Method Detail

      • the_exit_status_is

        public SELF the_exit_status_is​(int expected)
        Verifies that the exit status of last executed SSH batch command is as expected.
        Parameters:
        expected - the expected exit status
        Returns:
        StageBase.self()