Contributions
Export Project generates an empty ZIP file
Hi I usually share with my colleagues our TestProjects in ReadyAPI (SoapUIpro). When i right-click on the project file and click on export, it generates an empty ZIP-File. When my colleagues are doing the same, their ZIP-file contains the project. We both have the same settings and the same version of ReadyAPI. We use ReadyAPI 3.3.1 Does anyone know how to solve this export problem?Solved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes2CommentsRe: Empty Elements in XML with Data from Excel
HIrichie Thank you for your answer. Could you explain a little more about your idea with the event handler? I am using ReadyAPI 3.3.1. I did an event handler with the mentioned script in my previous messages in this topic. I did an event "RequestFilter.filterRequest" and it didn't work. What went wrong? This was the script: def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def stepName = context.getCurrentStep().getLabel() def holder = groovyUtils.getXmlHolder(stepName + "#Request") for( item in holder.getDomNodes( "//*[. = '']" )){ holder.removeDomNodes("//"+item.nodeName) }1.4KViews0likes0CommentsRe: Empty Elements in XML with Data from Excel
DearChrisAdams Thank you very much for your reply and your help. Actually this was only e part of the nodes of my request. A full request is actually much longer but i thought by showing only partly of the nodes would help to show my current "test setting" and issue. So in this case if I build the whole body with groovy script, this would take too much time, because I have 200 different requests.. Another idea i had was to have something that deletes all empty nodes when the data are loaded from the excel, before the request will be send. But i don't know if this is possible..1.4KViews0likes1CommentRe: Empty Elements in XML with Data from Excel
Sorryrichie I saw the solution with a Groovy script and I tried it and it somehow did not work. If it helps i can provde the XML and the ExcelFile with the Data and the Script i found on the web. Maybe it is a simple mistake from my side. However, i am not very familiar with scripts and the groovy language (or any programming language). I also use SoapUI pro wîth ReadyAPI 3.3.1 This would be the XML Request: <v1:Request> <Document> <v13:FamilyName> <v13:PrimaryValue>${TestData_DataEntry#FamilyName}</v13:PrimaryValue> </v13:FamilyName> <v13:FirstName> <v13:PrimaryValue>${TestData_DataEntry#FirstName}</v13:PrimaryValue> </v13:FirstName> <v13:DateOfBirth>${TestData_DataEntry#DateofBirth}</v13:DateOfBirth> <v13:Nationality> <v13:Code>${TestData_DataEntry#Nationality}</v13:Code> </v13:Nationality> <v13:Gender> <v13:Code>${TestData_DataEntry#Gender}</v13:Code> </v13:Gender> <v13:DocumentNumber>${TestData_DataEntry#DocumentNumber}</v13:DocumentNumber> <v13:DocumentType> <v13:Code>${TestData_DataEntry#DocumentType}</v13:Code> </v13:DocumentType> <v13:ValidUntil>${TestData_DataEntry#ValidUntil}</v13:ValidUntil> </Document> </v1:Request> ------------------------------------ This would be the ExcelSheet where the Data is taken: FamilyName FirstName DateOfBirth Gender DocumentNumber ValidUntil DoumentType PETER 19760101 0109 E15687 2023-05-12 6001 ------------------------------------ This is the groovy Script i found: def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def stepName = context.getCurrentStep().getLabel() def holder = groovyUtils.getXmlHolder( stepName + "#Request") // Find nodes that only consist of whitespaces. for( item in holder.getDomNodes( "//*[normalize-space(.) = '' and count(*) = 0]" )){ item.parent().removeXobj() } // Update the request and write the updated request back to the test step. holder.updateProperty() context.requestContent = holder.xml I have implemented it under "projects>events>"projectRunListener.beforeRun" and "RequestFilter.filterRequest. Sorry again for my little knowledge.. Thank you guys1.4KViews0likes3CommentsRe: Empty Elements in XML with Data from Excel
ChrisAdamscan you show or give an example how you did this? "For this, I still use data-driven tests, but instead of squirting in individual values, I've squirted in the whole request. I've also used data driven tests where my Excel data is a path to a file and I've 'pulled in' the file contents using a Groovy script step. The files contain the whole request I want to send." i am not sure that I get this possible solution right...1.7KViews0likes0CommentsRe: Empty Elements in XML with Data from Excel
Hirichie Thank you very much for your reply and for your help. I will try to explain myself more clearly. My goal is to source specific tag values in my xml-file from a excel-sheet. For instance with this example request (without header, see below). As you can see i already tagged and generated the values from a DataBase (Excel). Now some of the values will be empty in the Excel Sheet. Now ReadyAPI correctly shows the empty elements like you described: <v13:FirstName> <v13:PrimaryValue>${TestData_DataEntry#FirstName}</v13:PrimaryValue> </v13:FirstName> = <v13:FirstName/> <----- = empty Now i need from SoapUIpro to delete these "nested tags" when a request is sended. I have selected "Remove Empty Content " as "true". But it only deletes partially of the tags. It only deletes the "PrimaryValue" and leaves FirstName. I need SoapUI to delete the whole tag and not only "PrimaryValue" Thank you very much for your help. If you need further specification pls let me know1.7KViews0likes15CommentsEmpty Elements in XML with Data from Excel
Hello community I would like to fill my rigid XML schema with data from an Excel file. Now there are test cases, where I don't need any data from the excel (Data Driven Testing | SoapUI). How can I send the schema correctly although the field is "empty"? Do I need to set some settings right? For instance: <v13:FamilyName> <v13:PrimaryValue>XXAD</v13:PrimaryValue> <!--0 to 5 repetitions:--> <v13:AlternativeSpelling> <v13:Value></v13:Value> <v13:Source> <v13:Code></v13:Code>2.6KViews0likes17Comments<not-xml/> in Soap already tried all settings
Hello community! I have a problem with my SoapUIPro (ReadyAPI 3.3.1) with my test-cases. Yesterday everything worked fine, however today I get <not-xml/> as response in the request. I use an Excel-Table including a DateSourceLoop for the data input. I have unchecked the option "Discard Pass Results within Loop" in the settings of the DataSourceLoop and Testcase. as suggested in some previous post. However I still receive this error message. Does anybody know how to solve this issue? Thanks543Views0likes1Comment