Contributions
Re: Missing local file for [file:/C:/dev/... under Unix
Hi, The error message is due to the Missing of schema file KFZVFachlicheFehler.xsd on Linux machine, since the soapUI project is created on Windows machine, the path for the same file is stored as C:/dev/views/interbank_reesv_private/.... in the soapUI project xml file. So when you try to execute the soapUI project on Linux machine it is trying to load the schema file from the path C:/dev/views/interbank_reesv_private/.... which in fact the C drive doesn't exist on Linux machine. Since these paths are hard-coded in the SoapUI project xml files by SoapUI, So one cannot execute them on various O.S in which the mentioned paths are not available. Workaround: You need to write some script which will covert the WSDL/schema windows paths stored in soapUI project xml files to the Linux paths. For example: Suppose the soapUI project created on windows contains the WSDL/schema path as C:/dev/views/interbank_reesv_private/.... then same WSDL/schema file is stored in /temp/dev/views/... path on Linux then such paths should be changed to /temp/dev/views/... by your custom script before the execution of soapUI project on Linux machine. Hope this helps...! Regards, Rohit Shingalapur http://www.developerscorner.co.cc12 years agoPlace ReadyAPI QuestionsReadyAPI Questions725Views0likes0CommentsRe: Soap requests containing incremental values
dmltn84 wrote: I expanded script to look as follows, but it runs only once: def incrementValue = context.expand( '${Properties#incrementValue}' ); incrementValue = incrementValue.toInteger() + 1; incrementValue = incrementValue.toString(); if (incrementValue <= 10) { testRunner.testCase.setPropertyValue("incrementValue", incrementValue); log.info "incrementValue: " + incrementValue; testRunner.gotoStepByName("xxx"); } Test steps are arranged in the following order: 1. Properties(1) 2. xxx 3. groovy script Can you please advise what should be corrected? It is running only once because your are setting the property value at the TestCase level and for condition check, you are accessing this from the test step i.e. Properties. So try the below testRunner.testCase.getTestStepByName("Properties").setPropertyValue("incrementValue", incrementValue); instead of testRunner.testCase.setPropertyValue("incrementValue", incrementValue); Hope this helps. Regards, Rohit Shingalapur http://www.developerscorner.co.cc12KViews0likes0CommentsRe: Date Format issue with JSON string (soapUI Pro)
Hi, I hope that dt is array and if so then use the following code: def dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD"); for(int i=0;i<dt.size();i++){ dt=dt.replaceAll('/', '-'); } Then the variable dt will contain the array of new values // Here you need to set back dt to JSON2.5KViews0likes0CommentsRe: Date Format issue with JSON string (soapUI Pro)
Hi, If you are sure that your problem is because of date format then I guess you have to change this format before passing to JSON String. For ex: use groovy as def dt = "09/05/2011" dt=dt.replaceAll('/', '-'); output of this will be 09-05-2011 Regards, Rohit Shingalapur2.5KViews0likes0CommentsRe: Soap requests containing incremental values
Hi. Ok, Then follow the following steps: Step 1: Create a soapUI project and test suite and a test case within the test suite. Step 2: Create a property at test case level say "incrementValue" and assign some value say 1 Step 3: Now add your Request say "Request 1" in this request add ${#TestCase#incrementValue} to the input element in the request. So that it will take the value from the property that you have created at test case level i.e. incrementValue Step 4: Now add Groovy step after the step "Request 1". Then add the following code in that def incrementValue = context.expand( '${#TestCase#IncrementValue}' ); incrementValue = incrementValue.toInteger() + 1; if (incrementValue <= 10) { testRunner.testCase.setPropertyValue("IncrementValue", incrementValue); log.info "IncrementValue: "+incrementValue; testRunner.gotoStepByName("Request 1"); } Step 5: Double click on the test case level and Test case editor will be displayed click on green button. That's it!!!!!!! Your request will be executed 10 times as per the groovy. Please remember to mention this otherwise it will run infinite times causing memory outage. Hope this helps!! Regards, Rohit Shingalapur http://rohit-developerscorner.blogspot.com/12KViews0likes0CommentsRe: Error on loading or creating project
Hi, I was not able to reproduce this error. In which location do the WSDL files are located with which this soapUI project is created? Try placing the WSDL files in the same location were this soapUI project points to for the WSDL files. Regards, Rohit Shingalapur1.4KViews0likes0CommentsRe: How do I force soapAction to be set to a specific value
Hi, SoapUI uses the soap action as mentioned in the WSDL file to which the soapUI projects refers. You can also set this soap action for WSA in the WS-A editor of each request. Kindly check the attached image. Regards, Rohit Shingalapur19KViews0likes0CommentsRe: configuring Hermes JMS on Linux depends on project file
Hi, No because this is not related with the soapUI package files! as it is related with the soapUI projects. Also you have created the soapUI projects on windows machine due to which all external config paths will be Machine specific. To execute the same in Linux you need to write your own script to make this change and this script has to be run on fresh copy of soapui project xml file. I also have similar issues and I have written my own script to achieve the same. Regards, Rohit Shingalapur13 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0Comments