How to apply test step for Filter condition in ATF?

Rishi14ta
Tera Contributor

As per the requirement, we need to add the filter condition in the form. There is a field which has type 'Condition'  and it acts as filter condition on the form, by using this filter condition some filtered records will be populated in the related list. Also we need to use filter condition with "AND' and "OR" condition. Can anyone please help in this ATF possibility?

2 ACCEPTED SOLUTIONS

Shaqeel
Mega Sage

Hi @Rishi14ta 

 

Question:

Is it in a table or in a form?

 

If it is in a table:

Use "Apply filter on list" step.

 

If in a form: 

It is not directly possible through ATF. 

You have to use Server side script.

 

*************************************************************************************************************
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


***********************************************************************************************************************
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

View solution in original post

Hi @Rishi14ta 

 

here is one script I used for one of my requirements:

Shaqeel_0-1722851484014.png

 

You need to remove the "" double course and enter the table.

 

 

Mark Helpful

 

 

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

View solution in original post

5 REPLIES 5

Shaqeel
Mega Sage

Hi @Rishi14ta 

 

Question:

Is it in a table or in a form?

 

If it is in a table:

Use "Apply filter on list" step.

 

If in a form: 

It is not directly possible through ATF. 

You have to use Server side script.

 

*************************************************************************************************************
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


***********************************************************************************************************************
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

Rishi14ta
Tera Contributor

Hi Shaqeel,

 

As you mentioned, in the form we can achieve it using Server Side Script. Can you please elaborate how can I implement it in the script?

Hi @Rishi14ta 

 

here is one script I used for one of my requirements:

Shaqeel_0-1722851484014.png

 

You need to remove the "" double course and enter the table.

 

 

Mark Helpful

 

 

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

Hi @Shaqeel 

 

This will help me a lot. I am thankful for your support.