You can use the playback connection and select historical data in the controller if you wanted to playback historical data, you otherwise need to compare likewise tests. Comparing historical data vs realtime data is not the same type of test. Please make sure you are reviewing the links that I have provided in previous posts that covers common discrepancies between testing modes.
If your script works as you expect in realtime then you will very likely need to only use realtime testing modes. In that case you can use a live data connection or playback with playback data selected and not use historical data.
Comment