ATS CI/CD

0
Hello  i have tried using the shell script provided by the ATS to run the test suites in Jenkins build machine, got the following error, could someone suggest , whats the issue with this API call.    Build error:  Response Received. Starting the GetJobStatus API call... Sending SOAP Request To Server: https://ats100.mendixcloud.com/ws/GetJobStatus Initiating Send. Send Complete, Waiting For Response. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (500) Internal Server Error." At C:\Users\n102447\AppData\Local\Temp\hudson3418610297244916134.ps1:21 char:9 + $resp = $soapWebRequest.GetResponse() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException You cannot call a method on a null-valued expression. At C:\Users\n102447\AppData\Local\Temp\hudson3418610297244916134.ps1:22 char:9 + $responseStream = $resp.GetResponseStream() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At C:\Users\n102447\AppData\Local\Temp\hudson3418610297244916134.ps1:24 char:9 + $ReturnXml = [Xml] $soapReader.ReadToEnd() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull You cannot call a method on a null-valued expression. At C:\Users\n102447\AppData\Local\Temp\hudson3418610297244916134.ps1:25 char:9 + $responseStream.Close() + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Response Received. Status Test Run is: , please wait... Sending SOAP Request To Server: https://ats100.mendixcloud.com/ws/GetJobStatus Initiating Send. Send Complete, Waiting For Response. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (500) Internal Server Error." At C:\Users\n102447\AppData\Local\Temp\hudson3418610297244916134.ps1:21 char:9 + $resp = $soapWebRequest.GetResponse() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException
asked
1 answers
1

Hello Naresh,

Based on the error log you provided it's hard to tell what went wrong. But did you change the following 4 variables in your script correctly:

$url = 'ENTERURL'
$appapitoken = 'APPAPITOKEN'
$appid = 'APPID'
$jobtemplate = 'JOBTEMPLATE'

 

$url should be 'https://ats100.mendixcloud.com/ws/RunJob' (so this becomes: $url = 'https://ats100.mendixcloud.com/ws/RunJob' in your script).

On this link under 4.1 and 4.2 you can see how to find $appapitoken and $jobtemplate in ATS.

And $appid is the App ID you can find in sprintr under Settings>General

 

Regards,

Charlie

 

 

answered