UnitTestRunner Run test as user - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

UnitTestRunner Run test as user

  • UnitTestRunner Run test as user
  • Is there any easy way to have a test run as a specific user?
  • Is this just not possible?
  • Hi Steve,

    This is supported scenario.

    More information could be found here:
    https://github.com/Sitefinity-SDK/Telerik.Sitefinity.Samples.IntegrationTests#different-user-execution-support

    I hope this helps.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • Oh good, I thought I remembered seeing that somewhere, but it's not in the docs...didn't check the git page.

    SF can log users in w/out their passwords... is the PW optional here?

    I don't want to store PWs in the tests

  • Hello Steve,

    You can create user/s through the API before the tests running and then delete it/them.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items