Wednesday, June 24, 2015

QA testing of ServiceNow Data Sources, Import Sets and Transform Maps

QA testing of ServiceNow

ServiceNow Data Sources, Import Sets & Transform Maps


Technically Data Sources in ServiceNow are used to create intermediate import set. Import set table data is mapped to production table. However import set data can be processed prior mapping to production table. Data for data sources can come in three ways viz. 1) Recognized file format 2) Data accessed via JDBC and 3) Data from LDAP server.


As import sets table acts as staging area for records imported from data sources, import set table data can be manipulated for testing of intended data before it gets updated into production table via respective transform map field mappings. As a ServiceNow expert, these points look familiar and might be simple. However it has been observed many times that QA testers find these simple feature difficult while testing newly created (or modified) data sources in ServiceNow.

Mostly QA testers prefer to take the help of ServiceNow developers or admin to run the data source and its respective transform map and then validate the results on destination table using reports, list view or in layout view. They find testing the data source part complex might be because:

·        Import Sets can have thousands of rows and it might take long time to execute

·        QA testers need to run the data source multiple times to validate different test cases and scenarios. To complete all scenarios, QA testers might put lot of hours. However developers have more knowledge and know tricks to run and test intended rows data quickly.

·        QA testers might need admin or security_admin roles/permissions to perform some of steps. Instead they might prefer developers or admins to check those steps


QA testers can find below steps useful in testing ServiceNow data sources, provided they have security_admin elevated rights

1.      Note down details in form of reports or screenshots of required table or form involved in data source testing

2.     Choose the data source and select “Load All Records” (in Related Links) to run the data source and load all data rows

3.     If the data source involves large amount of data, it takes some more time to process. Once the State is Complete and Completion Code is Success, go to Import sets. Note down the Import Set number.



4.     Identify the desired rows from the Import Set to test further.


5.     Once rows from Import Set have been identified, delete other Import Set rows with below script using “Scripts – Background”.  Note:Prior to this, security_admin elevated privilege need to be activated

For e.g. Data Source name is "Test Import Assets"
Import Set table name is "u_test_import_assets"
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();


6.     With above script, unwanted rows can be deleted from Import Set table and then respective transform map for that Import Set can be run to complete the data update in production table.

7.     Import set rows data can be changed or manipulated to perform positive or negative testing as per required scenario.

8.    With this approach testing can be done with less number of rows, and QA testers can run multiple tests in less time. Otherwise the source data need to be less to execute and complete the data source run quickly.


21 comments:

  1. Service Now | 21st Century Software Solutions
    www.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

    ReplyDelete
  2. Thank you for the course content On Servicenow Administration Online Training it will be Most usefull for Beginners

    ReplyDelete
  3. ServiceNow - Layman Learning
    laymanlearning.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.

    ReplyDelete
  4. 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

    ReplyDelete
  5. Really 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

    ReplyDelete
  6. Thanks for the post, for online training on ServiceNow visit TekSlate.

    ReplyDelete
  7. Nice 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

    ReplyDelete
  8. 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

    ReplyDelete
  9. 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.

    Consult today to - Software Testing Companies in USA

    See Also: Test Automation Services

    ReplyDelete
  10. An awesome blog for the freshers. Thanks for posting this information.
    ServiceNow now Learning
    ServiceNow Online Training

    ReplyDelete
  11. nice information thanks for sharing..........................!
    micro strategy certification training

    ReplyDelete
  12. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting
    lists will help to my website
    ServiceNow online training
    best ServiceNow online training
    top ServiceNow online training

    ReplyDelete
  13. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    Tableau online training
    best Tableau online training
    top Tableau online training

    ReplyDelete
  14. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    mulesoft online training
    best mulesoft online training
    top mulesoft online training

    ReplyDelete

Popular Posts 😊