Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to write script for ATF Steps?

_Yash24
Tera Guru

Hi All,

I want to write script for below ATF steps, Is it possible to create one?

Steps are as below:

1. Open an Existing Record

2. Click a UI action

3. Open an Existing Record

4. Validate Related List Visibility

5. Apply Filter to List

6. Open an Existing Record

7. Apply Filter to List

8. Open a Record in List

9. Field value validation

10. Open an Existing Record

11. Field Value Validation

 

Thanks

1 ACCEPTED SOLUTION

Hi @_Yash24 ,

 

It would not be a good idea to combine all these multiple steps into one i.e. ' Run Server side Script' Step. While it might be feasible, it would require a lot of scripting, making it difficult to debug. I recommend using out-of-the-box (OOB) steps . If something cannot be achieved using OOB steps, then you can create a custom step.

 

Refer Below Video for Custom ATF Step - https://www.youtube.com/watch?v=-6tF-CiJ_F0

 

If my reply helped with your issue please mark helpful 👍 and correct ✔️ if your issue is resolved.

 

                         By doing so you help other community members find resolved questions which may relate to an issue they're having

 

 

Thanks,

 

Astik

View solution in original post

3 REPLIES 3

Astik Thombare
Tera Sage
Tera Sage

Hi @_Yash24 ,


May I know why you want to write script for this ATF steps . As all these Steps are OOB Available 

 

You Can Navigate to Automated Test Framework -> Tests -> You can Create New Test Case -> Add Steps

 

AstikThombare_1-1714707781126.png

 

AstikThombare_0-1714707701845.png

 

If you want to still write script for this steps . you can copy Script from OOB ATF Steps

 

You can navigate to 'sys_atf_step_config.LIST' or  Automated Test Framework -> Step Configurations -> Open any existing record

 

AstikThombare_2-1714708029036.png

 

 

AstikThombare_3-1714708090160.png

 

 

 

If my reply helped with your issue please mark helpful 👍 and correct ✔️ if your issue is resolved.

 

                         By doing so you help other community members find resolved questions which may relate to an issue they're having

 

 

Thanks,

 

Astik

Thank you for reply @Astik Thombare .

I just wanted to know for which of these steps can be written through script?

If I use Run Server side script step instead of multiple steps so what all I can include in it, If you can tell me that would be helpful.

Thanks

Hi @_Yash24 ,

 

It would not be a good idea to combine all these multiple steps into one i.e. ' Run Server side Script' Step. While it might be feasible, it would require a lot of scripting, making it difficult to debug. I recommend using out-of-the-box (OOB) steps . If something cannot be achieved using OOB steps, then you can create a custom step.

 

Refer Below Video for Custom ATF Step - https://www.youtube.com/watch?v=-6tF-CiJ_F0

 

If my reply helped with your issue please mark helpful 👍 and correct ✔️ if your issue is resolved.

 

                         By doing so you help other community members find resolved questions which may relate to an issue they're having

 

 

Thanks,

 

Astik