VSNR:
WHEN
#SelectChild IS VSNR
THEN
#VerifyLabel SELECTEDCHILD IS Versicherungsnummer AND
#VerifyType SELECTEDCHILD IS Textfeld AND
#VerifyMaxLength SELECTEDCHILD IS 9 AND
#VerifyIsActive SELECTEDCHILD IS YES AND
#VerifyValue SELECTEDCHILD IS ${EMPTY}
Resulted Test
VSNR:
#SelectChild IS (I) =VSNR, // here the object of interesst is select
// The next lines refers to the VSNR
#VerifyLabel SELECTEDCHILD (O) =Versicherungsnummer, // verify the label of VSNR
#VerifyType SELECTEDCHILD (O) =Textfeld, // verify the type of VSNR
#VerifyMaxLength SELECTEDCHILD (O) =9, // verify the maxLength of VSNR
#VerifyIsActive SELECTEDCHILD (O) =YES, // verify is enabled of VSNR
#VerifyValue SELECTEDCHILD (O) = ${EMPTY} // verify the Value of VSNR
Idea -Solution:
Solution vor this Type of object selection:
We create a reserved FN-Name "SELECTEDCHILD"
"SelectChild" the value for "SELECTEDCHILD"
With "SELECTEDCHILD" in FN of an OpenKeyword we refers to the object selected with SelectChild
OKW Example:
EN.SelectChild( "VSRN" ) // Sets "SELECTEDCHILD" = "VSRN"
// Now the (internal) Value of "SELECTEDCHILD" is "VSRN"
EN.VerifyLabel( "SELECTEDCHILD", 9 )
EN.VerifyType( "SELECTEDCHILD", "Textfield" )
EN.VerifyMaxLength( "SELECTEDCHILD", 9 )
EN.VerifyActive( "SELECTEDCHILD", "NO" )
EN.VerifyValue( "SELECTEDCHILD", "${EMPTY}" )
4Test Testfall Scenario:
Categorie:
Constraints
Resulted Test
Idea -Solution: Solution vor this Type of object selection: We create a reserved FN-Name "SELECTEDCHILD" "SelectChild" the value for "SELECTEDCHILD" With "SELECTEDCHILD" in FN of an OpenKeyword we refers to the object selected with SelectChild
OKW Example: