Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • KsuValk 32 posts 52 karma points
    Oct 12, 2010 @ 23:50
    KsuValk
    0

    User Control to Automate Test Content Create/Delete?

    Has anyone already written a generic user control that would aid in auto-creation and deletion of test content?

    We need to auto-generate multiple content items under a given node, to test paging and load performance.  I was thinking of a user control that maybe prompted for parent node id and number of content items to create then on submit it auto-created content  items.

    Maybe those content items have some tag or marker in the content that makes them easy to find on a subsequent use of the user control to find and remove that test data.

    Anyone done anything similar they'd like to share?

     

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 13, 2010 @ 08:44
    Richard Soeteman
    1

    Hi,

    What you could do is import some dummy data on the parent node using CMSImport. I use this TestData generator to create dummy data files in csv. When you want to delete those items you could either remove the whole folder or use the Content Maintenance Dashboard package to delete each individual item.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft