public void BluesCasesEnergy(OpenAPIData input) { //string appKey = "2spry01f9atshr08nljq21it"; //string secret = "ThDhX8hX0MccCNEGgUHI89KK7gFg="; //string pathTestCase = @"D:\BluesBuildingMobileServiceAPI Test Cases.xlsx"; //string pathCaseResult = @"D:\BluesBuildingMobileServiceAPI Test Cases_R.xlsx"; bool IsUpdateFlag = false; //Read test cases from excel to TestCases[] OpenAPICases[] Cases = ExcelHelper.ImportToOpenAPICases(pathTestCase, input.InputData.SheetName); //Get response body from request body in Cases[] Cases = RequestDataDtoConvertor.RequestToResponse(Cases, appKey, secret, IsUpdateFlag); //Compare expected response body and actual response body in Cases[] if (!IsUpdateFlag)//Do not need compare response bodys when update cases in excel file { Cases = CompareResponseBody.CompareCases(Cases); } //Write the result in Cases[] to excel file ExcelHelper.ImportOpenAPICasesToExcel(Cases, pathTestCase, pathCaseResult, input.InputData.SheetName); }
public void JazzCases(OpenAPIData input) { bool IsUpdateFlag = false; //Read test cases from excel to TestCases[] OpenAPICases[] Cases = ExcelHelper.ImportToOpenAPICases(pathTestCase, input.InputData.SheetName); //Get response body from request body in Cases[] Cases = RequestDataDtoConvertor.RequestToResponse(Cases, appKey, secret, IsUpdateFlag); //Compare expected response body and actual response body in Cases[] if (!IsUpdateFlag)//Do not need compare response bodys when update cases in excel file { Cases = CompareResponseBody.CompareCases(Cases); } //Write the result in Cases[] to excel file ExcelHelper.ImportOpenAPICasesToExcel(Cases, pathTestCase, pathCaseResult, input.InputData.SheetName); }