logo

NJP

Automated Test Framework | Pro tips, helpful features, and test storage recommendations

Import · Dec 10, 2021 · video

This video provides pro tips for streamlining ATF testing, ... ... demonstrates helpful at ATF features to reduce test creation time,... ... and gives recommendations for storing your ATF tests. You can skip to these topics from the YouTube description for this video. In our last video, we showed you how to build and run ATF tests and how to organize them into test suites. Now, let's look at some pro tips to help you streamline your testing. Our first tip is to test what's unique to your instance. You don't need to test the entire platform. For our second tip, make the tests self contained. Aways create data needed for testing within the test instead of relying on specific records in an instance. Our third tip is to create users you need during the test with the create user step, Use the impersonate user step to toggle between
users you've already created in the test. For our fourth tip, be sure to add a record validation step following any changes you make to a record. Our fifth and final tip is to navigate to a record after submitting it to verify that it was correctly submitted to the database. Now let's take a quick look at helpful features in ATF that you can leverage to help reduce your test creation time. Test templates are reusable sets of test steps
that you can add to a test and configure as needed. Parameterized tests allow you to run a test multiple times with different data. Parallel testing allows you to create, run, and repair tests in parallel to reduce testing design time. Quick start tests are ready to use tests that you can copy and customize. Finally, let's look at our recommendations for
storing your ATF tests. For a single source of truth, keep your tests in a central repository using one of these options. For the first option, store your tests in your production instance,... ... then either clone them to your test instance using system clone or migrate them directly using update sets. For the second option, you can store your tests in your test instance... ... and add preservers so the tests are not overwritten during cloning operations using system clone. The final option is to store tests in apps linked to source control, so the tests are updated and stored with the related app. For additional resources about ATF, see the YouTube description for this video. For more information see our product documentation, knowledge base or podcast. Or ask a question in the ServiceNow Community.

View original source

https://www.youtube.com/watch?v=rVj0aQymN38