Scripted Data Source test load data - stop processing after test load records have been inserted?

AntonyL
Tera Contributor

I have a Data Source with Type "Custom (Load by script)", which uses a script to fetch data through some expensive/time consuming process. When running the UI Action "Test Load 20 Records" it uses only 20 of the retrieved records, meaning a lot of effort is wasted generating potentially thousands of record inserts that will never be used for that test load. Is there some way for the script to "know" how many records are expected from it, so I can stop processing after that, and improve test load times?

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @AntonyL , 

The "Test Load 20 Records" option is a kind of testing the connection and retrieve some data for review. 

You can try with "Load All Records" and get all data in one go.

 

-Thanks,

AshishKM

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

AntonyL
Tera Contributor

If anyone is wondering, it seems to not be possible for scripted Data Sources, the test load is most likely only useful for other types of loads.