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

Resources.FitNesseRoot.PlugIns.SshFixture.UserGuide.Options.OutputOptions.Replace.wiki Maven / Gradle / Ivy

---
Test
---
!1 !-SshFixture-! regex replace
Replace matching regexes in fixture outputs. Replace is a list option so, each new definition will be added to the table regexes list.

Note: like every other option, can be defined in multiple ways, as shown in [[!-DefineOptions-!][ code
{{{!-
|import                               |
|com.github.gun88.fitnesse.fixture.ssh|

|script    |ssh client|ssh-fitnesse.dev    |
|open connection                           |
|execute   |echo fooabar                   |
|check     |output    |fooabar             |
|add option|REPLACE   |with value|/foo/bar/|
|execute   |echo foobar                    |
|check     |output    |barbar              |
|close connection                          |

!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][&2        |
|check     |output    |barfoo                 |
|check     |error     |bar                    |
|close connection                             |

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

|script    |ssh client|ssh-fitnesse.dev       |
|open connection                              |
|add option|REPLACE   |with value|/bar/comodo/|
|add option|REPLACE   |with value|/foo/bar/   |
|add option|REPLACE   |with value|/comodo/foo/|
|execute   |echo foobar; echo foo 1>&2        |
|check     |output    |barfoo                 |
|check     |error     |bar                    |
|close connection                             |

!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