Skip to content

Instantly share code, notes, and snippets.

@nehemiahj
Last active July 14, 2022 00:51
Show Gist options
  • Save nehemiahj/7f6e6948043e0703e35ff97c9f406e76 to your computer and use it in GitHub Desktop.
Save nehemiahj/7f6e6948043e0703e35ff97c9f406e76 to your computer and use it in GitHub Desktop.
StopContentTest
<!-- CAN CANCEL TEST
Determine if a test can be cancelled
-->
<canCancelTest patch:source="Sitecore.ContentTesting.config">
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.IsAdmin, Sitecore.ContentTesting"/>
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.IsTestOwner, Sitecore.ContentTesting"/>
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.HasRole, Sitecore.ContentTesting">
<roles hint="list:AddRole">
<role>sitecore\Analytics Advanced Testing</role>
</roles>
</processor>
</canCancelTest>
<!-- CAN STOP TEST
Determine if a test can be stopped
-->
<canStopTest patch:source="Sitecore.ContentTesting.config">
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.IsAdmin, Sitecore.ContentTesting"/>
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.IsTestOwner, Sitecore.ContentTesting"/>
<processor type="Sitecore.ContentTesting.Pipelines.CanControlTest.HasRole, Sitecore.ContentTesting">
<roles hint="list:AddRole">
<role>sitecore\Analytics Advanced Testing</role>
</roles>
</processor>
</canStopTest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment