private fun postResults() { this.reportTestCase.host.updateSystemInfo(false) this.trState.systemInfo = this.reportTestCase.host.getSystemInfo() val factoryPost: Operation = Operation.createPost(this.remoteTestResultService) .setReferer(this.reportTestCase.host.getReferer()).setBody(this.trState) .setCompletion(null) this.reportTestCase.host.testStart(1) this.reportTestCase.host.sendRequest(factoryPost) try { this.reportTestCase.host.testWait() } catch (throwable: Throwable) { throwable.printStackTrace() } }
Send current test state to a remote server , by creating an instance for this particular run .