Contributions
Re: web service parameter value changed
I've done little to troubleshoot this matter, but ran across the jscript implementation of webservice calls and that's the workaround I've pursued. For anyone else interested, here is the function (indentation notwithstanding) as it is working for me: function CallWS(wsURL, wsRequest, wsMethod) { var xmlResponse; var xmlResult; var XmlHttpRequest = new ActiveXObject("MSXML2.XMLHTTP.3.0"); XmlHttpRequest.open("POST", wsURL, false); XmlHttpRequest.setRequestHeader("Content-type", "text/xml; charset=utf-8"); XmlHttpRequest.setRequestHeader("SOAPAction", "http://tempuri.org/" + wsMethod); XmlHttpRequest.send(wsRequest); xmlResponse = XmlHttpRequest.responseXML; xmlResult = xmlResponse.text; if (xmlResult == "") { xmlResult = xmlResponse.xml; } return xmlResult; }1.6KViews0likes0CommentsRe: web service parameter value changed
Thanks, Alex. I appreciate the response, and it may be that TestComplete is replacing that character with CR/LF but I don't understand why it would. I am passing a string (in quotes) that includes this character, which is simply ANSI char 182. Being within my quoted string, I don't understand why it would be "messed with" by TestComplete. What SoapUI passes through is exactly what I pass in my string, other text along with two occurrences of character 182. As noted, TestComplete replaces both occurrences of that character within the string with "??". I would really prefer to use TestComplete for this purpose (a very small part of an extensive winform test).Any thoughts on a workaround within TestComplete?1.8KViews0likes3Commentsweb service parameter value changed
I am using TestComplete to access a very simple internal web service that feeds data to a SQL database. When I do this in TestComplete, the string RecordData is storedin the database with the delimiter (¶) is converted to "??" . The very same data passed to the same web service in SoapUI stores the RecordData delimiters correctly in the database. Perhaps there is a setting in TestComplete that I am missing.The "Units encoding" setting of the project has no effect. [JScript] var RecID; Project.Variables.RecordType = "StopUpdate"; Project.Variables.RecordData = "tripID=0¶RunID=100¶StopID=48000501"; RecID = WebServices.DispatchInterface.SendToMDT2(Project.Variables.RecordType, Project.Variables.RecordData); Thanks for any thoughts or suggestions on how to address this.Solved1.8KViews0likes5CommentsScript Extensions: recording multiple actions as a single keyword operation
I'm having resonable success writing script extensions for keyword tests including recording steps as keyword operations. However, I'm encountering an issue trying to capture more than one action in the recording process and creating just one keyword operation from them. The regular expression I'm using in the IsSupported event to interpret the validity of the recorded code works (tested through other means) to include the CrLf between the lines, but TestComplete seems to only pass one line of script code to each IsSupported event. An example is these two recorded actions (as they show up in the Code value of the OnGenerate event): Call Aliases.MyLookupField.SetText("Smith") Call Aliases.MyLookupField.Keys("[Tab]") I'm wanting to capture these two recorded actions and create one Keyword operation. I am able to capture each action separately, but it also creates two separate Keyword operations, when I only want one. Creating one correct keyword operation from both actions is not a problem, but avoiding a second keyword operation is. Is there either: 1) a way to capture both actions (i.e. lines of code) in the IsSupported event? 2) or is there a way to eliminate or abort creation of an unneeded keyword operation in the OnGenerate event? Thanks for any feedback.3.7KViews0likes0Comments