ATF

admin11345_
Tera Contributor

In ATF,

 

Step 1 :- opened the form
Step 2 :- I have set the default values for the fields using conditions . For eg :- x = "no", y = "abc" , z = "mnc" using Field Values Validation step in ATF.
default value of x must be no. but if user changes the x value to Yes, then accordingly y and z values has to be changed to something else.
How do I write test step for this in ATF.

3 REPLIES 3

Shaqeel
Mega Sage

Hi @admin11345_ 

 

You can do parameterized steps to do this.

 

If you have less input to validate then you can first set the value of x using " Set Field value " and Save (UI action)

and then validate the field changes y & z (Field Value Validation).

 

And then again you need to change the value of x and save. and validate the fields changes.

 

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

admin11345_
Tera Contributor

Thanks for your reply,


Did u mean to say
step 1:- set field value of x to 'no' using set field value step and
step 2:- save ui action (click on ui action step)
step 3 :- field value validation step for y and z

step 4 :- set field value of x to 'yes' using set field value step and
step 5:- save ui action (click on ui action step)
step 6 :- field value validation step for y and z

 

does saving UI action mean UI action step in ATF

Hi @admin11345_

 

Yes you are correct.

 

If it helps please mark helpful/solution.

 

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