For any test case that we are sending to a soap request, I am getting the same result with the error below. When I run the soap request directly, I have no problem sending and completing the request.
I have updated a CACert in the JRE that I know works correctly in my environment. I verified it works with other applications like SQLDeveloper.
These scripts were built using the previous version of Katalon and this is on the current version.
I have gone through and clicked “rebuild scripts” under the Groovy tab on Katalon settings but it didnt appear to do anything.
No matter what I am try I get the same result.
Please help. Hopefully there is enough here for this answer to be obvious.
Thanks
I get the following error:
2019-01-07 11:31:00.516 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m--------------------e[0;39m
2019-01-07 11:31:00.523 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39mSTART Test Cases/WHC/WHC - MTA/ModemMTA - LSC v. 2e[0;39m
2019-01-07 11:31:01.061 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) MTAMAC = 00:15:D1:43:91:D1e[0;39m
2019-01-07 11:31:01.086 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) LineStatus = falsee[0;39m
2019-01-07 11:31:01.105 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) LSResult = e[0;39m
2019-01-07 11:31:02.312 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) TC_MTACMMAC = com.kms.katalon.core.testdata.reader.SheetPOI@4baf352ae[0;39m
2019-01-07 11:31:02.382 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) TC_MTAMAKE = com.kms.katalon.core.testdata.reader.SheetPOI@40e10ff8e[0;39m
2019-01-07 11:31:02.450 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) TC_MTAMODEL = com.kms.katalon.core.testdata.reader.SheetPOI@51e8e6e6e[0;39m
2019-01-07 11:31:02.596 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) TC_MTAMAC = com.kms.katalon.core.testdata.reader.SheetPOI@5b080f3ae[0;39m
2019-01-07 11:31:02.653 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[39m(Default) TC_MTACONTROL = com.kms.katalon.core.testdata.reader.SheetPOI@1de5f0efe[0;39m
2019-01-07 11:31:04.053 e[39mDEBUGe[0;39m e[36mtestcase.ModemMTA - LSC v. 2 -e[0;39m e[39m1: response = sendRequest(findTestObject(“WHC SOAP/modemMTAPoll”, [“MTAMAC”:TC_MTACMMAC]))e[0;39m
2019-01-07 11:31:05.198 e[1;31mERRORe[0;39m e[36mc.k.k.core.keyword.internal.KeywordMain -e[0;39m e[31m❌ Unable to send request (Root cause: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at ‘https://pulse-uat.suddenlink.cequel3.com/tech-ninja-whc-ws/endpoints/WholeHomeCheckService.wsdl’.: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)e[0;39m
2019-01-07 11:31:05.212 e[1;31mERRORe[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[31m❌ response = sendRequest(findTestObject(“WHC SOAP/modemMTAPoll”, [“MTAMAC”:TC_MTACMMAC])) FAILED.e[0;39m
e[31mReason:e[0;39m
e[31mcom.kms.katalon.core.exception.StepFailedException: Unable to send request (Root cause: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at ‘https://pulse-uat.suddenlink.cequel3.com/tech-ninja-whc-ws/endpoints/WholeHomeCheckService.wsdl’.: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)e[0;39m
e[31m at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)e[0;39m
m
The Test Case itself:
response = WS.sendRequest(findTestObject(‘WHC SOAP/modemMTAPoll’, [(‘MTAMAC’) : TC_MTACMMAC]))
WS.comment(‘TC_MTACMMAC =’+TC_MTACMMAC)
WS.comment(‘TC_MTAMAC =’ +TC_MTAMAC)
WS.comment(‘TC_MTAMake =’ +TC_MTAMAKE)
WS.comment(‘TC_MTAModel =’ +TC_MTAMODEL)
WS.comment(‘TC_MTAControl =’ +TC_MTACONTROL)
String parseXmlValue(String xmlString, String tag) {
String retVal = ‘’
int start = xmlString.indexOf(‘<’ + tag)
if (start != -1) {
start = ((start + tag.length()) + 2)
int end = xmlString.indexOf(‘</’ + tag, start)
if (end != -1) {
retVal = xmlString.substring(start, end)
}
}
return retVal
}
String val = parseXmlValue(response.getResponseText(), “modemMtaLineStatusState”)
println val
if(val.indexOf(“in service (1)”) != -1) {
LSResult = '(1)'
}
else if (val.indexOf(“in service, in use (2)”) != -1) {
LSResult = '(2)'
}
else if (val.indexOf(“in service, trouble - mismatch (3)”) != -1) {
LSResult = '(3)'
}
else if (val.indexOf(“TTM not there - family equipment error (4)”) != -1) {
LSResult = '(4)'
}
else if (val.indexOf(“test fail (5)”) != -1) {
LSResult = '(5)'
}
else if (val.indexOf(“being diagnosted (6)”) != -1) {
LSResult = '(6)'
}
else if (val.indexOf(“in service, line card protection state (7)”) != -1) {
LSResult = '(7)'
}
else if (val.indexOf(“out of service, normal un-provisioned (8)”) != -1) {
LSResult = '(8)'
}
else if (val.indexOf(“OOS normal (9)”) != -1) {
LSResult = '(9)'
}
else if (val.indexOf(“OOS trouble (10)”) != -1) {
LSResult = '(10)'
}
else if (val.indexOf(“OOS test fail (11)”) != -1) {
LSResult = '(11)'
}
else if (val.indexOf(“OOS trouble, diag state (12)”) != -1) {
LSResult = '(12)'
}
else if (val.indexOf(“out of service, line card protection state (13)”) != -1) {
LSResult = '(13)'
}
else if (val.indexOf(“Unknown”) != -1) {
LSResult = 'Unknown'
}
else if (TC_MTACONTROL == ‘Y’) {
LSResult = 'Control'
}
WS.comment(‘LSResult =’ +LSResult)
WS.comment(‘Modem MTA Line Status State =’ +val)