Start Here SortSite Developer Manual

SortSite Developer Edition provides a command line tool called SortSiteCmd, which produces the same reports as the SortSite desktop application. The command line interface works with continuous integration tools like Jenkins, and build tools like Apache Ant and MSBuild.

The command line takes one parameter, the name of an XML configuration file describing the site to scan:

SortSiteCmd Test.ssconfig

The configuration file looks like this:

<Site>
	<!-- scan this URL -->
	<ProcessURL>http://www.example.com/</ProcessURL>

	<!-- and these additional URLs as part of the same site -->
	<ProcessURL>http://www.example.com/landing-page1</ProcessURL>	
	<ProcessURL>http://www.example.com/landing-page2</ProcessURL>	

	<!-- for this scope, options are scopePage, scopeFolder or scopeSite -->
	<Scope>scopeSite</Scope>

	<!-- using these SortSite exported rule settings (optional) -->
	<SettingsFile>/Projects/Test.sset</SettingsFile>

	<!-- save results in this directory - must have a trailing slash -->
	<ReportOutputPath>/Projects/TestOutput/</ReportOutputPath>

	<!-- return a non-zero error code from SortSiteCmd.exe if actual issues found don't match these counts -->
	<!-- use this in automated builds or CI tools to flag an error when tests fail -->
	<ExpectedResults>
		<class name="ALL" expected="0" />	<!-- expected total issue count  -->
		<class name="ERR" expected="0" />	<!-- expected issue count on Errors tab -->
		<class name="ACC" expected="0" />	<!-- expected issue count on Accessibility tab -->
		<class name="BUG" expected="0" />	<!-- expected issue count on Compatibility tab -->
		<class name="SEO" expected="0" />	<!-- expected issue count on Search tab -->
		<class name="USE" expected="0" />	<!-- expected issue count on Usability tab -->
		<class name="W3C" expected="0" />	<!-- expected issue count on Standards tab -->
	</ExpectedResults>
</Site>

Find out more

Note: The command line tool is only available in Developer Edition. It is not available in other products including SortSite Standard, SortSite Professional or the Desktop Suite.