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

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

The newest version!
---
Test
---
!***> definitions
!define REQUEST { {{{Accounting-Request, ID 0
Acct-Session-Id: acct-001
User-Name: fooBar00
Custom-String: my-custom-string}}} }

!define RESPONSE { {{{Accounting-Response, 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 acct dictionary|
|extend dictionary|${CUSTOM_DICTIONARY}|

|script               |radius client fixture                      |
|load acct dictionary                                             |
|set host             |${RADIUS_HOST}                             |
|set acct port        |${RADIUS_ACCT_PORT}                        |
|set shared secret    |${RADIUS_SHARED_SECRET}                    |
|set request attribute|Acct-Session-Id|with value|acct-001        |
|set request attribute|User-Name      |with value|fooBar00        |
|set request attribute|Custom-String  |with value|my-custom-string|
|check                |send accounting|Accounting-Response        |
|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 acct endpoint scenario|
|load acct dictionary                         |
|set host         |${RADIUS_HOST}             |
|set acct port    |${RADIUS_ACCT_PORT}        |
|set shared secret|${RADIUS_SHARED_SECRET}    |

|script               |radius client fixture                      |
|load acct endpoint scenario                                      |
|set request attribute|Acct-Session-Id|with value|acct-001        |
|set request attribute|User-Name      |with value|fooBar00        |
|set request attribute|Custom-String  |with value|my-custom-string|
|check                |send accounting|Accounting-Response        |
|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 acct base request             |
|load acct endpoint scenario                              |
|set request attribute|Acct-Session-Id|with value|acct-001|

|script               |radius client fixture                      |
|load acct base request                                           |
|set request attribute|User-Name      |with value|fooBar00        |
|set request attribute|Custom-String  |with value|my-custom-string|
|check                |send accounting|Accounting-Response        |
|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 acct table request _|requestId,responseId?      |
|load acct base request                                                       |
|set request attribute|User-Name                  |with value|fooBar00        |
|set request attribute|Custom-String              |with value|my-custom-string|
|set request id       |@requestId                                             |
|check                |send accounting            |Accounting-Response        |
|$responseId=         |response id                                            |

|script|radius client fixture|

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy