Contributions
Re: groovy script code for data driven testing
Hi Savitha, You need to paste the "jxl.jar" file in the ext folder of SOAP UI installation path. C:\Program Files\eviware\soapUI3.0\bin\ext. Then try to run the scripts , hope you will not face any issues. Regards Anand14 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.6KViews0likes0CommentsHow to run multiple projects from testrunner.bat
Hi, I came across this post while searching for the answer to run multiple projects from testrunner.bat. http://www.eviware.com/forums/index.php?topic=572.0 Whether this feature is inculded in the latest bulid Can any one please let me know its status? Regards Anand.862Views0likes0CommentsRe: How to add different request templates in Soap UI for different testcases.
Hi anusooya. In your scenario try the below following , First you need to have a Initialize Request step with the dummy XML. Name the below XML as "Initialize" ? ? ? ? ? ? // get request property request1 = groovyUtils.getXmlHolder("Initialize#Request") def actualXML= request1.xml // set request property request5 = testRunner.testCase.getTestStepByName( "AddCalcList" ) request5.getProperty("request").setValue(actualXML) Now you can map your input values from your CSV file, but still your request XML looks incomplete because your XML may have few empty tags after the Input values are mapped. For that you need to write groovy script to remove the empty tags from your actual Request XML. please let me know if you are not clear with my solution. Regards Anand.1.3KViews0likes0CommentsRe: Error while trying to generate reports using SOAP UI PRO
Hi, I tried all possible ways but still I am not sure where I am going wrong . Please refer the testrunner settings screen shots attached for reference. Please let me know where I am going wrong. I am getting the same error , Running soapUI TestRunner for [Calcxml] directory: C:\Program Files\eviware\soapUI-Pro-3.0.1\bin command: cmd.exe /C testrunner.bat -ehttp://ws1.parasoft.com/glue/calculator -sCalculator TestSuite -cRepository -F.html D:\Projects\Calcxml.xml java.lang.NoClassDefFoundError: com/eviware/soapui/tools/SoapUITestCaseRunner at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread "main" Regards Anand918Views0likes0CommentsRe: Groovy Script to recreate default request xml from schema in soapui
Hi, Why dont you use a property transfer step to achieve your requriement follow the below steps 1 - For example considering the Operation Name as " Add " 2. Clone the operation step and name it as " Intiallizer" ( This must be your default Request) 3. Now in your test case you will be having two Operation Steps (i.e two Request XMLs) 4. Use a property transfer step to transfer the " Intiallizer" XML to "Add". If you want to do in groovy here is the code // get request property request1 = groovyUtils.getXmlHolder("Intiallizer#Request") def Intiallizer_XML = request1.xml // set request property request2 = testRunner.testCase.getTestStepByName( "Add " ) request2.getProperty("request").setValue(Intiallizer_XML) Let me know whether it helps. Regards Anand.705Views0likes0Comments