vspyx.AUTOSAR.AcceptanceTest
Package Contents
Classes
UpperTester |
- class vspyx.AUTOSAR.AcceptanceTest.UpperTester
Bases:
vspyx.Core.Object
UpperTester
- class ConfigureSocketRequest
ConfigureSocketRequest
- paramId :int
- paramVal :List[int]
- socketId :int
- class GIDs
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- ARP = 9
- DHCP = 7
- DHCPv6 = 8
- ETH = 11
- GENERAL = 0
- ICMP = 3
- ICMPv6 = 4
- IP = 5
- IPv6 = 6
- NDP = 10
- PHY = 12
- TCP = 2
- UDP = 1
- class GetVersionResponse
GetVersionResponse
- majorVer :int
- minorVer :int
- patchVer :int
- result :UpperTester.Results
- class ListenAndAcceptEvent
ListenAndAcceptEvent
- address :str
- listenSocketId :int
- newSocketId :int
- port :int
- class PIDs
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- ACTIVATE_TEST_MODE = 2
- CLOSE_SOCKET = 0
- CONFIGURE_SOCKET = 6
- CONNECT = 5
- CREATE_AND_BIND = 1
- ECHO_REQUEST = 0
- END_TEST = 3
- GET_VERSION = 1
- INIT_DHCP_CLIENT = 0
- INTERFACE_DOWN = 1
- INTERFACE_UP = 0
- LISTEN_AND_ACCEPT = 4
- READ_DIAG_RESULT = 1
- READ_SIGNAL_QUALITY = 0
- RECEIEVE_AND_FORWARD = 3
- SEND_DATA = 2
- SET_DHCP_OPTION = 2
- SET_PHY_TX_MODE = 3
- SHUTDOWN = 7
- START_VERSION = 2
- STATIC_ADDRESS = 0
- STATIC_ROUTE = 1
- STOP_DHCP_CLIENT = 1
- class ReadSignalQualityResponse
ReadSignalQualityResponse
- result :UpperTester.Results
- sigQuality :int
- class ReceiveAndForwardEvent
ReceiveAndForwardEvent
- fullLen :int
- payload :List[int]
- srcAddr :str
- srcPort :int
- class ReceiveAndForwardResponse
ReceiveAndForwardResponse
- dropCnt :int
- result :UpperTester.Results
- class Results
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- E_IIF = 236
- E_INV = 252
- E_ISB = 253
- E_ISD = 239
- E_NOK = 1
- E_NTF = 255
- E_OK = 0
- E_PEN = 254
- E_TCP_CAE = 231
- E_TCP_CAT = 227
- E_TCP_CNE = 229
- E_TCP_COC = 230
- E_TCP_COR = 226
- E_TCP_CRE = 228
- E_TCP_FSU = 234
- E_TCP_ILP = 233
- E_TCP_INR = 232
- E_TCP_PNA = 235
- E_UBS = 237
- E_UCS = 238
- class SendDataRequest
SendDataRequest
- data :List[int]
- destAddr :str
- destPort :int
- flags :int
- socketId :int
- totalLen :int
- ARPOperation(self, gid: UpperTester.GIDs, request: UpperTester.ARPOperationRequest) UpperTester.ARPOperationResponse
- ActivateTestMode(self, gid: UpperTester.GIDs, request: UpperTester.ActivateTestModeRequest) UpperTester.ActivateTestModeResponse
Activates a given PHY test mode.
- CloseSocket(self, gid: UpperTester.GIDs, request: UpperTester.CloseSocketRequest) UpperTester.CloseSocketResponse
Closes a socket.
- ConfigureSocket(self, gid: UpperTester.GIDs, request: UpperTester.ConfigureSocketRequest) UpperTester.ConfigureSocketResponse
This SP is used to select and set parameters that can be configured on a socket basis. More parameters may be supported in following versions of this document or by non-standard extensions (Parameter IDs starting with 0xFFFF, 0xFFFE… and so forth).
- Connect(self, gid: UpperTester.GIDs, request: UpperTester.ConnectRequest) UpperTester.ConnectResponse
Triggers a TCP connection to a remote destination.
- CreateAndBind(self, gid: UpperTester.GIDs, request: UpperTester.CreateAndBindRequest) UpperTester.CreateAndBindResponse
Creates a socket and optionally binds this socket to a port and a local IP address. Note: Some TCP/IP-Stacks may need to know at socket creation time whether it is a client or a server socket. For those kind of implementations the SP may create and return a higher-level ID that maps to the corresponding data needed to create the socket later and the real socket ID once created.
- EchoRequest(self, gid: UpperTester.GIDs, request: UpperTester.EchoRequestRequest) UpperTester.EchoRequestResponse
- EndTest(self, gid: UpperTester.GIDs, request: UpperTester.EndTestRequest) UpperTester.EndTestResponse
The purpose of this SP is to reset the Upper Tester. All sockets of the test channel will be closed, counters are set to the default value, buffers are cleared and active service primitives will be terminated. Another purpose of this SP is to have a defined entry tag in trace at the point in time the test case was stopped. The parameters may be ignored by the testability module.
- GetVersion(self, gid: UpperTester.GIDs) UpperTester.GetVersionResponse
This SP will return the testability protocol version of the used protocol and service primitive implementation. The testability protocol version is bound to the TC release version the protocol is based on. The current version is TC1.2.0.
- InitDHCPClient(self, gid: UpperTester.GIDs, request: UpperTester.InitDHCPClientRequest) UpperTester.InitDHCPClientResponse
Initialize the DHCP Client by use of network interface and port.
- InterfaceDown(self, gid: UpperTester.GIDs, request: UpperTester.InterfaceDownRequest) UpperTester.InterfaceDownResponse
Disables an Ethernet interface or virtual interface. This SP is not affecting the persistent configuration.
- InterfaceUp(self, gid: UpperTester.GIDs, request: UpperTester.InterfaceUpRequest) UpperTester.InterfaceUpResponse
Enables an Ethernet interface or virtual interface. This SP is not affecting the persistent configuration.
- ListenAndAccept(self, gid: UpperTester.GIDs, request: UpperTester.ListenAndAcceptRequest, handler: vspyx.Core.Function_1db682930d) UpperTester.ListenAndAcceptResponse
Marks a socket as listen socket that will be used to accept incoming connections. Whenever a new connection was established this SP provides the socket ID of the new connection together with the listen socket, client port, and address in an event.
- static NewInternal(iface: vspyx.TCPIP.Interface) UpperTester
- ReadDiagResult(self, gid: UpperTester.GIDs, request: UpperTester.ReadDiagResultRequest) UpperTester.ReadDiagResultResponse
Returns the result of the cable diagnostics.
- ReadSignalQuality(self, gid: UpperTester.GIDs, request: UpperTester.ReadSignalQualityRequest) UpperTester.ReadSignalQualityResponse
Returns the current signal quality in percent by reading the value from the related Ethernet transceiver
- ReceiveAndForward(self, gid: UpperTester.GIDs, request: UpperTester.ReceiveAndForwardRequest, handler: vspyx.Core.Function_5b8b9c0ffc) UpperTester.ReceiveAndForwardResponse
Data that will be received after the call of this SP will be forwarded to the test system. The amount of forwarded data per received datagram (UDP) or bulk of stream data (TCP) can be limited using maxFwd. The original length of this data unit can be obtained by fullLen. The process will repeat itself (active phase) until the maximum amount of data defined by maxLen was received or END_TEST was called (inactive phase). UDP: No further requirements. (see 6.12.2 UDP Receive and Count) TCP: In the inactive phase (e.g. prior the first call) all data received will be discarded or ignored. When called all data that was received on the specified socked prior the call of this SP will be consumed2 in order to open the TCP receive window. All data that is received during the active phase of this SP will be consumed up to the maximum amount of data defined by maxLen. (see 6.12.4 TCP Client Receive and Forward)
- SendData(self, gid: UpperTester.GIDs, request: UpperTester.SendDataRequest) UpperTester.SendDataResponse
Sends data to a target. Please note: because of the non-blocking behavior of Service Primitives a positive response does NOT signal the success of the transmission, but the success of issuing the transmission.
- SetDHCPOption(self, gid: UpperTester.GIDs, request: UpperTester.SetDHCPOptionRequest) UpperTester.SetDHCPOptionResponse
Sets DHCP Client options
- SetPhyTxMode(self, gid: UpperTester.GIDs, request: UpperTester.SetPhyTxModeRequest) UpperTester.SetPhyTxModeResponse
Activates a given transmission mode.
- Shutdown(self, gid: UpperTester.GIDs, request: UpperTester.ShutdownRequest) UpperTester.ShutdownResponse
Shuts down a socket.
- StartTest(self, gid: UpperTester.GIDs) UpperTester.StartTestResponse
The purpose of this SP is to have a defined entry tag in trace at the point in time the test case was started. This SP does not have any request parameters.
- StaticAddress(self, gid: UpperTester.GIDs, request: UpperTester.StaticAddressRequest) UpperTester.StaticAddressResponse
Assigns a static IP address and Netmask to the given network interface.
- StaticRoute(self, gid: UpperTester.GIDs, request: UpperTester.StaticRouteRequest) UpperTester.StaticRouteResponse
Adds a static route for the network. This SP is not affecting the persistent configuration.
- StopDHCPClient(self, gid: UpperTester.GIDs, request: UpperTester.StopDHCPClientRequest) UpperTester.StopDHCPClientResponse
Shutdown the DHCP Client by use of network interface and port.