Contributions
mutiple assertions not working from datasource step
Hi, I have response coming from REST request. Using datasource(as xml) to get multiple values from response. I have assertion test step to check each of these response values. It has multiple assertions. When I run, it displays first assertion 9 times being validated instead of 9 assertions. here is sequence 1. REST API call request 2. Datasouce as xml to get response values 3. Assertion test step with 9 assertions to get values from step 2. 4. loop from step 2. to 3. to get multiple values. instead of checking 9 assertions in step 3, it displays first assertion 9 times? I checked soapui bugs but couldn't see anything. thanks for help! shyam11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes0Commentspost with x-www-form-urlencoded
Hi, We are trying to make an api call with POST. we are sending three parameters as "Query" parameters and two parameters in the body with x-www-form-urlencoded. Query parameters are passed correctly when we checked log file but parameters in the body are not visible. How can we send parameters successfully using x-www-form-urlencoded media type? thanks for any help!12 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes1Comment- 12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0Comments
Demo listener on linux throwing error
Hi, I am using DemoListener.java built into Demo.jar file. When I use this jar file on linux, getting following error.. java.lang.UnsupportedClassVersionError: soapui/demo/DemoListener : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:295) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:696) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:793) at java.lang.ClassLoader.loadClass(ClassLoader.java:295) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.eviware.soapui.support.scripting.listeners.AbstractScriptListener.syncClass(SourceFile:35) Linux has java version 1.7.0_07 and demo.jar file is built on 1.6.0_35. Linux is 64 bit Ubuntu and demo.jar file is built on windows. thanks, shyam12 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes0CommentsSetting datasink properties using groovy
Hi, I am trying to set the query, connection string and password in a datasink step using groovy script. When I run the groovy script directly as a test step, it all works fine. The scripts change the properties in datasink and I can see that change when I open the datasink step. But, when I run the test case, I don't see the changes in datasink. Any idea why? The same works fine for datasource step - both as teststep and test case. Here is the code that am using //Read keyword name from property keyword_name = context.expand( '${#Project#keyword_name}' ) //Get datasink object for updating mark for delete datasinkStep = testRunner.testCase.getTestStepByName( "update_producttable_flag_for_delete" ) dataSink = datasinkStep.getDataSink() dataSink.setDriver("com.mysql.jdbc.Driver") dataSink.setConnectionString("$connectionString") dataSink.setPassword("$password") //Query to update the product table updateQuery ="update product set mark_for_delete = '1' where created_by='auto_user' "+ "and keyword_id=(select keyword_id from keyword where keyword_name=\"$keyword_name\")"+ "and mark_for_delete='0'" dataSink.setQuery("$updateQuery") Thanks, AJ12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes1Comment