Contributions
- 16 years agoPlace ReadyAPI QuestionsReadyAPI Questions927Views0likes0Comments
Re: repeating elements when using xls datasource?
Hi Ole, In the live environment the number of elements will change per request. In testing it would be sufficient if we always test 2 elements. How would you suggest we arrange our spreadsheet & groovy script? Is it possible to have the main request fields in one worksheet, then reference another worksheet per repeatable element perhaps?16 years agoPlace ReadyAPI QuestionsReadyAPI Questions927Views0likes0Commentsrepeating elements when using xls datasource?
Hi, Is it possible using a spreadsheet to test the cardinality of the repeating element? For example, one of our elements has a repeating child element: ... ? ? ... I would like to generate the requests below Scenario 1: ... ... Scenario 2: ... 1 Prod1 ... Scenario 3: ... 1 Prod1 2 Prod2 ... Is this possible using a spreadsheet or should I be considering a file datasource with the different xml requests needed? We have to run about 1000 scenarios (and some of our messages will have hundreds of elements per message) so I'd rather maintain a spreadsheet than 1000 xml files. thanks for your advice ..Garret16 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes4CommentsRe: Listeners - Modifying Requests before posting to a Service
Hi Ole, Oh yeah sorry if I add --empty-- in an element I would expect that element to be stripped out of the request. For example, MDUserDescTyMeteor MDAppDescTyWeb MDAppIDTyMDS --empty-- --empty-- I would expect the following request to be sent, MDUserDescTyMeteor MDAppDescTyWeb MDAppIDTyMDS If I add that extra line in the filter, after the setProperty call, SoapUI.log.info("request sent: "+context.getProperty( BaseHttpRequestTransport.REQUEST_CONTENT )) I would expect the updated request to be printed to the log? Cheers Darren16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsRe: Listeners - Modifying Requests before posting to a Service
Hi Ole, Thanks for that, it now appears to be running the filter. Any way of checking if the correct request is being sent? I've tried adding SoapUI.log.info("request sent: "+context.getProperty( BaseHttpRequestTransport.REQUEST_CONTENT )) after the new message is set but that prints the request unmodified. Is this correct, if so then I must have a problem with the filter? Cheers Darren16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsRe: Listeners - Modifying Requests before posting to a Service
Hi Ole, I had an older version of SoapUI Pro on the machine which I removed, plus I removed all my scripts. I now get teh following error at startup. 09:05:36,752 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\e viware\soapUI-Pro-2.0.3\bin\listeners\demo-listeners.xml] Error initializing Listener: java.lang.RuntimeException: Listener class: soapui. demo.DemoListener must implement interface: com.eviware.soapui.model.testsuite.T estRunListener Makes a bit more sense now. Cheers Darren16 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsRe: Listeners - Modifying Requests before posting to a Service
Hi Ole, these are the 2 outputs from the logs at startup and the SoapUI log. 08:53:23,034 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Prog ram Files\eviware\soapUI-Pro-2.0.3\bin\soapui-settings.xml] 08:53:23,112 INFO [SoapUIProGroovyScriptEngineFactory] Initializing scripts fol der [C:\Program Files\eviware\soapUI-Pro-2.0.3\bin\scripts] 08:53:23,987 INFO [SoapUIProGroovyScriptEngineFactory] 16 classes loaded 08:53:23,987 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\e viware\soapUI-Pro-2.0.3\bin\listeners\demo-listeners.xml] 08:53:24,190 INFO [DefaultSoapUICore] Adding listener [class soapui.demo.DemoLi stener] ============================================================================================ Tue May 27 08:53:23 BST 2008:INFO:initialized soapui-settings from [C:\Program Files\eviware\soapUI-Pro-2.0.3\bin\soapui-settings.xml] Tue May 27 08:53:23 BST 2008:INFO:Initializing scripts folder [C:\Program Files\eviware\soapUI-Pro-2.0.3\bin\scripts] Tue May 27 08:53:23 BST 2008:INFO:16 classes loaded Tue May 27 08:53:23 BST 2008:INFO:Adding listeners from [C:\Program Files\eviware\soapUI-Pro-2.0.3\bin\listeners\demo-listeners.xml] Tue May 27 08:53:24 BST 2008:INFO:Adding listener [class soapui.demo.DemoListener] Tue May 27 08:53:25 BST 2008:INFO:Loading workspace from [C:\SoapUI_Sandbox\MeteorSOA_MW_Proxy_Phase2_soapui-projects_v0.3\Proof_of_Concept-workspace.xml] Only thing I changedwas the class name to match the the one referenced in the Listener config file. Cheers Darren16 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0CommentsRe: Listeners - Modifying Requests before posting to a Service
Hi Ole, Been trying to get this to work but I think there is something wrong with the entry in the demo-listeners.xml file. Any chance you could confirm if this is correct? Darren16 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0Comments