All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Resources.FitNesseRoot.PlugIns.SshFixture.UserGuide.Options.DefineOptions.DecisionTable.wiki Maven / Gradle / Ivy

---
Test
---
!1 !-SshFixture-! option definition in decision table
In this page is described how to define options in !-SshFixture-! decision tables. When a decision table is used, !-SshFixture-! options must be defined after endpoint.

Note: the dump-options command called in the following tests is available only for the mocked host: ssh-fitnesse.dev.

|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

!2 Define flag/boolean option in table header
Single option (without value) can be used for flag/boolean options (like [[PREFORMATTED][ code
{{{!-
|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

|ssh client            |foo/[email protected]|MY_OPTION|
|command               |output?                           |
|dump-options MY_OPTION|MY_OPTION                         |

!define TEST_SYSTEM {slim}
!path ${jsch.jar.path}
!path ${sshFixture.jar.path}
-!}}}
Note: if !-SshFixture-! is not installed as a plugin, remember to set or replace properties: jsch.jar.path, sshFixture.jar.path; with actual paths.

Note: In this example the connection was built via username and password, that are set in plain text in table header. Click [[here][ code
{{{!-
|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

|ssh client            |foo/[email protected]|MY_OPTION=my-value|
|command               |output?                                    |
|dump-options MY_OPTION|MY_OPTION=my-value                         |

!define TEST_SYSTEM {slim}
!path ${jsch.jar.path}
!path ${sshFixture.jar.path}
-!}}}
Note: if !-SshFixture-! is not installed as a plugin, remember to set or replace properties: jsch.jar.path, sshFixture.jar.path; with actual paths.

Note: In this example the connection was built via username and password, that are set in plain text in table header. Click [[here][ code
{{{!-
|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

|ssh client            |foo/[email protected]|MY_OPTION="my value"|
|command               |output?                                      |
|dump-options MY_OPTION|MY_OPTION=my value                           |

!define TEST_SYSTEM {slim}
!path ${jsch.jar.path}
!path ${sshFixture.jar.path}
-!}}}
Note: if !-SshFixture-! is not installed as a plugin, remember to set or replace properties: jsch.jar.path, sshFixture.jar.path; with actual paths.

Note: In this example the connection was built via username and password, that are set in plain text in table header. Click [[here][ code
{{{!-
|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

|ssh client              |foo/[email protected]|MY_OPTION_1 MY_OPTION_2=my-value MY_OPTION_3="my value"|
|command                 |output?                                                                         |
|dump-options MY_OPTION_1|MY_OPTION_1                                                                     |
|dump-options MY_OPTION_2|MY_OPTION_2=my-value                                                            |
|dump-options MY_OPTION_3|MY_OPTION_3=my value                                                            |

!define TEST_SYSTEM {slim}
!path ${jsch.jar.path}
!path ${sshFixture.jar.path}
-!}}}
Note: if !-SshFixture-! is not installed as a plugin, remember to set or replace properties: jsch.jar.path, sshFixture.jar.path; with actual paths.

Note: In this example the connection was built via username and password, that are set in plain text in table header. Click [[here][




© 2015 - 2024 Weber Informatics LLC | Privacy Policy