More in this section
Forums / Developing with Sitefinity / UnitTestRunner Run test as user

UnitTestRunner Run test as user

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
5 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    03 Feb 2016
    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 2016
    Link to this post
    Is this just not possible?
  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    06 Sep 2017
    11 Feb 2016
    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 2016 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:
    06 Sep 2017
    12 Feb 2016
    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