Skip to content
Advertisement

How to validate IP address using Robot Framework

How to validate IP address using Robot Framework

Example: 192.168.101.12

Conditions:

  1. Number of characters
  2. String should not exceed 15 characters
  3. Allow only numeric characters

Advertisement

Answer

Builtin library has a keyword for matching regexes. You can use Should Match Regexp to validate the ip. Here is an example I made with a regexp from this answer

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement