TestComplete 14 via commandline opens with error
When I open TestComplete via command line with or without arguments, it always shows an error: Cannot open the'C:\Program Files (x86)\SmartBear\TestComplete 14\x64\Bin\TestComplete.exe' file vecause it is not a valid project suite or project file. Of course it is not, this is the path of TestComplete.exe. The right project can not be specified. When I open TestComplete via .exe file, the error is not shown.Solved1.8KViews0likes4CommentsReceiving JVM error in jenkins when using testrunner.bat
Team, We are doing Continuous Integration with Jenkins by using SoapUI NG TestRunner. Daily 50 plus jobs are running in it. At times, we could see the below error in the job log, ------------------------------------------------------------------------------- The process cannot access the file because it is being used by another process. C:\Users\...\AppData\Local\Temp\jfxrtpath The process cannot access the file because it is being used by another process. The process cannot access the file because it is being used by another process. C:\Users\...\AppData\Local\Temp\readyxmx The process cannot access the file because it is being used by another process. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Invalid maximum heap size: -Xmx Build step 'Execute Windows batch command' marked build as failure Recording test results readyapi.bat had -Xmx2048m. Not sure what caused this issue. We believe, it is not following any patterns , it occurs randomly for some jobs. Please suggest solution for this issue and let us know, if you need any further details.Solved4.8KViews0likes7CommentsCommand Line Update Script Library and Reload
Hello I'm looking for some help or guidance on anissue.My issue has to do with loading the external script library in Ready! API. I want to be able to update the location of the external script library to a location that is relative to the project file (e.g. "$PROJECT_PATH/scripts"), and then be able to make calls on classes in the script library. This also must be possible from a clean install of Ready! API and load of the project file, so I cannot just set it once and then forget it. So, I've written the following code which accomplishes this task. This code is executed on the project "Load Script" and subsequent calls in the same script on the Script Library work correctly. //Update "Script Library" setting def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def projectPath = groovyUtils.projectPath def isCommandLine = com.eviware.soapui.SoapUI.isCommandLine log.info "Load Script" com.eviware.soapui.SoapUI.getSettings().setString("Script Library", "${projectPath}/scripts") com.eviware.soapui.SoapUI.saveSettings() However, this only work when running from GUI. When running from Command Line OR GUI, I get errors that it cannot find classes present in my external Script Library: "groovy.lang.MissingPropertyException: No such property: mypackgefor class: Script1" "org.codehaus.groovy.control.MultpleCompilationErrorsException: startup failed: Script1.groovy: 1: unable to resolve class mypackage.myclass ..." For continuous integration testing, I need this to work when invoking "testrunner.bat"/"testrunner.sh" and running tests. I've tried adding the following snippets of code, which do not seem to work either: //Update Groovy Script cache def engine = new com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory(isCommandLine) def classLoader = engine.getCoreClassLoader() def groovyClassLoader = new com.eviware.soapui.support.scripting.groovy.SoapUIGroovyClassLoader(classLoader, isCommandLine) groovyClassLoader.syncExternalClasses(true) and def core = com.eviware.soapui.SoapUI.getSoapUICore() core.reloadExternalLibraries() In the logs, I get messages that it did indeed set the Script Library path correctly and it is resetting the groovy class cache: INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\path\to\script\library] INFO [SoapUIProGroovyScriptEngineFactory] Resetting groovy class cache due to 78 modified files Any advice on how to get this working from command line as well? EDIT: After further testing, my solution doesn't work even when using the GUI. EDIT2: Playing around some more and I found that in the GUI, if I move my Script Library calls out of the Project Load Script (where it's updating the Script Library path), it works just fine. However, command line execution still has trouble figuring out the Script Library calls (throws exceptions and such).1.5KViews0likes0CommentsPassing testcase property from command line
Hi All, I am running soap ui via command line and trying to set the testcase property . Doesnt work using -P, since it sets project property and not testcase property. P : Sets project property with name=value, e.g. -Pendpoint=Value1 -PsomeOtherProperty=value2 but I need to set the testcase property. Is it possible? The sample excerpt is as below: exportSOAPUIProject=/home/SoapUi/project.xml ./testrunner.sh $SOAPUIProject -s"Database TestSuite" -cTableUpdate -PChosenDB=$database Where$database is the dynamic variable I intent to pass to testcase.952Views0likes1Comment