
Resources.FitNesseRoot.PlugIns.RadiusFixture.UserGuide.RadiusTestCreation.DecisionTableColumnNames.wiki Maven / Gradle / Ivy
The newest version!
---
Test
---
!***> definitions
!define MAP {!{host: ${RADIUS_HOST}, acctPort: ${RADIUS_ACCT_PORT}, sharedSecret: ${RADIUS_SHARED_SECRET}, dictionary: ATTRIBUTE My-Attribute 250 string, requestId: 123, Acct-Status-Type: Start, Callback-Id: multi-reply, packetType: Accounting}}
!define REQUEST_1 { {{{Accounting-Request, ID 0
Acct-Status-Type: Start}}} }
!define REQUEST_2 { {{{Accounting-Request, ID 0}}} }
!define REQUEST_3 { {{{Accounting-Request, ID 123
Acct-Status-Type: Start
Callback-Id: multi-reply}}} }
!define RESPONSE_3 { {{{Accounting-Response, ID 123
Reply-Message: Accounting Done!
Reply-Message: event: Start}}} }
*!
!2 Decision Table Column Names
In this page are listed Table column names to access RADIUS communication input and output.
!3 Decision Table Input
Here are listed available names for Radius Client Fixture tables '''input'''.
|Comment |
|Name |Type |Description |Default |
|host |string |Server hostname or IP address |127.0.0.1 |
|acctPort |number |Accounting messages port number |1812 |
|authPort |number |Authentication messages port number |1813 |
|genericPort |number |Generic messages port number |1813 |
|sharedSecret |string |RADIUS server/client shared-secret |sharedSecret |
|socketTimeout |number |Socket timeout interval expressed in ms |3000 |
|nullLabel |string |String value parsed as null |null |
|maxRetry |number |Maximum retries on communication fail |3 |
|requestId |number |RADIUS request identifier |0 |
|requestAuthenticator|octet |Authenticator bytes for PAP authentication protocol |randomly generated|
|packetType |string/number|RADIUS packet type (Accounting, Authentication or others)|N/A |
|dictionary |string |Dictionary string to extend default one |N/A |
|authPapPassword |string |Password for PAP authentication protocol |N/A |
|authChapPassword |string |Password for CHAP authentication protocol |N/A |
Column names are case insensitive and any non-alphanumerical character is removed. For example, following names are equals:
* !-sharedSecret-!
* !-shared_secret-!
* !-shared secret-!
* !-shared-secret-!
* !-SHARED_SECRET-!
* !-SharedSecret-!
* !-SHARED SECRET-!
Every other column name is processed as RADIUS attribute (name must exist in dictionary). Here is an example for Endpoint definition, dictionary extension and parameters set:
|ddt :radius client fixture |
|host |acct port |shared secret |socket timeout|max retry|dictionary |null label|packet type|Acct-Status-Type|request? |
|${RADIUS_HOST}|${RADIUS_ACCT_PORT}|${RADIUS_SHARED_SECRET}|1000 |2 |ATTRIBUTE My-Attribute 250 string|#null# |Accounting |Start |${REQUEST_1}|
|${RADIUS_HOST}|${RADIUS_ACCT_PORT}|${RADIUS_SHARED_SECRET}|1000 |2 |ATTRIBUTE My-Attribute 250 string|#null# |Accounting |#null# |${REQUEST_2}|
!3 Decision Table Output
Here are listed available names for Radius Client Fixture tables '''output'''.
|Comment |
|Name |Type |Description |
|request |string|RADIUS request dump |
|response |string|RADIUS response dump |
|responseId |number|RADIUS response id |
|packetTypeName|string|RADIUS response packet type name|
Column names are case insensitive and any non-alphanumerical character is removed. For example, following names are equals:
* !-packetTypeName-!
* !-packet_type_name-!
* !-packet type name-!
* !-packet-type-name-!
* !-PACKET_TYPE_NAME-!
* !-PacketTypeName-!
* !-PACKET TYPE NAME-!
Every other column name is processed as RADIUS attribute (name must exist in dictionary). Here is an example for retrieving response data:
|ddt :radius client fixture|${MAP} |
|request? |response? |response id?|packet type name? |Reply-Message? |
|${REQUEST_3}|${RESPONSE_3} |123 |Accounting-Response|Accounting Done!, event: Start|
When response attribute id refers to a list, values can be retrieved one by one with array notation header.
|ddt :radius client fixture|${MAP} |
|request? |response? |response id?|packet type name? |Reply-Message[0]?|Reply-Message[1]?|
|${REQUEST_3}|${RESPONSE_3} |123 |Accounting-Response|Accounting Done! |event: Start |
© 2015 - 2025 Weber Informatics LLC | Privacy Policy