Create an integration tests project

Procedure

  1. In your Sitefinity project, create a new class library project. The project build output path must lead to the bin folder.
  2. Install Progress.Sitefinity.TestIntegration.Framework NuGet package in your Sitefinity project.
  3. For the IntegrationTestsSettings.json file, set the Copy to Output Directory build property to Copy if newer or Copy always.

    NOTE: Your Sitefinity website must contain the configuration file IntegrationTestsSettings.json in the Sitefinity project bin folder. 

  4. Update the integration tests settings to match your project.
    Note that the default Sitefinity authentication protocol OAuth 2.0 must be used. For more information, see Configure Oauth2.
  5. (Optional) You can customize when the ClassCleanup() methods are executed by using the assembly attribute ClassCleanupExecution
    Add [assembly: ClassCleanupExecution(ClassCleanupBehavior.EndOfClass)]

    By default, the ClassCleanupExecution is after all tests of the assembly are executed.
    You can change this by using the assembly attribute ClassCleanupExecution
    • ClassCleanupBehavior.EndOfAssembly: Called after all tests of the assembly are executed
    • ClassCleanupBehavior.EndOfClass: Called after all tests of the class are executed

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?