ContributionsMost RecentMost LikesSolutionsRe: No suitable driver found for jdbc:sqlserver Driver registration can be added either your first groovy teststep ( before you used your database connection ) orSetup script section over testSuite. Re: is there any option to read the total project execution time through groovy I ammore thanhappy to help you! Re: is there any option to read the total project execution time through groovy first Testcases: import groovy.time.* import java.text.SimpleDateFormat testRunner.testCase.testSuite.setPropertyValue('exeStarttime', new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss").format(new Date())) last testCases: import groovy.time.* import java.text.SimpleDateFormat Date exeEndtime = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss") Date exeStarttime = dateFormat.parse(testRunner.testCase.testSuite.getPropertyValue("exeStarttime")); TimeDuration duration=TimeCategory.minus(exeEndtime, exeStarttime); log.info duration Output : 10.0000 seconds. Hope it will help you. Re: Suddenly soapUI get hangged and my project gets currupted So far I don't see any solutions. it's happened to me many times. I have tried many options but so far no proper solutions. ( the below I have used so far ) Solutions 1: Increased memory size to 1GB parameter :-Xms1024m locations : C:\Program Files\SmartBear\SoapUI-5.3.0\bin\SoapUI-5.4.0.vmoptions" Solutions 2: Enabled Autosave after 20 mins and before Autosave create a backup file ( atlist backup copy is not corrupted) Solutions 3: Disabled autoSave options. and start using Save when I wanted to save Solutions 4: Disabled and closed unused project in your current workspace. Solutions 5: If you are running big load ( data-driven test ) where many loops are running, run this project with testRunner batch mode Solutions 6:If your testSuite is running andyou are doing any testParallelplease stop doing this. Many times it got hanged while sending request/response. with combinations of 3,4,5, I found you will never have faced any issue. but I make mistake and soapUi hanged and Project filled with null null null ( which can't be reverted back ) Re: SOAP UI 5.0-groovy Automation You can stillcompare if you don'twantindividual tags to be part of compare, you need to loops towards all existingtags in XMLfiles if your sure that Both responses have same tagsand in sequences or order? If you don'tfind to share both responses? it will be easy for me to explain toyou. you can mask those value but don'tchanges in tages. Re: SOAP UI 5.0-groovy Automation As you have Mentioned You have 2 WSDL. So you have to create 2 test suite, each is related to corresponding operations, I am assumingOld service vs new Services. In your First test suite ( Old ), you can add test cases which can have a groovy test step. thatstep will save Responses to the local system. eg.. def outPutFileLocationRes01="C://TestSection//Res01.xml"; def response = context.expand( '${testCaseNameOfYourService#Response}' ) def f = new File(outPutFileLocationRes01) f.write(response, "UTF-8") log.info "Responses is save in local :"+outPutFileLocationRes01 In your Second test suite ( New ), you can add test cases which can have a groovy test step. thatstep will save Responses to the local system. eg.. def outPutFileLocationRes02="C://TestSection//Res02.xml"; def response = context.expand( '${testCaseNameOfYourService#Response}' ) def f = new File(outPutFileLocationRes02) f.write(response, "UTF-8") log.info "Responses is save in local :"+outPutFileLocationRes02 Once Both Operations is Compleated Either you can create a new project to use the existingproject to make new testSuite,That suite shouldhave testcasealong with testStepgroovy Script Where you can write the read the both responses (new and old) from local system and parse to as xml, read entireXML and do the validations. eg..(below example is just consideringone tag) Please share your responses next time for more insight. FilenameAsInputXmlFileRes01="C://TestSection//Res01.xml" File OrginalFile01 = new File(FilenameAsInputXmlFileRes01); def String FetchXmlData01 = OrginalFile01.getText(); def response01 = new XmlSlurper().parseText(FetchXmlData01) String personId=response01.personId; FilenameAsInputXmlFileRes02="C://TestSection//Res02.xml" File OrginalFile02 = new File(FilenameAsInputXmlFileRes02); def String FetchXmlData02 = OrginalFile02.getText(); def response02 = new XmlSlurper().parseText(FetchXmlData02) String personIdentification=response02.personIdentification; if(personId.trim()==personIdentification.trim()) { log.info "Both Tags Values are same -> personId : [ "+ personId + " ] [ personIdentification : [ " + personIdentification + " ]" //return true; }else{ log.info "Both Tags Values are Not same -> personId : [ "+ personId + " ] [ personIdentification : [ " + personIdentification + " ]" //return false; } Re: wait for user input then request trigger You can add groovy script before initiatingyour request. This test step ( groovy ) will provide user prompt and once you have user Input store those values into properties. def selectedEnv = com.eviware.soapui.support.UISupport.prompt("Please select the enviornment", "Environment", ['X1', 'X2']) eg..context.testCase.setPropertyValue('UserInputAsEnv', selectedEnv ); While Executing your Request ( which is step 2 in your test cases) dynamically passed those variable . eg.. <req:ReqEnvName>${=context.testCase.getPropertyValue('UserInputAsEnv')}</req:ReqEnvName> Re: SOAP UI 5.0-groovy Automation You can use the xmlparser to do the same. //eg response 1: File OrginalFile = new File(FilenameAsInputXmlFile); def String FetchXmlData = OrginalFile.getText(); def response = new XmlSlurper().parseText(FetchXmlData) def firstreqvalue=response.YourTagname[0] //eg response 2: File OrginalFile2 = new File(FilenameAsInputXmlFile); def String FetchXmlData2 = OrginalFile.getText(); def response2 = new XmlSlurper().parseText(FetchXmlData) def firstreqvalue2=response2.YourTagname[0] if(response2 ==response){ //your code } Re: Setting a default directory for responses Can you please be more specific, What you are looking for. You wantedto save response to somewhere on what? Re: Groovy script to compare two text files Hi, This is a working Code, if you are using XML, But your question Title suggest ( Compare text files ) , and your shared sample talking about XML and your comments are talking about jason. What you are looking for ?and where you have an error. could you please share the same.