Forum Discussion

sanj's avatar
sanj
Super Contributor
7 years ago

Caching gottcha! running data driven test steps!

I am just providing some info on something I observed

when running a data driven test 

Make sure you run data source first by hitting play!

 

 

then run the teststep

 

 

If you initially run the test without hitting play on datasource chances are data will not be cached and nothing will be sent to the request!

Now if you are running the whole test case you wont have this issue!

 

7 Replies

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    There's an option in the Data Source options to "Preload data if possible." Also, I've noticed that if the DataSource is in your test case, running the test case as a whole SHOULD initialize the data source. 

    • sanj's avatar
      sanj
      Super Contributor

      groovyguy would not preload be same as caching so I would still have an issue if just running the test step.

       

      • groovyguy's avatar
        groovyguy
        Champion Level 1

        I believe it would act as caching, but you shouldn't need to run the data source to cache data.