public void markSession(string state) { Console.WriteLine("sessionId: " + this.sessionId); if (this.sessionId != null && this.sessionId.Length > 0) { AsayerTestResult atr = new AsayerTestResult(this.sessionId, state, this.apikey); this.sendResults(atr.getJsonString()); } else { Console.WriteLine("Asayer: You have to initiate the AsayerWebDriver first in order to call markTestState."); } }
public void markSession(string state, string requirementID, List <AsayerTestStatus> testStatus) { if (this.sessionId != null && this.sessionId.Length > 0) { if (requirementID != null && requirementID.Length > 0 && testStatus.Count > 0) { AsayerTestResult atr = new AsayerTestResult(this.sessionId, state, this.apikey, requirementID, testStatus); this.sendResults(atr.getJsonString()); } else { Console.WriteLine("Asayer: check the requirementID and the testStatus values."); } } else { Console.WriteLine("Asayer: You have to initiate the AsayerWebDriver first in order to call markTestState."); } }