Contributions
Copy Response Content
Hello everybody, I would like to write the JSON Content of my response to a temp file. Now I was able to do so however the file only reads as one line. Is there a way to copy the content of the Response as it appears on my screen. Thank you11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1Comment- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions875Views0likes0Comments
combine xml files
Hello again guys, For starters I am using SoapUI Open Source. My questions is when I am launching a TestRunner, and inside the Reports tab I check off Export JUnit Results. I get xml files for each of the TestSuite inside my project. Is there a way for me to have 1 xml file for the entire project as opposed to multiple xml files for each TestSuite? Thanks again in advance!11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes2CommentsRe: does not create log file if teststep name too long
def homeDir = project.getPropertyValue("HomeDirectory"); def failedTestSuiteDir = new File( homeDir + "\\" + "Failed TestSuites" ); def passedTestSuiteDir = new File( homeDir + "\\" + "Passed TestSuites" ); failedTestSuiteDir.mkdir(); passedTestSuiteDir.mkdir(); for( testSuiteRunner in runner.results ) { def testSuite = testSuiteRunner.getTestSuite(); def status = testSuiteRunner.getStatus().toString(); def path = passedTestSuiteDir.absolutePath if( status == "FAILED" ) { path = failedTestSuiteDir.absolutePath; } def testSuiteDir = new File( path + "\\" + testSuite.name ); testSuiteDir.mkdir(); def errorsDir = new File( testSuiteDir.absolutePath + "\\" + "errors\\" ); def finishedDir = new File( testSuiteDir.absolutePath + "\\" + "success\\" ); errorsDir.mkdir(); finishedDir.mkdir(); for( testCaseResult in testSuiteRunner.getResults() ) { def testCasePath = finishedDir.absolutePath; if( testCaseResult.getStatus().toString() == 'FAILED' ) { testCasePath = errorsDir.absolutePath; } def testCaseDir = new File( testCasePath + "\\" + testCaseResult.getTestCase().name ); testCaseDir.mkdir(); for( testStepResult in testCaseResult.getResults() ) { def testStepResultFile = new FileOutputStream( testCaseDir.absolutePath + '//' + testStepResult.testStep.label + '.txt', true ); def pw_testStepResultFile = new PrintWriter( testStepResultFile ); testStepResult.writeTo( pw_testStepResultFile ) pw_testStepResultFile.close(); testStepResultFile.close(); } } }11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0Commentsdoes not create log file if teststep name too long
Hello all, After running my testsuites I log the results of each of those test steps. However when I have a REST Test Request that contains a long name (* over 25 characters) it does not log the result of that test step or the results of any test step that follows it. *Note I only have this problem with REST Request, with Groovy Test Step SoapUI logs the results without any problems, regardless of test step name length. If you could take a look into this it would be greatly apperciated. Thank you11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes4CommentsRe: [Resolved] Pass empty string to query parameter
Thank you for the reply, I would like to send a REST call using SOAPUI 4.5.1, but how would I be able to assign the name parameter in the soapui to have an empty string. When I enter %00 or %81 the url does not generate an empty string When I try to assign the name parameter through the SOAPUI it does not return. My apologies for not being clear in my original post.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions33KViews0likes0Comments