Skip to content

Extended usage

MCarterSitemorse edited this page Jan 3, 2018 · 1 revision

By default, the SCI Client returns the URL to the SmartView page however it can provide much more detail about the checks and measured that have been tested. When the extendedReponse = true value is added to the JSON sent to the SCI, an extended JSON data block will be returned at the end of the test.

SCIClient client = new SCIClient(licenceKey);
client.setExtendedReponse(true);
try {
	String json = client.performTest(“http://localhost/test.html”);
}
catch (SCIException e) {
	e.printStackTrace();
}

The following excerpt is from the extended JSON data block and shows detail about the tests for user experience.


      "ux": {
        "diagnostics": [
          {
            "category": "Broken link", 
            "total": 1, 
            "title": "Access is denied"
          }, 
          {
            "category": "", 
            "total": 1, 
            "title": "Fault with email address"
          }, 
          {
            "category": "Broken link", 
            "total": 1, 
            "title": "File not found"
          }
        ], 
        "total": 3, 
        "title": "User experience"
      }

The JSON can be parsed to provide additional feedback to content managers or be used to control publishing or create task lists.

Clone this wiki locally