Contributions
Merging of projects
Hi, We are thinking of using SOAPUI PRO for our automated regression suite, as it can send API calls and integrate with selenium. Our devs have concerns about how it works in terms of version control, merging and use with source control repos. This is not my area of expertise so i thought i would ask here. I have seen an old post saying this will be possible soon... viewtopic.php?f=2&t=798 And a help page talking about composite projects... http://www.soapui.org/Working-with-Proj ... pport.html But i'm still not sure if there are any limitations (e.g. working on the same test step/test case/test suite/groovy script) or if SOAPUI pro is up to the task?10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes1CommentRe: [Resolved] Automatic file transfer
Hi Manne, Someone has given me a script that is supposed to move files to an SFTP server but when i try to run it, i get this error.... Wed Oct 30 09:11:25 EST 2013:ERROR:java.lang.NoClassDefFoundError: org/apache/ivy/core/settings/IvySettings. This occurs on line 5. This is the start of the script.... 1 #!/usr/bin/env groovy 2 @GrabConfig(systemClassLoader=true) 3 import groovy.grape.Grape; 4 5 Grape.grab(group:"ant", module:"ant-jsch", version:"1.6.5") 6 Grape.grab(group:"com.jcraft", module:"jsch", version:"0.1.42", classLoader:this.class.classLoader.rootLoader)7 7 def ant = new AntBuilder(); 8 def InputLocUserName = context.expand( '${#Project#IN_SMGSDKSFTPInputLocUserName}' ) 9 def InputLocPath = context.expand( '${#Project#IN_SMGSDKSFTPInputLocPath}' ) 10 def InputLocPassword = context.expand( '${#Project#IN_SMGSDKSFTPInputLocPassword}' ) 11 def sb= new StringBuffer(InputLocPath) I was also told to place these .jar files in the "C:\Program Files\SmartBear\SoapUI-Pro-4.6.1\bin\ext"... ant-1.7.0.jar ant-jsch-1.6.5.jar ant-launcher-1.7.0.jar ivy-2.0.0-rc2.jar jsch-0.1.42.jar The ivy jar file seems to have the IvySettings.class file under org\apache\ivy\core\settings. Do you know what i'm doing wrong?11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews0likes0Comments[Resolved] Automatic file transfer
Hello, I'm new to groovy but have managed to write some scripts to almost automate our test suite. The last step we still have to do manually is as follows and i have no idea how to achieve it. So any help would be extremely welcome. Please bear in mind that i'm not hugely technical, so you might have to dumb down the steps required! Ok... We have a script that executes a call to the command line to run a .bat file. It ends up with a zip file being created in a folder on my c:\ drive. The name is dynamically given dependent on the response in a previous test step. So a new file is generated each time we run it. Before we can run the next text step, we have to manually move the file from my c:\ drive to a specific folder on an SFTP server using WINSCP. So i'm asking, is there a way to have soapui move the file automatically?11 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.1KViews0likes6CommentsOutput raw request and response including headers to a file
Hi all, I'm very new to using groovy scripts and have very little programming knowledge so i've been picking up bits of scripts from the forum and adapting them. So far i have been able to output the REST requests and responses i'm interesting in to a file by using the following statements in a groovy script immediately following my test step (eg not a tear down script) myFile.append( context.expand('${my test step name#Request}') ) and myFile.append( context.expand('${my test step name#Response}') ) This is great in that it outputs the actual values rather than the parameter names in my xml. But i want to go one stage further and output the whole raw xml responses, including the http return code and headers etc. eg. exactly what you would see if you clicked on the "raw" tab in the UI. Like this... HTTP/1.1 200 OK Date: Wed, 06 Feb 2013 21:42:33 GMT Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept Accept-Ranges: none Server: anyoldserver.com.au Content-Type: application/xml Transfer-Encoding: chunked Connection: close <?xml version="1.0" encoding="ISO-8859-1" ?> <blahblahblah> ...... </blahblahblah> Thanks in advance for any help.8.4KViews0likes3CommentsRe: Can I export soapUI results?
i've been saving my responses to a .txt file using the following code in a groovy script (you need to replace myTestStepName and have project level property called Location with the file path you want to save to) //get testSuite name def filename = testRunner.testCase.testSuite.name //get directory from Project Properties def directory = testRunner.testCase.testSuite.project.getPropertyValue( "Location" ) //define the file location and name def outputFile = new File(directory, "${filename}.txt") //start writing stuff to it outputFile.append( context.expand('${myTestStepName#Response}') )2.4KViews0likes0Comments