Contributions
Re: Resource Root in 2.5.1
Ole, At the test suite level when Resource Root is ${projectDir} def resourceRoot = testSuite.project.resourceRoot resourceRoot = com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils.expandProperties( resourceRoot ) resolves to null. For the time being I've had to explicitly set (hard code) Resource Root to to my project folder path.1.6KViews0likes0CommentsRe: How does the Load Test Limit setting really work?
I'm also wondering how the history collection works. I run a burst test for 300 seconds and set the interval to 250ms. I'd expect to get 1200 samples, but soapUI appears to collect around half of that and the number of samples seems to vary with the number of threads. 100 threads gives 658 samples 200 threads gives 684 samples 300 threads gives 717 samples 400 threads gives 741 samples 500 threads gives 724 samples I too would appreciate a little help so I can make sense of the results. Thanks in advance for your help.1.3KViews0likes0CommentsRe: Resource Root in 2.5.1
After more testing I think context does not work at the test suite or test case level. I can get the value in Resource Root at the test suite setup script with: log.info testSuite.project.resourceRoot; or at the test case level with: log.info testRunner.testCase.testSuite.project.resourceRoot; BTW why does ${projectDir} fail to resolve. If I set Resource Root this value, which is in the drop down, the above debug returns the the string "${projectDir}". I'd expect the actual project folder value .1.6KViews0likes0CommentsRe: Resource Root in 2.5.1
debug code log.info context.testCase.testSuite.project.resourceRoot; In a test case setup script the above debug code returns java.lang.NullPointerException In a groovy test case step the above debug code returns Fri Mar 20 17:53:13 PDT 2009:INFO:C:\Temp or Fri Mar 20 18:04:13 PDT 2009:INFO:${projectDir}1.6KViews0likes0CommentsRe: Any ideas why loading properties file results in "Access is denied"
We've relosved this in the other post. To load a file the code should be def findwindowsProperties = new java.util.Properties(); findwindowsProperties.load( new java.io.FileInputStream( "C:/Temp/Properties.txt" + context.expand('${#TestSuite#Properties.txt}' ) )); Thanks in advance for help with other questions I will have in the future.1.2KViews0likes0CommentsResource Root in 2.5.1
A previous post indicated the ${projectDir} variable may not be working in version 2.5.1. Whether I set the project "Resource Root" property to ${projectDir} or put in an absolute path. In both cases a debug in a test case set up script returns nothing. log.info context.expand( '${#Project#Resource Root}');3.2KViews0likes7CommentsRe: Dynamic Property (Setting properties load filename)
Using the debug I found the load command was only picking up the folder/directory. Once I changed the load command syntax to include the file name in the path I was able to load the properties. E.g. properties.load( new java.io.FileInputStream( "C:/folderPath/testpropFilename" + context.expand('${#TestSuite#testpropFilename}' ) )); The file name was missing in Ole's example "Posted on: December 05, 2008, 05:21:39 pm". Did I find a bug or did Ole make a typo? I suspect my issue was not related to the web-start or stand-alone version. although I've not re-tried with the web-start version. Afterwards, I was able to assign them by modifying your User guide example // assign all properties def names = properties.propertyNames(); while( names.hasMoreElements() ) { def name = names.nextElement(); testRunner.testCase.testSuite.setPropertyValue( name, properties.getProperty( name )); }447Views0likes0CommentsRe: Any ideas why loading properties file results in "Access is denied"
I seem to have the same issue with both the stand-alone version and the web-start version. Here are the properties from the stand-alone version. apple.laf.useScreenMenuBar=true awt.toolkit=sun.awt.windows.WToolkit com.apple.mrj.application.apple.menu.about.name=SoapUI file.encoding=Cp1252 file.encoding.pkg=sun.io file.separator=\ java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.awt.printerjob=sun.awt.windows.WPrinterJob java.class.path=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\soapui-2.5.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\activation-1.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\bcprov-jdk15-141.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\binding-2.0.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-beanutils-1.7.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-cli-1.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-codec-1.3.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-collections-3.2.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-httpclient-3.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-io-1.3.2.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-lang-2.4.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\commons-logging-1.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\ext-xmlbeans-1.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\ezmorph-1.0.5.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\forms-1.0.7.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\groovy-all-1.5.7.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\j2ee-xmlbeans-1.4.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\javamail-1.4.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\jetty-6.1.14.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\jetty-util-6.1.14.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\json-lib-2.2.2-jdk15.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\jsr173_1.0_api-xmlbeans-2.4.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\jtidy-8.0-SNAPSHOT.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\junit-4.4.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\l2fprod-common-fontchooser-0.2-dev.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\log4j-1.2.14.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\looks-2.2.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\not-yet-commons-ssl-0.3.10.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\opensaml-1.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\policy-xmlbeans-1.5.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\rsyntaxtextarea-1.0-soapui.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\saxon-9.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\saxon-dom-9.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\servlet-api-2.5-6.1.14.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\soap-xmlbeans-1.2.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\soapui-xmlbeans-2.5.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\swingx-soapui.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\wadl-xmlbeans-1.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\wsdl4j-1.6.2-fixed.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\wss4j-1.5.5.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xalan-2.7.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xbean-fixed-2.4.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xbean_xpath-2.4.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xercesImpl-2.9.1.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xmlpublic-2.4.0.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xmlsec-1.4.2.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xmlunit-1.2.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\..\lib\xom-1.1.jar; java.class.version=50.0 java.endorsed.dirs=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\endorsed java.ext.dirs=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext java.home=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre java.io.tmpdir=C:\DOCUME~1\jstepan\LOCALS~1\Temp\ java.library.path=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;c:\oracle\product\11.1.0\client_1;c:\oracle\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin java.runtime.name=Java(TM) SE Runtime Environment java.runtime.version=1.6.0_10-b33 java.specification.name=Java Platform API Specification java.specification.vendor=Sun Microsystems Inc. java.specification.version=1.6 java.vendor=Sun Microsystems Inc. java.vendor.url=http://java.sun.com/ java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi java.version=1.6.0_10 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) Client VM java.vm.specification.name=Java Virtual Machine Specification java.vm.specification.vendor=Sun Microsystems Inc. java.vm.specification.version=1.0 java.vm.vendor=Sun Microsystems Inc. java.vm.version=11.0-b15 line.separator= os.arch=x86 os.name=Windows XP os.version=5.1 path.separator=; soapui.ext.actions=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\actions soapui.ext.libraries=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\ext soapui.ext.listeners=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\listeners soapui.home=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin\ soapui.properties=soapui.properties sun.arch.data.model=32 sun.boot.class.path=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\resources.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\rt.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\sunrsasign.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\jsse.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\jce.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\lib\charsets.jar;C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\classes sun.boot.library.path=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\jre\bin sun.cpu.endian=little sun.cpu.isalist= sun.desktop=windows sun.io.unicode.encoding=UnicodeLittle sun.java.launcher=SUN_STANDARD sun.jnu.encoding=Cp1252 sun.management.compiler=HotSpot Client Compiler sun.os.patch.level=Service Pack 2 user.country=CA user.dir=C:\Documents and Settings\jstepan\My Documents\Tools\soapUI\soapui-2.5.1\bin user.home=C:\Documents and Settings\jstepan user.language=en user.name=jstepan user.timezone=America/Los_Angeles user.variant=1.2KViews0likes0CommentsRe: Dynamic Property (Setting properties load filename)
In my previous post, the "..." were not the actual path just a device in the post. I installed the stand alone version but still have the same problem. I wondering if there is something I need to import/include to make the script work. BTW there is no file access error when I do something like findwindowsProperties.load( new java.io.FileInputStream( "C:/Temp/Properties.txt" )); It is something with how I'm using the context.expand.1.6KViews0likes0Comments