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

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

---
Test
---
!2 Create your first test
To create your first test, retrieve your ssh server endpoint and credential, then copy the following table and replace foo/[email protected] with: !-[username]/[password]@[hostname]:[port]-!. If your connection port is 22 (the default one) you can omit it.

|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      |

{{{!-
|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      |

!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