Contributions
Re: TLS SSL for SoapUI pro on Mac
Hi Karen It's been a while so I don't remember exactly what I was trying to use this for. But I checked my test requests and I know I had one working with certificates. In the test request properties in the bottom left-hand corner I added my PEM certificate in the SSL Keystore property. I don't remember if I had to do anything else to get it to work. Hope that helps? Cheers1.5KViews0likes0CommentsRe: Datasource Excel to array
deepesh.jain wrote: How can a node be an array of objects? Well, basically a sequence of complex types: <xsd:complexType name="ArrayOfProduct"> <xsd:sequence> <xsd:element name="item" type="tns:product" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="product"> <xsd:all> <xsd:element name="number" type="xsd:int"/> <xsd:element name="name" type="xsd:string"/> </xsd:all> </xsd:complexType> So the request would look something like: <products> <item> <number>1</number> <name>Jacket</name> </item> <item> <number>2</number> <name>Wallet</name> </item> </product> So whilst reading from the Excel file, I have to create a new <item> node dynamically on every iteration. Thanks for the links, I'll have a look.2.3KViews0likes0CommentsRe: Datasource Excel to array
Hi Deepesh Jain deepesh.jain wrote: I believe you are trying to parameterize your test request which would accept 2 parameters from the two columns in your excel sheet. And you have 3 sets of data in 3 rows. If this is what you want to do, then you can create property transfer step and transfer properties from row 1 to properties step which would have two properties. You would then read these from your request and then finally place a data source loop to loop through 3 rows. This is what I'm trying to do yes - and a property transfer is what I would use. The thing is though, the node I'm trying to populate is an ArrayOfObjects. So I can't just point and click (or use XPath) where the data should transfer too, I have to dynamically add an element to the Array first, then transfer the data of the row, then add another Array element and so on. So in order to use the property transfer, I would first have to create the same number of Array elements in the request as I have rows in my Excel. That however wouldn't be the point of storing the data in an Excel, as I would have to adjust the request everytime I alter the amount of data in the Excel. Is there a standard way of doing this or would I have to refer to Groovy? I don't know Groovy at all. With JavaScript it would be easy, but as far as I can see JavaScript isn't really supported. I can only see it in the project properties, but when I switch to JS, it seems the interpreter is still expecting Groovy - and I also can't find any documentation on JavaScript usage in SoapUI. Thanks, Christof2.3KViews0likes0CommentsDatasource Excel to array
Hi I am trying to build a TestRequest with an array of objects by reading from an Excel file. I have a DataSource step for my Excel, which reads three rows with two columns each. I'm stuck on how to create an array in the TestRequest and add an entry per row. I'm guessing this is asking to much of a PropertyTransfer? Do I need Groovy for this? Thanks, Christof5.3KViews0likes8CommentsTLS SSL for SoapUI pro on Mac
Hi Like everyone else, as it seems , I'm having some trouble getting Transport Level Security SSL to work in SoapUI. In the project tab under WS-Security Configurations > Keystores / Certificates I imported a PEM certificate that also contains my private key. I also added the same in Global Settings > SSL Settings and checked requires client authentication. I do not have a deep understanding of certificates, but the server is not getting it. I'm not sure if I have to tell my TestRequest to use the certificate somehow? I saw a lot of people were getting the "SSLHandshakeException". I have not seen this in my tests, though I don't know if I just have to look in the right place? Any help on this? Thanks Christof3.1KViews0likes2CommentsRe: WSDL fields with min=1, Max=1, nillable,type=DateTime are seen as mandatory
Hi Pradeep Thanks for your response. That's kind of what this thread is about though, it's in the title. It is a mandatory field, but nillable says it may be empty, which it is in the response. I also tried it with like the following though, which also does not work (same schema assertion errors): <xsd:element name="confirm_until" nillable="true" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/> <xsd:element name="confirm_until" nillable="true" type="xsd:dateTime"/> Can anybody else verify this in a testcase? Judging by omatzura's response, this shouldn't be an issue anymore? Thanks, Christof3.1KViews0likes0CommentsRe: WSDL fields with min=1, Max=1, nillable,type=DateTime are seen as mandatory
Well, the whole thing is huge and it's not a public api, but here's the relevant part: WSDL: <definitions name="my_api" targetNamespace="https://my_namespace" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="https://my_namespace" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <types> <xsd:schema targetNamespace="https://my_namespace"> <xsd:complexType name="message"> <xsd:all> <xsd:element name="message_type" type="tns:wsws_message_simple_message_type"/> <xsd:element name="message" type="tns:wsws_message_simple_customer_message"/> <xsd:element name="confirm_until" nillable="true" type="xsd:dateTime" minOccurs="1" maxOccurs="1"/> <xsd:element name="url" type="tns:wsws_message_simple_url"/> </xsd:all> </xsd:complexType> ... The response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://my_namespace"> <SOAP-ENV:Body> <ns1:get_queueResponse> <get_queueResult> <messages> <item> <message_type>queue</message_type> <message/> <confirm_until/> <url/> </item> </messages> </get_queueResult> </ns1:get_queueResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Thanks for your time!3.1KViews0likes0CommentsRe: WSDL fields with min=1, Max=1, nillable,type=DateTime are seen as mandatory
This is still a problem for me in responses. A datetime field is defined in my service as follows: <xsd:element name="valid_until" nillable="true" type="xsd:dateTime"/> And turns up in the response XML like this: <valid_until/> Which should be fine, but I get: Invalid date value: wrong type: from my schema compliance assertion. I am using SoapUI pro (trial) 4.0.1 Any help on this?3.1KViews0likes0CommentsA few feature requests
Here are a few feature requests I stumbled over after using SoapUI extensively for a day: 1. Automatically add assertions When adding a TestRequest to a TestCase manually you can select the assertions "Soap Response, Not Soap Fault, Schema Compliance" automatically. This makes sense, as these are the three assertions most people will want for every method. I missed these options when auto-generating a Testsuite for all the methods of a WSDL though. And for some services, that means adding these three assertions manually for >20 methods. It would be great if we had these options when auto-generating a Testsuite too. Which brings me to my next point.. 2. Add multiple assertions When I'm in the tab of a request and click the "Add assertion" button at the top left, a popup with a single pulldown appears. It would be nice if this was a multiselect and you could add all your assertions at once. 3. Empty values Wouldn't an empty value <value/> be a better default value than a question mark? When setting up a new TestRequest I always have to get rid of all the question marks in the fields before I fill in any data. 4. Run specific TestSteps It would be nice to be able to play only certain certain steps of a TestCase. For example selecting three TestSteps, right-click "Run selected TestSteps" would be great. 5. Custom delay times When setting values for Delay TestSteps, it would be nice to have the same options as we do for, e.g. properties, i.e. DataSources. In my case, I am dealing with an order function, that returns a queue ID and wait time to process very large orders. I was hoping to grab the queue wait time from the order response, multiply it by 1000 to get milliseconds and make the TestCase wait as long as it takes (something like: number(${#order#Response//messages//queue_wait})*1000). Then again, maybe I'm doing it wrong?13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews0likes2Comments