You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature implements test scenarios to validate network access between two hosts at the transport layer (TCP/UDP). Specifically, it ensures that hosts can connect to specified ports (e.g., 80, 8080, 443), and validates whether the connection is successful or unsuccessful. Additionally, it should confirm the application layer protocol (e.g., HTTP/HTTPS) running on those ports.
Example Scenario:
Scenario: Host A can connect to host B on TCP/UDP port 80, 8080, 443, 69Given host A
When It connects to host B on port <port> using <transportProtocol>Then The connection is successful
And The application layer protocol is <applicationProtocol>Examples:
| port | transportProtocol | applicationProtocol | | 80 | TCP | HTTP | | 8080 | TCP | HTTP | | 443 | TCP | HTTPS | | 69 | UDP | TFTP |
Definition of Done:
Write a feature file demonstrating the above scenarios.
Implement the logic in StepDefinitions.kt to execute the feature file successfully, including:
Checking port connectivity (TCP/UDP).
Validating the application layer protocol running on the port (e.g., HTTP/HTTPS).
Relevant Information:
For TCP connectivity and protocol validation, the following methods can be used:
telnet: Test TCP connectivity to a port.
telnet remote-host 80
Use to check if the port is open. Interact with the service to confirm the protocol.
nc (Netcat): Versatile tool to test TCP/UDP connectivity and capture service banners.
nc -v remote-host 80
Useful for checking port status and capturing server responses.
curl: Check if an HTTP service is running on the port.
curl -I remote-host
Retrieve HTTP headers to confirm protocol and server type.
nmap: Identify the service running on the port.
nmap -p 80 -sV remote-host
Detects the application layer protocol and provides version information.
Tasks:
Enable port connectivity testing for both TCP and UDP.
Description:
This feature implements test scenarios to validate network access between two hosts at the transport layer (TCP/UDP). Specifically, it ensures that hosts can connect to specified ports (e.g., 80, 8080, 443), and validates whether the connection is successful or unsuccessful. Additionally, it should confirm the application layer protocol (e.g., HTTP/HTTPS) running on those ports.
Example Scenario:
Definition of Done:
StepDefinitions.kt
to execute the feature file successfully, including:Relevant Information:
For TCP connectivity and protocol validation, the following methods can be used:
telnet
: Test TCP connectivity to a port.Use to check if the port is open. Interact with the service to confirm the protocol.
nc
(Netcat): Versatile tool to test TCP/UDP connectivity and capture service banners.Useful for checking port status and capturing server responses.
curl
: Check if an HTTP service is running on the port.Retrieve HTTP headers to confirm protocol and server type.
nmap
: Identify the service running on the port.Detects the application layer protocol and provides version information.
Tasks:
StepDefinitions.kt
to support these scenarios.The text was updated successfully, but these errors were encountered: