Transcription of When and how should I use Automated Test Framework …
1 1 2021 ServiceNow , I nc. All Rights addressedPage 1: What is Aut omated Test Framework (ATF)? Where can I find ATF? Why use ATF t o t est your inst ance?Page 2: When and how should I use ATF?Page 3: What is t he best pract ice process for using ATF?When and how should I use Automated Test Framework (ATF)?Aut omated Test Framework (ATF)is a ServiceNow applicat ion used t o aut omat e t he t est s performed t o verify applicat ions, cust omizat ions, or configurat ions. ATF gives you t he t ools t o creat e and run aut omat ed t estson your ServiceNow non-product ion inst ance.
2 ATF provides funct ional t est ing t hat allows act ions such as creat ing records, set t ing field values, and checking results of field values. If a test fails, ATF indicates that the result doesn t meet the expected result s of t he t est and includes det ails of what t he underlying problem may be. Also, ATF is free wit h t he Now Plat form and uses t he same development t ools your developers are familiar wit h. Why use ATF to test your instance? ATF reduces upgrade and development t ime by replacing manual t est ing wit h Automated t est ing.
3 Compared t o ot her t est met hods, ATF: Avoids time-consuming and repetitive testing Just set up t he t est s and reuse t hem every t ime you upgrade or modify your inst ance. Avoids user error Since the tests are Automated , they re performed exactly the same way every time you run t hem. Allows you to create reusable tests Once you creat e ATF t ests, you can reuse t hem for fut ure upgrades and ot her releases. Speeds up test creation Use eit her a quick st art t est, which is a ServiceNow-provided t est t hat you can copy and modify t o meet your unique business process needs or creat e t est t emplat est o add predefined list s of st eps t o exist ing t est plans.
4 Decreases time to value You ll upgrade faster and get your value-added feat ures and enhancement s t o your users fast er. Avoids breaking tests related to user interface (UI) changes ATF is independent of UI changes, so t est s do not break when t he UI is changed, which is a common issue wit h t hird-party aut omated t esting t ools. Promotes confidence in your platform stability I t delivers a qualit y product wit h for Automated Test Framework in the application menu to find you have any questions on this topic or you w ould like to be a contributor to future ServiceNow best practice content, please contact us.
5 2 2021 ServiceNow , I nc. All Rights and how should I use Automated Test Framework ? (Cont.)When and how should I use ATF? Y ou should run ATF t ests t o confirm t hat t he inst ance st ill works as designed whenever you upgrade, modify an inst ance ( , cust omize or make field changes), or have int ernal development releases. This includes running t est s on any scoped apps, cust om apps, or out-of-t he-box product h ATF, besides running t est suit es on demand, you can also schedule t hem t o run during off hours. Y ou can run an ent ire suit e of t est s and, in moment s, analyze t he result s t o det ermine if remediat ion is required.
6 Y ou can use t he same t est s again for your next release or upgrade if you keep t he t est s in sync wit h t he configurat ions and cust omizat ions t hey t est . ATF is int ended t o t est t he changes you make t o your inst ance, but not t o t est base ServiceNow funct ionalit recommendedATF is intended for functional testing of business logic, so it tests the specific business processes that you manage in your Serv iceNow example, ev ery organization has a specific change managementprocess. ATF allow s you to build a test w here you can automatically create a change requestand push it through its lifecycle to ensure that your process still w should never use ATF tests or any other functional testing tools in your production instance.
7 *For example, a test can impersonate a user w ith extensive security access or change data that may be designed to trigger actionable events, like sending an email to your entire customer targets browser compatibility testing across multiple brow sers and operating systems. Write an ATF test once, and then v erify the same functionality w orks as expected for all supported is not intended for testing every single UI component of your Serv iceNow example, you don t need to test the magnifying glass icon on a reference field. Think about what s unique in your instance and what s common across every is effective for regression testing.
8 Create comprehensive testing plans to ensure existing processes still w ork as expected followingan upgrade or dev elopment cycle. Run the same comprehensive testing planbeforeandaftermajor changesto get a baseline. ATF prov ides assurance that the same tests w ill run in the same manner, allow ing routine instance checks to be performed w henever can be used but is not recommended for unit example, since you ll need to update ATF tests every time a feature changes, don t build ATF tests for features that are still changing frequently. It s better to create tests once feature changes have slowed down to prevent extra w ork.
9 ATF can be integrated with Jasmine, an open source testing framew ork for Jav aScript. Jasmine tests are calledto v erify server-side functionality from the steps of an ATF test. ATF is not a load testing or performance testing this chart to better understand what type of testing is recommended for ATF.*ATF tests should only be run in sub-production. If you clone your sub-production instance from production, consider mov ing ATF tests to your production instance using update setsor use source control as a central repository so you don t lose the tests from your sub-production instance before they re cloned from production.
10 3 2021 ServiceNow , I nc. All Rights is the best practice process for using ATF?Focus on t he funct ionalit y that s specific to your ServiceNow inst ance. When determining what s essent ial, consider t he exposure t o risk. Weigh t he det ail of t he validat ion against t he ongoing t estmaint enance essential functionality per creat ing t est s once any addit ional changes t o t he new feat ure you want t o t est will be minimal. I f you develop new funct ionalit y and ATF t est s in t andem, realize any addit ional funct ional changes could result in addit ional ATF development effort.