Contributions
Re: converting datetime to unix timestamp
for some reason i'm getting an error about unparseable date when i read it from test case propriety sample value:1504872000000 def dateFormat = 'yyyy-MM-dd HH:mm:ssZ' def start_date_raw = testRunner.testCase.getPropertyValue("start_date").substring(0,10) def end_date_raw = testRunner.testCase.getPropertyValue("end_date").substring(0,10) def start_date_unix = Date.parse(dateFormat, start_date_raw).time def end_date_unix = Date.parse(dateFormat, end_date_raw).time testRunner.testCase.setPropertyValue( "start_date", start_date_unix ) testRunner.testCase.setPropertyValue( "end_date", end_date_unix )3.8KViews0likes0Commentshow to do transfer property from JSON without brackets?
inproperty transfer step i'm using jsonpath to extract a value from response $.entities[-1:].id and exporting it to the property on testcaselevel but instead of getting a value like 123456 i'm getting [123456] is there a way how to do the property transfer without brackets? sure i can remove it later, but why should i?Solved2.5KViews0likes1Commentconverting datetime to unix timestamp
i believe i'm just missing something, it should be easy..... i'm just trying to convert a human readable datetime to unix timestamp 2017-09-08 14:00:00+02 to 1504872000 the thing is, iuse a testcase variable in a rest request: ${#TestCase#pvr_program_id}} but no matter how did i convert it to date and then tried to format it, it never worked.... and then i've tried to convert current datetime to unixtime butit failed to... as if soapui/groovy doesn't know what Unix is.... ${=new Date().format("U")}3.9KViews0likes2Commentshow to work with XML in JDBC response
I'm using JDBC request for getting XMLworkflows from database. the results looks like <Results> <ResultSet fetchSize="10"> <Row rowNumber="1"> <NAME>CLASSIC_AUDIT</NAME> <XML_DEFINITION> <statechart name="CLASSIC_AUDIT" isSubStateChart="true"> <actions> <action name="AUDIT_INSTANCE" classname="gp.AuditInstance" /> <action name="ANALYZE_RESPONSES" classname="analyzer.AnalyzeResponses" /> <action name="GET_STATE_AND_PARENT" classname="actions.GetAOStateAndParent" /> </actions> </statechart> </XML_DEFINITION> </Row> <Row>........................................................ how to access the XML inside the //Result[1]/ResultSet[1]/Row[1]/XML_DEFINITION[1]? For example i need to create assertion to verify the class for AUDIT_INSTANCE action pls help1.7KViews0likes3CommentsSoapUI Pro 4.6.3 unable to open project
Hi, I've recently updated SoapUI to last version, and it somehow damaged my projects. On first run all the project opened correctly and everything work well. Then another day I've started SoapUI and it declined to open any of the projects I've already tried to downgrade the SoapUI but also the old version isn't able to open the projects Wed Jan 15 14:28:25 CET 2014:ERROR:com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/kkremel/Documents/project/EWD117-mocks-soapui-project.xml] com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/kkremel/Documents/project/EWD117-mocks-soapui-project.xml] at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:315) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:198) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:166) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:168) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:42) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16) at com.eviware.soapui.impl.WorkspaceImpl.importProject(WorkspaceImpl.java:402) at com.eviware.soapui.impl.actions.ProImportWsdlProjectAction.perform(SourceFile:47) at com.eviware.soapui.impl.actions.ProImportWsdlProjectAction.perform(SourceFile:15) at com.eviware.soapui.SoapUI$ImportWsdlProjectActionDelegate.actionPerformed(SoapUI.java:1516) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.io.CharConversionException: Malformed UTF-8 character: 0xe2 0x80 0x3f at org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:108) at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762) at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yynextChar(PiccoloLexer.java:3721) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseCdataSection(PiccoloLexer.java:2671) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:4850) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714) at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:194) ... 46 more11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.3KViews0likes2Comments