More in this section

Forums / Developing with Sitefinity / Unit testing modules

Unit testing modules

4 posts, 0 answered
  1. ColinBowern
    ColinBowern avatar
    20 posts
    Registered:
    12 Aug 2012
    24 Feb 2009
    Link to this post
    Any advice from the Sitefinity team or others on how they are testing their work?

    Cheers,
    Colin
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    24 Feb 2009
    Link to this post
    Hi Colin,

    We are doing functional tests using Telerik's Web UI Test Studio. Apart from that, we have a predefined sets of manual tests, but we are going to replace them with automated tests anyway.

    We can elaborate more if needed.

    Regards,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Scott McNeany
    Scott McNeany avatar
    44 posts
    Registered:
    09 Mar 2010
    02 Jul 2010
    Link to this post
    Hello,

    I am using the Sitefinity API to get Generic Content for our 'non-Sitefinity' sites, and it is working well. However, I don't seem to be able to run my automated unit tests against the code that hits Sitefinity. I believe this is because Sitefinity must run under context of an Http Request. Is this correct?

    The error I get sort of suggests otherwise. It says 'Could not load file or assembly Telerik.Blogs'. However, since this code works just fine when the website connects to it, and fails when the automated unit tests connects to it, I feel there is something else going on.

    Let me know if you have any suggestions or if you need more information.

    Thank you,

    Scott
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Jul 2010
    Link to this post
    Hello Scott McNeany,

    There are several places where we use HostingEnvironment and IsHosted property which gets a value indicating whether the current application domain is being hosted by an ApplicationManager object. You could try getting the objects with web services and then pass them to your tests. If you use WCF services you need to enable AspNetCompatibility

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered