+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / UnitTestRunner Run test as user

UnitTestRunner Run test as user

5 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    03 Feb
    Link to this post
    Is there any easy way to have a test run as a specific user?
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    08 Feb
    Link to this post
    Is this just not possible?
  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    27 Sep 2016
    11 Feb
    Link to this post
    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
     
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    11 Feb in reply to Svetoslav Manchev
    Link to this post

    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

  5. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    27 Sep 2016
    12 Feb
    Link to this post
    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
     
5 posts, 0 answered