Data Sources in ServiceNow are used to create an intermediate import set. Import set table data is then mapped to a production table via a Transform Map. Import set data can be inspected and manipulated before that mapping runs, which is exactly what makes it useful for testing.
Data for a Data Source can come from four places: a recognized file format (CSV, Excel, XML, JSON), an external database via JDBC, an LDAP server, or an HTTP-based source — which covers REST and SOAP web services.
Why This Trips Up QA Testers
Since the import set table acts as a staging area for records pulled in from a Data Source, that staged data can be manipulated for testing before it gets pushed into the production table through the Transform Map's field mappings. To a ServiceNow developer, this is familiar territory. QA testers, especially those newer to the platform, often find it harder than it should be — usually for one of three reasons:
- Import sets can have thousands of rows, and running the full set can take a long time just to get to the scenario they actually want to test.
- Testing multiple scenarios means running the Data Source multiple times, which adds up to a lot of hours if every run processes the full dataset. Developers tend to know shortcuts for running and testing just the rows that matter; testers often don't.
- Some of the steps require elevated permissions — testers without those roles end up relying on a developer or admin to run the steps for them rather than doing it independently.
The steps below are aimed at closing that gap, so QA testers can run these tests independently rather than routing every test cycle through a developer.
Step-by-Step: Isolating Rows for Testing
- Note down details — reports or screenshots — of the table or form involved in the Data Source testing, so you have a baseline to compare against after the transform runs.
- Open the Data Source record and select Load All Records (in Related Links) to run it and load all data rows.
- If the Data Source involves a large amount of data, this takes some time to process. Once State shows Complete and Completion Code shows Success, go to Import Sets and note the Import Set number.
- Identify the specific rows from the Import Set you actually need for your test scenario.
- Once you know which rows you need, delete the rest using Scripts – Background.
Note on permissions: running Background Scripts requires at minimum the admin role on most instances. Some organizations additionally require security_admin elevation as an extra safeguard for scripts that delete data, even staging data — check your instance's specific configuration, since this can vary by organization rather than being a fixed platform requirement.
For example, say the Data Source name is "Test Import Assets", the Import Set table name is "u_test_import_assets", and the Import Set number is "ISET1234567":
var gr = new GlideRecord('u_test_import_assets'); //Import Set table name
gr.addQuery('sys_import_set.number', 'ISET0017093'); //Import Set number
gr.addQuery('sys_import_state', 'pending');
//Delete Import Set table rows except row numbers 944, 5612, 8881
gr.addQuery('sys_import_row', 'NOT IN', '944,5612,8881');
gr.deleteMultiple();
- With unwanted rows deleted from the Import Set table, run the Transform Map for that Import Set to complete the data update in the production table — now against only the rows you actually want to test.
- Import set row data can be changed or manipulated directly to perform positive or negative testing, depending on the scenario.
- With this approach, testing runs against a small, deliberate set of rows, so QA testers can run multiple test cycles quickly instead of waiting on a full-dataset run every time.
One More Thing Worth Knowing
Import set staging tables aren't meant to hold data indefinitely — ServiceNow runs a scheduled cleanup job (commonly referred to as the Import Set Deleter) that removes import set records older than 7 days by default, along with their associated staging rows and transform history. This is generally invisible during normal testing, but it's worth knowing if you're revisiting an import set from a previous test cycle and can't find it anymore — it may simply have aged out rather than something being wrong with your test setup.

Service Now | 21st Century Software Solutions
ReplyDeletewww.21cssindia.com/servicenow
Introduction to Service Now. Introduction to service now instances & Process; b) SNC Navigations; c) SNC Applications and Modules; d) Forms,Lists and Tables ...
Training is an costly Affair …….But what if it is done Online at the convenience of the Trainer & the Trainee sitting in any part of the World……….
Thats what 21cssindia Makes Possible.
. send ur enquiry to contact@21cssindia.com. or Call +917386622889
This article on QA testing of ServiceNow data sources provides valuable insights into validating enterprise workflows, data integration, and system reliability in modern business platforms. Proper testing and verification processes are essential for maintaining accurate data synchronization and ensuring stable application performance in enterprise environments. Students interested in similar implementation concepts can also explore Web Development Projects to understand how enterprise applications and backend systems are developed and managed.
DeleteTesting and quality assurance continue to play a major role in cloud platforms and enterprise software systems where secure and accurate data handling is critical for operational success. Learners looking to build scalable and reliable software solutions can further refer to Cloud Computing Projects for ideas related to distributed systems, cloud integration, and enterprise-level deployment workflows. This post provides a practical understanding of testing strategies in ServiceNow environments.
DeleteThank you for the course content On Servicenow Administration Online Training it will be Most usefull for Beginners
ReplyDeleteServiceNow - Layman Learning
ReplyDeletelaymanlearning.com/servicenow
ServiceNow Training Courses: ServiceNow Accredited Administration Training ITIL® Accredited Training & Certification ITSM (Apollo) Simulation ISO20000 COBIT Six ..
Support; Query? +91-741-626-7887 ... Online Corporate IT training services. OnlineTraining | Corporate Training | Layman Learning. Email: hr@laymanlearning.com.
ServiceNow System Admin Course covers all the servicenowadministration trainingbasics. It is led by a certified ServiceNow trainer and focuses on real-life scenarios and hands-on designed to give you usable knowledge that will help you optimize your ITSM platformKBS Training Institute is the Best Training Institute across the world like USA, UK, FRANCE, UAE, Japan, Germany, Newzeland, Australia, Singapore, Malaysia
ReplyDeleteReally cool post, highly informative and professionally written and I am glad to be a visitor of this perfect blog, thank you for this rare info! , Regards, servicenow training in hyderabad
ReplyDeleteThanks for the post, for online training on ServiceNow visit TekSlate.
ReplyDeleteNice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating servicenow online training
ReplyDeleteThanks for your information very nice article. Keep posting.
ReplyDeleteservicenow developer online training
learn servicenow online
This information is really awesome thanks for sharing most valuable information.
ReplyDeleteServicenow Training
Servicenow Certification
Servicenow Now Learning
Servicenow Online Training
Servicenow Online Training in Hyderabad
Servicenow Developer Training
Servicenow Training in Ameerpet
Nice article,
ReplyDeleteThank syou for sharing this awesome blog with us.
Keep updating..
servicenow certification
servicenow online training india
servicenow admin training online
This really is my first time i visit here. I discovered so many entertaining stuff in your blog, especially its discussion. From a great deal of comments in your articles, I guess I am not alone having all of the leisure here! Maintain the superb work.It is very useful who is looking for top software testing companies
ReplyDeleteI have found great and massive information on
ReplyDeleteWorkday payroll training
Workday financials training
Workday training
Python online training
Mulesoft training
Servicenow Online training
Java training
Salesforce training
which helps you also. Thanks for Posting
ReplyDeleteThanks for sharing Nice and very informative blog.
pega clsa certification
pega clsa certification online course
These ways are very simple and very much useful about Software Testing Services I like your good service. I always appreciate your post. That is very interesting I love reading about Software Testing Companies and as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
ReplyDeleteConsult today to - Software Testing Companies in USA
See Also: Test Automation Services
thanks for sharing most valuable information.
ReplyDeleteServiceNow now learning
ServiceNow Online Training
Thanks for your information. very good article.
ReplyDeleteServiceNow now Learning
ServiceNow Online Training
An awesome blog for the freshers. Thanks for posting this information.
ReplyDeleteServiceNow now Learning
ServiceNow Online Training
nice information thanks for sharing..........................!
ReplyDeletemicro strategy certification training
Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting
ReplyDeletelists will help to my website
ServiceNow online training
best ServiceNow online training
top ServiceNow online training
Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeleteTableau online training
best Tableau online training
top Tableau online training
Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
ReplyDeletemulesoft online training
best mulesoft online training
top mulesoft online training
Recently I read your post, and I just fell in love with your wiring.
ReplyDeleteHire Angular Developer in Chennai
Great article! The MongoDB course is very useful for learning NoSQL database concepts and practical implementation. The hands-on labs help in understanding real-world data management and application development.mongodb course
ReplyDelete