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

Resources.FitNesseRoot.PlugIns.SshFixture.UserGuide.SshTestCreation.DecisionTableMode.wiki Maven / Gradle / Ivy

---
Test
---
!2 Decision Table Mode
Decision table mode is the simplest way to create test for !-SshFixture-! in fact, the main example, is the same described in CreateYourFirstTest page. In this page, more details are described to explain what happen under the hood.

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

The endpoint string (foo/[email protected]) must be defined in table header (if not defined via [[VM options][&2                |       |foo-bar|0        |
|exit 123                         |       |       |123      |
|echo foo; echo bar 1>&2; exit 234|foo    |bar    |234      |

|ssh client  |foo/[email protected]|
|command     |output?                 |
|echo foo-bar|foo-bar                 |

|ssh client       |foo/[email protected]|
|command          |error?                  |
|echo foo-bar 1>&2|foo-bar                 |

|ssh client|foo/[email protected]|
|command   |exitCode?               |
|exit 123  |123                     |

!***> code
{{{!-
|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

|ssh client                       |foo/[email protected] |
|command                          |output?|error? |exitCode?|
|echo foo-bar                     |foo-bar|       |0        |
|echo foo-bar 1>&2                |       |foo-bar|0        |
|exit 123                         |       |       |123      |
|echo foo; echo bar 1>&2; exit 234|foo    |bar    |234      |

|ssh client  |foo/[email protected]|
|command     |output?                 |
|echo foo-bar|foo-bar                 |

|ssh client       |foo/[email protected]|
|command          |error?                  |
|echo foo-bar 1>&2|foo-bar                 |

|ssh client|foo/[email protected]|
|command   |exitCode?               |
|exit 123  |123                     |

!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