src/appveyor_reporter.js
function setApi() {
            self.api = {};
            if(process && process.env && process.env.APPVEYOR_API_URL) {
                var fullUrl = process.env.APPVEYOR_API_URL;

                var urlParts = fullUrl.split("/")[2].split(":");
                self.api = {
                    host: urlParts[0],
                    port: urlParts[1],
                    endpoint: "/api/tests/batch"
                };
            }
            else {
                throw Error("Not running in AppVeyor environment");
            }
        }
function setApi() {
            self.api = {};
            if(process && process.env && process.env.APPVEYOR_API_URL) {
                var fullUrl = process.env.APPVEYOR_API_URL;

                var urlParts = fullUrl.split("/")[2].split(":");
                self.api = {
                    host: urlParts[0],
                    port: urlParts[1],
                    endpoint: "/api/tests/batch"
                };
            }
            else {
                throw Error("Not running in AppVeyor environment");
            }
        }
function setApi ( ) { self . api = { } ; if ( process && process . env && process . env . APPVEYOR_API_URL ) { var fullUrl = process . env . APPVEYOR_API_URL ; var urlParts = fullUrl . split ( "/" ) [ 2 ] . split ( ":" ) ; self . api = { host : urlParts [ 0 ] , port : urlParts [ 1 ] , endpoint : "/api/tests/batch" } ; } else { throw Error ( "Not running in AppVeyor environment" ) ; } }
set API host information
set API host information