Ever tried adding 2K+ comments to an article?
A few days back I encountered a strange behavior while working on an issue which I feel worth sharing. The test case is to check comments section when number of comments for an article are ‘n-1’, ‘n’ and ‘n+1’ (where n = 2000, 3000, etc.). My goal is to identify the point where the comment section breaks in lower environment with ‘n’ comments. I queried QA database and didn’t find much data to check all scenarios. Now my challenge is to quickly create dummy data in QA environment to identify the point where comment section breaks. How to quickly add bulk comments to an article? To do this there are several approaches … some of them are a) Add entries (comments) manually till required number of comments were added. Cons: Clumsy and time taking process. b) Write DB scripts to populate numerous records on one go. Pros: Quick and efficient. Cons: This approach works in most of the cases but not always. Also, it doesn’t seem...