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

Resources.FitNesseRoot.PlugIns.RadiusFixture.UserGuide.Authentication.Scenario.ScenarioTable.wiki Maven / Gradle / Ivy

The newest version!
---
Test
---
!***> definitions
!define REQUEST { {{{Access-Request, ID 0
Framed-Protocol: PPP
User-Name: anon
Custom-String: my-custom-string}}} }

!define RESPONSE { {{{Access-Accept, ID 0}}} }
*!
!2 Scenario Table RADIUS Fixture Acceptance Tests
Scenario Tables are useful to build well-formed RADIUS Fixture Acceptance Tests, especially for:
 * Dictionary definition/import
 * Endpoint definition/import
 * Base request definition/import
 * Script Flow Mode

!3 RADIUS Dictionary Scenario
Scenarios can be useful for reusable RADIUS Dictionary definitions

|scenario         |load auth dictionary|
|extend dictionary|${CUSTOM_DICTIONARY}|

|script               |radius client fixture                          |
|load auth dictionary                                                 |
|set host             |${RADIUS_HOST}                                 |
|set auth port        |${RADIUS_AUTH_PORT}                            |
|set shared secret    |${RADIUS_SHARED_SECRET}                        |
|set request attribute|Framed-Protocol    |with value|PPP             |
|set request attribute|User-Name          |with value|anon            |
|set request attribute|Custom-String      |with value|my-custom-string|
|check                |send authentication|Access-Accept              |
|check                |request            |${REQUEST}                 |
|check                |response           |${RESPONSE}                |
|check                |response id        |0                          |

!3 RADIUS Endpoint Scenario
Scenarios can be useful for reusable RADIUS Endpoint definitions

|scenario         |load auth endpoint scenario|
|load auth dictionary                         |
|set host         |${RADIUS_HOST}             |
|set auth port    |${RADIUS_AUTH_PORT}        |
|set shared secret|${RADIUS_SHARED_SECRET}    |

|script               |radius client fixture                          |
|load auth endpoint scenario                                          |
|set request attribute|Framed-Protocol    |with value|PPP             |
|set request attribute|User-Name          |with value|anon            |
|set request attribute|Custom-String      |with value|my-custom-string|
|check                |send authentication|Access-Accept              |
|check                |request            |${REQUEST}                 |
|check                |response           |${RESPONSE}                |
|check                |response id        |0                          |

!3 RADIUS Base Request Scenario
Scenarios can be useful for reusable RADIUS Base Request definitions

|scenario             |load auth base request        |
|load auth endpoint scenario                         |
|set request attribute|Framed-Protocol|with value|PPP|

|script               |radius client fixture                          |
|load auth base request                                               |
|set request attribute|User-Name          |with value|anon            |
|set request attribute|Custom-String      |with value|my-custom-string|
|check                |send authentication|Access-Accept              |
|check                |request            |${REQUEST}                 |
|check                |response           |${RESPONSE}                |
|check                |response id        |0                          |

!3 RADIUS Base Request Scenario with table - Script Flow Mode
Scenarios can be useful for set RADIUS input parameters and get output in table mode

|scenario             |radius table request _|requestId,responseId?      |
|load auth base request                                                  |
|set request attribute|User-Name             |with value|anon            |
|set request attribute|Custom-String         |with value|my-custom-string|
|set request id       |@requestId                                        |
|check                |send authentication   |Access-Accept              |
|$responseId=         |response id                                       |

|script|radius client fixture|

|radius table request |
|requestId|responseId?|
|101      |101        |
|209      |209        |




© 2015 - 2025 Weber Informatics LLC | Privacy Policy