How to prevent ReadyAPI from randomly changing how it stores empty XML elements?
Why does ReadyAPI change how it stores a blank XML tag from, say <con:properties/> to <con:properties></con:properties> If I make one change and save, I may see many of these differences, which complicates review of the code. I see this in projects where Composite project is false, and in projects where it is true. The representation of blank XML elements is one of many things about how ReadyAPI stores a project that seem to change at random with each new version or sometimes randomly within the same version. I have tried setting the flag "Pretty prints project files", but this is not sufficient to stop this noise. Is there some other flag I can set so that the method for encoding the project doesn't obscure actual logic changes when I look at the differences? Preferably something that gets remembered in the project, rather than depending on a user setting? References: The following are a few postings that seem relevant, but don't clean up the random XML representations. "Version control - Diff is very confusing for ReadyAPI projects?" https://community.smartbear.com/t5/API-Functional-Security-Testing/Version-control-Diff-is-very-confusing-for-ReadyAPI-projects/m-p/209420#M47734 - Answer: Yes, currently, if you change one thing in ReadyAPI, several things in different places of the project might change as well. "How do I minimize merge conflicts in a ReadyApi composite project when working as part of a team?"https://community.smartbear.com/t5/API-Functional-Security-Testing/How-do-I-minimize-merge-conflicts-in-a-ReadyApi-composite/m-p/141151 - No accepted answer - Recommendation to check the flag "Pretty prints project files" "While this allows you to see exactly what has changed when diff-ing versions, it does have the problem that this is an application setting, thus you have to make sure all users set this value manually on their copies of ReadyAPI (If a user does not set this in their copy ReadyAPI it will revert to saving on a single line). Ideally I would like to see this as a project setting."Solved1.7KViews0likes7CommentsConvert XML to Json format - jScript
Hey guys, I curretly have an XML file that I use to map some test data so I could create another XML file and send it somwhere. Current XML format is: <Mappings> <Test id="Test_1000_test"> <TestIdMapping>Test_1001_test1</TestIdMapping> <TestIdMapping>Test_1002_test2</TestIdMapping> </Test> <Test id="Test_2000_test"> <TestIdMapping>Test_2001_test1</TestIdMapping> <TestIdMapping>Test_2002_test2</TestIdMapping> <TestIdMapping>Test_2003_test3</TestIdMapping> </Test> <Mappings> Basically I am mapping 1001, 1002 to 1000....... I would like to switch this file to JSON and have it in TestComplete instead of reading it from the outside (external XML). What's is the best way to it ? I have an idea in head but I would like your opinion. Please note that file could have up to few hundreds tests.1.9KViews0likes11CommentsHow to represent a mixed xml node
I'm trying to represent a mixed xml node in JSON schema. The mixed node has multiple attributes and text() contents Example: <desc language="en-US">Description text</desc> I got to here: "application/xml": { "schema": { "type": "object", "properties": { "language": { "type": "string", "xml": {"attribute": true} }, "#text": { "type": "string" } }, "xml": {"name": "desc"} } } But the Swagger UI (v3.38.0) generates: <desc language="string"><#text>string</#text></desc> Is this a bug in the framework and should #text just always be rendered as text(), is there some kind of syntax missing that allows me to be specific about what #text actually is, is there a different way to do this other than #text?SolvedInvalid timeout formats for SOAP Request
hi i am getting invalid timeout formats in response below is my SOAP request <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <SecurityHeader xmlns="http://services.medconnect.net/submissionportal"> <UserName>2143883</UserName> <Password><![CDATA[I3zt!7&W]]></Password> </SecurityHeader> </soap:Header> <soap:Body> <SubmitSync xmlns="http://services.medconnect.net/submissionportal"><request> </request> <requestFormat>EDI</requestFormat> <responseFormat>EDI</responseFormat> <synchronousTimeout>00:01:00</synchronousTimeout> <submissionTimeout>00:01:00</submissionTimeout> </SubmitSync> </soap:Body> </soap:Envelope>512Views0likes0CommentsFaultString - Illegal semicolon, not in group
Hi All, i am having soap Webservice , in which i have to pass special characters like (&,;,>,<). When i use these characters in request .i am getting below error <faultstring>Illegal semicolon, not in group</faultstring> Critical Request attribute <link>"http=test.test.com&csf=1&web=1&e=abcd"</link> Could you please suggest how to resolve the error730Views0likes1CommentI don't want the Optional elements in XML message to be automatically added by ReadyAPI
Good afternoon, I am using ReadyAPI 3.1.0 There was a big difference between my XML message yesterday and the message today. It looks as if ReadyAPI has automatically added all kind of optional elements in the message without me knowing about it. This is very disturbing! Example of message as defined yesterday: Example of the same message as it looks today:Solved1.6KViews0likes4CommentsGroovyUtils XMLHolder throwing Xpath syntax error when XML node value contains escaped character.
GroovyUtils throwing error when XML node value contains escaped characters. In my script, I'm accessing a node that contains the description of an error. That node when read by my XMLHolder throws this error: Caused by: java.lang.RuntimeException: net.sf.saxon.trans.XPathException: XPath syntax error at char 9 on line 2 in {\nInvalid part number}: Unexpected token name "part" beyond end of expression It appears that the node I'm reading contains the value "\n", and when the holder tries to read it, it throws the error. How can I read the node, with the escaped value, and not bomb out?3.8KViews0likes12CommentsExcel datasink to consume repeating xml elements without having to map multiple properties
Currently there's no functionality that provides the abiltiy to map an XML rest response with repeating elements to a datasink without mapping each indivitual repeating element. Example:https://community.smartbear.com/t5/SoapUI-Pro/How-to-map-repeating-elements-from-xml-response-to-datasink/m-p/199559#M45747 Is there a way to map a repeating element from a response into a datasink automatically, rather than having to click getData and manually clicking each one. So, if I have 25 repeating elements. Widgets again. They all have the same attributes. A1, A2, A3. I want my sink to collect each of the attributes from each of the widgets, but I don't want to have to map it explicitly in the data sink property and the every one of the 25 widgets (x3 attributes) in my response. example: <widgets> <widget> <att1>abc</att1> <att2>xyz</att2> <att3>asd</att3> </widget> <widget> <att1>abc</att1> <att2>xyz</att2> <att3>asd</att3> </widget> ... </widgets> In my datasink, I'd like to map these out 1 element to 1 row in excel: excel row 1 (first widget): att1: abc,att2: xyz,att1: asd excel row 2 (second widget): att2: abc,att2: xyz,att1: asd What I'm trying to avoid is this: All the way through dozens of these objects.1.6KViews2likes1CommentHow to map repeating elements from xml response to datasink
I've been scouring the doc, and I can't seem to find a good answer here. Is there a way to map a repeating element from a response into a datasink automatically, rather than having to click getData and manually clicking each one? So, if I have 25 repeating elements. Widgets again. They all have the same attributes. A1, A2, A3. I want my sink to collect each of the attributes from each of the widgets, but I don't want to have to map it explicitly in the data sink property and the every one of the 25 widgets (x3 attributes) in my response. example: <widgets> <widget> <att1>abc</att1> <att2>xyz</att2> <att3>asd</att3> </widget> <widget> <att1>abc</att1> <att2>xyz</att2> <att3>asd</att3> </widget> ... </widgets> In my datasink, I'd like to map these out 1 element to 1 row in excel: excel row 1 (first widget): att1: abc,att2: xyz,att1: asd excel row 2 (second widget): att2: abc,att2: xyz,att1: asd Is there a way to do that?Solved2.7KViews0likes6Commentsgetting XML DOM tagName fails
MicrosoftXML DOM Propertiespage shows "tagName" as a property. But when I try to use it with # Python Log.Message("Node tag: " + mynode.tagName) I get "AttributeError: The object does not support this property or method" I can use "nodeName", "nodeValue", "xml", "text", or various other properties with no problem. Indeed, the "xml" property shows the tag name and the value. But how do I get just the tagName? Why doesn't it work, or why is it not supported?Solved1.2KViews0likes3Comments