Not Mandatory variable state check failed

ZhenyuC
Tera Contributor

Hi,

 

I am trying to build this ATF case to check Not Mandatory variable state. It kept failing after I tried all options. Manual testing is fine.

 

Test steps

1. Open a Record Producer

2. Validate the required field 1 and 2 are mandatory

3. Enter a value in field 1

4. Field 2 becomes not mandatory

 

The test failed at step 4. The result shows field 2 is still mandatory. But by manual testing, field 2 becomes not mandatory after step 3. Any help is appreciated! I can provide more logs if needed.

 

Thanks,

Zhenyu

2 REPLIES 2

Shaqeel
Mega Sage

Hi @ZhenyuC 

 

As far my understanding the thing is, when you set field 1 to apply the rule on field 2 you need to click somewhere or do some activity somewhere to get the field 2 not mandatory.

 

What you could do is, either click somewhere(manually) or set other fields and then validating field 2.

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

ZhenyuC
Tera Contributor

Hi @Shaqeel ,

 

I added a step between 3 and 4 to set another field, and then validate field 2. Unfortunately this doesn't help. It failed with the same message that field 2 is mandatory. It looks like Validate Variable State can't handle this kind of state change test. BTW for manual testing, I don't need to click or do any activity somewhere else before I validate the variable state.

 

Thanks,

Zhenyu