Closed Hrabovszki1023 closed 8 years ago
As a functional tester I need regular expression match for complex matching.
VerifyLabelREGX( "Email", "([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)" ) Email pattern: match with zh@openkeyword.de
VerifyLabelREGX( "Email", "([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)" )
IOKW_State
OK
NOK
Core
Use case with ANTLR/OKWParser:
${IGNORE}
""
${EMPTY}
OKWFrameObjectMethodNotFoundException
OKWFrameObjectChildNotFoundException
VerifyExist(„OK“,“Uschi“)
OKWNotAllowedValueException
Done
As a functional tester I need regular expression match for complex matching.
Example
"REGX" Regular Expression Match
VerifyLabelREGX( "Email", "([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)" )
Email pattern: match with zh@openkeyword.de
Done-list:
Implementation:
IOKW_State
defined.OK
– LFC (Latebound Function Call) implementedNOK
– LFC implementedCore
Unit tests:
Use case with ANTLR/OKWParser:
${IGNORE}
and""
as values.${EMPTY}
(VerifyValue-Keyword)Exception test cases:
OKWFrameObjectMethodNotFoundException
OKWFrameObjectChildNotFoundException
VerifyExist(„OK“,“Uschi“)
-> expected Exception:OKWNotAllowedValueException