user118892: Starting a Private Node using bitcoin-qt.
And then I generate a pair of keys for my own testing.
But unfortunately whenever I reset the node, it will generate a new pairs of keys, it makes my recursive test very tedious.
Is there a way for me to load a private key into my wallet instead of using getnewaddress every time and test with a new pair of keys?

user13866: Replace wallet.dat with a saved copy

118892: <p>Starting a <strong>Private Node</strong> using <code>bitcoin-qt</code>.</p>
<p>And then I generate a pair of keys for my own testing.</p>
<p>But unfortunately whenever I reset the node, it will generate a new pairs of keys, it makes my recursive test very tedious.</p>
<p>Is there a way for me to load a private key into my wallet instead of using <code>getnewaddress</code> every time and test with a new pair of keys?</p>
 13866: <p>Replace wallet.dat with a saved copy</p>
