How to automate data generation for test purposes?

guillermoftw
Kilo Explorer

Hi all,

I'm trying to automate the generation of data into different forms, so that we don't have to manually fill out forms and walk through the process during UAT/CAT testing.

I already tried the ATF but it doesn't actually create data that is saved to a table, it just keeps them within the results record. Does anyone have any suggestions or can direct me to some documentation around this?

4 REPLIES 4

Deepak Ingale1
Mega Sage

You can do it via FIX script and by other method of exposing scripted REST API.

 

For sample fix script, you can try to look at this, this is a sample script for generating requests in scoped app, you can modify it per your requirement

 

https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_reportanalytics_london_...

 

Note: Please mark reply as correct / helpful if it answers your question

Community Alums
Not applicable

I know I'm super late to the conversation here. But for those who stumble across the question, they may find this useful:

A gentleman named John Roberts created a 'Data Generator' application which is available on the Developer Share to download HERE.

It's straightforward to use and should meet most data creation needs. Sadly it cannot create data on scoped applications.
 

jamesalery1
Giga Contributor

You can automate data generation using random data generators like Faker or Mockaroo , which allow you to generate test data programmatically and save it to the database. For SAP, consider using LSMW (Legacy System Migration Workbench) or BAPIs for bulk data entry that persists in tables. For detailed guidance, you can check SAP’s documentation on data migration and integration tools.

jamesalery1
Giga Contributor

You can automate data generation using random data generators like Faker or Mockaroo, which allow you to generate test data programmatically and save it to the database. For SAP, consider using LSMW (Legacy System Migration Workbench) or BAPIs for bulk data entry that persists in tables. For detailed guidance, you can check SAP’s documentation on data migration and integration tools.