Forum Discussion
Hello,
Sorry I'm a bit late to the party here. I no longer use testcomplete and testrail, but I'll try to help where I can.
leandropoblet, you posted an image that had an exception message that pointed to the testrail script file, line 86, column 5. Can you please post the statement from that line? I'm guessing it's the
testrail.apiClient().SendPost(apiArgsAsString, dataDictionaryObj);
line.
Next, I would put a debug breakpoint on that statement, and then run the function that you've been testing with. Once TC stops at that line, use the Locals panel and/or the Evaluate dialog to get the apiArgsAsString value and dataDictionaryObj (may have to change the latter into a string or json object). Paste those values and we can go from there. My guess is that apiArgsAsString is not a valid string.
Another place to check would be the client root endpoint is correct
var client = dotNET.Gurock_TestRail.APIClient.zctor("https://testrail.blahblah1234.com/testrail/");