We make placebo “pills” (recordings) from local machines, using user credentials, against environments set up to produce the appropriate test data. For example, you might populate a DynamoDB table with records. Then, using the Python console or a script, you attach placebo in the recording mode to a boto3 session and make the appropriate SDK calls, which stores the responses in a file (but is not credential-dependent, other than that the permissions are the same as what will be in testing). Then, when testing, you use it in playback mode with the file created before. We do that on a roughly per-test basis, though tests can share files if they don’t have different requirements.

Cloud Robotics Research Scientist at @iRobot

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store