PSEK-Fitnesse-Fixtures
2.3.x (JDK11)
|
A fixture to give FitNesse some form of conditional execution, useful in generic scenario's. More...
Public Member Functions | |
LookupFixture () | |
Instantiates a new Lookup fixture. More... | |
void | addEntry (String label, String value) |
Add entry. More... | |
void | clearEntries () |
Clear entries. More... | |
String | findEntry (String label) |
Find entry string. More... | |
void | setDefaultIfNotFound (String value) |
Specifies the default that will be returned if the specified key in findEntry(key) is not found. More... | |
Private Attributes | |
String | defaultvalue = null |
Map< String, String > | entries = new HashMap<>() |
A fixture to give FitNesse some form of conditional execution, useful in generic scenario's.
|scenario |use button and check message _|button | |push fixture | |start |Lookup Fixture | |addEntry; |continue |Continue to the next page| |addEntry; |abort |Abort action and return | |$message= |findEntry; |@button | |pop fixture | |click; |id=@button | |verifyText;|id=message |$message | !|script | |note |navigate to a webpage with the buttons| |use button and check message;|abort | |note |navigate back to the webpage | |use button and check message;|continue |
Created by Pascal on 20-11-2015.
Definition at line 27 of file LookupFixture.java.
nl.psek.fitnesse.fixtures.general.util.LookupFixture.LookupFixture | ( | ) |
Instantiates a new Lookup fixture.
Definition at line 36 of file LookupFixture.java.
void nl.psek.fitnesse.fixtures.general.util.LookupFixture.addEntry | ( | String | label, |
String | value | ||
) |
Add entry.
label | the label |
value | the value |
Definition at line 56 of file LookupFixture.java.
void nl.psek.fitnesse.fixtures.general.util.LookupFixture.clearEntries | ( | ) |
Clear entries.
Definition at line 80 of file LookupFixture.java.
String nl.psek.fitnesse.fixtures.general.util.LookupFixture.findEntry | ( | String | label | ) |
Find entry string.
label | the label |
Definition at line 66 of file LookupFixture.java.
void nl.psek.fitnesse.fixtures.general.util.LookupFixture.setDefaultIfNotFound | ( | String | value | ) |
Specifies the default that will be returned if the specified key in findEntry(key) is not found.
value | the value |
Definition at line 45 of file LookupFixture.java.
|
private |
Definition at line 30 of file LookupFixture.java.
|
private |
Definition at line 29 of file LookupFixture.java.