{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1773,"path":"application-development/automated-test-framework-atf/atf-use-script-include.md","title":null,"bundle":null,"doc_type":null,"release":null,"body":"---\ntitle: Automated Test Framework use case: test a script include\ndescription: This use case illustrates testing a script include with the Automated Test Framework.\nlocale: en-US\ncanonical_url: https://www.servicenow.com/docs/r/australia/application-development/automated-test-framework-atf/atf-use-script-include.html\nrelease: australia\nproduct: Automated Test Framework \\(ATF\\)\nclassification: automated-test-framework-atf\ntopic_type: concept\nlast_updated: \"2026-03-12\"\nreading_time_minutes: 1\nbreadcrumb: [Automated Test Framework use case examples, Automated Test Framework \\(ATF\\) reference, Automated Test Framework \\(ATF\\), Testing and debugging applications, Building applications]\n---\n\n# Automated Test Framework use case: test a script include\n\nThis use case illustrates testing a script include with the Automated Test Framework.\n\nTo test a script include with the Automated Test Framework, create a test that performs these steps:\n\n-   a step that causes the system to execute the script include. Examples:\n    -   Run Server Side Script test step that calls the script include.\n    -   Form action step script – such as open a form, submit or form, or set a field value – that invokes the script include.\n-   A step that validates that the script include took the expected actions. The specific test step for this validation depends on what the script include is designed to do. Examples:\n    -   Field values validation, if the script sets a field value\n    -   Field state validation, if the script changes a field state\n    -   Record Query, if the script generates a new record\n\nThis example shows a test with one test step: Run Server Side Script. The script associated with this test step calls a script include that returns the value of its argument plus three. If the value returned from the script include is 8, the script include has worked as intended and the test passes.\n\n\\[Omitted image \"atf-script-include.png\"\\] Alt text: Automated test to test a script include\n\n\\[Omitted image \"atf-server-side-script-01.png\"\\] Alt text: Run server side script test step\n\n\\[Omitted image \"atf-server-side-script-02.png\"\\] Alt text: Script include\n\n**Parent Topic:**[Automated Test Framework use case examples](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/automated-test-framework-atf/atf-use-cases.md)\n\n"}}