Wednesday, August 29, 2018

How to Automatically Pull Data From a Database for Your Performance Test

Your performance test script needs test data to run your scenarios. But instead of hard-coding values in your test script, you can benefit from dynamically populating parameters with data from a database such as MySQL or MongoDB. That way you have a clean separation between (potentially sensitive) data and logic, and it's easier to maintain your test scripts.

Another benefit you get when running a performance test — for example, a load test — by automatically pulling data sets from a database, is that each iteration can use a unique set of data, which will result in a test that resembles more realistic traffic to your system under test (e.g. a Website or API).



from DZone.com Feed https://ift.tt/2NrPpeI

No comments:

Post a Comment