Domain name is an attribute which carries information about the domain name of the application hosted. This has a pattern "^([a-z0-9]+(-[a-z0-9]+)*.)+[a-z]{2,}$"
For this pattern, we can check for correctness in following scenarios which is expected to fail
include special characters other than "-" and "."
string without character "." (it is expected to have a top-level domain at end)
string with space
Top-level-domain TLD containing a number
The about correctness should be checked for following services
Domain name is an attribute which carries information about the domain name of the application hosted. This has a pattern "^([a-z0-9]+(-[a-z0-9]+)*.)+[a-z]{2,}$" For this pattern, we can check for correctness in following scenarios which is expected to fail
include special characters other than "-" and "." string without character "." (it is expected to have a top-level domain at end) string with space Top-level-domain TLD containing a number The about correctness should be checked for following services