SOAP UI - Basic Authentication - where do I find it in Server Code?
I have a SOAP Server written in PHP - and am Testing using SOAP UI. Everything works fine and returns results as expected. I am now trying to add in Basic Authentication - have set up in SOAP UI with Username and Password - BUT can't find how to check it in the Server code? I was expecting the credentials to be in the [SERVER] object passed to the server - but they are not. Can anyone help and advise how I check these items? Thanks PhilSolved12KViews0likes11CommentsHow to create html file in groovy script and how to use dynamic values from response to html code
How to create html file in groovy script and how to use dynamic values from response to html code Basic HTML code in groovy will be little helpful for me and dynamically need to change value in html code which I will get from API responses Please respond anything is fine Thanks in advance AlexKaras Marsha_R @richieSolved8.1KViews0likes7CommentsProperty Transfer failed when run through maven maven build
hello everyone! I need your quick help. I have a problem when i run my little SoapUI Project with cmd (Winodws 10 & SoapUI Verison 5.6.0). My project consists of two calls, where from the response of the first call an attribute into the second call. When I run the test case in SoapUI everything works fine. Now I have saved the project as XML and included it in the build process of my POM. When I start the project via cmd, it also runs the first call and recognizes it as valid. But when the property transfer is pending, it gives the following error: 11:00:43,526 INFO [SoapUITestCaseRunner] running step [Property Transfer] java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.lang.Object.finalize() throws java.lang.Throwable accessible: module java.base does not "opens java.lang" to unnamed module @20890a1a at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) at java.base/java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:130) at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:86) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:116) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:116) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at org.codehaus.groovy.reflection.stdclasses.CachedClosureClass.<init>(CachedClosureClass.java:29) at org.codehaus.groovy.reflection.ClassInfo.createCachedClass(ClassInfo.java:269) at org.codehaus.groovy.reflection.ClassInfo.access$400(ClassInfo.java:36) at org.codehaus.groovy.reflection.ClassInfo$LazyCachedClassRef.initValue(ClassInfo.java:435) at org.codehaus.groovy.reflection.ClassInfo$LazyCachedClassRef.initValue(ClassInfo.java:426) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.ClassInfo.getCachedClass(ClassInfo.java:89) at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:107) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:189) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:93) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:71) at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:33) at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:62) at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32) at net.sf.json.groovy.JsonSlurper.<init>(JsonSlurper.java:46) at net.sf.json.groovy.JsonSlurper.<init>(JsonSlurper.java:43) at com.eviware.soapui.support.JsonUtil.isValidJson(JsonUtil.java:32) at com.eviware.soapui.support.JsonPathFacade.<init>(JsonPathFacade.java:37) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfer.readSourceValue(PropertyTransfer.java:347) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfer.transferProperties(PropertyTransfer.java:317) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfersTestStep.run(PropertyTransfersTestStep.java:125) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfersTestStep.run(PropertyTransfersTestStep.java:103) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) 11:00:44,278 ERROR [AbstractTestRunner] Exception during Test Execution java.lang.ExceptionInInitializerError at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:62) at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32) at net.sf.json.groovy.JsonSlurper.<init>(JsonSlurper.java:46) at net.sf.json.groovy.JsonSlurper.<init>(JsonSlurper.java:43) at com.eviware.soapui.support.JsonUtil.isValidJson(JsonUtil.java:32) at com.eviware.soapui.support.JsonPathFacade.<init>(JsonPathFacade.java:37) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfer.readSourceValue(PropertyTransfer.java:347) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfer.transferProperties(PropertyTransfer.java:317) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfersTestStep.run(PropertyTransfersTestStep.java:125) at com.eviware.soapui.impl.wsdl.teststeps.PropertyTransfersTestStep.run(PropertyTransfersTestStep.java:103) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:831) Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.lang.Object.finalize() throws java.lang.Throwable accessible: module java.base does not "opens java.lang" to unnamed module @20890a1a at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) at java.base/java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:130) at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:86) at java.base/java.security.AccessController.doPrivileged(AccessController.java:312) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:116) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:116) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:211) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:101) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:71) at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:33) ... 20 more 11:00:44,331 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [TestCase - Symptom], time taken: 487ms, status: FAILED 11:00:44,333 INFO [SoapUITestCaseRunner] Project [Project 1] finished with status [FAILED] in 1602ms [ERROR] java.lang.Exception: TestCase [TestCase - Symptom] failed without assertions I also have a sample project without property transfer and everything runs without errors when I start it via the cmd, so it can really only be the property transfer. Have any of you ever had this problem? I really need your help!Solved6.8KViews0likes4CommentsJDBC Connection String, Issue with the password
Hello you all, So I am trying to connect to my database using a JDBC teststep in SoapUI. I am using this connection string : When I test this connection I get the error shown in this image : After some researches, I found that the problem come from the '@' in the password (my password is '@12345').I changed the database password to '12345' and obviously it worked. Is there any solution for me to connect to my database without changing the password ?Solved6.6KViews0likes8CommentsHow do you use a Groovy script to clone a TestSuite from one project to another?
I found the interface Interface CloneTestSuiteAction.Form in the SoapUI API docs, but I am unsure how to use to it to implement the cloning. The clone would be something like moving the TestSuite "Example" from Project 1 to Project 2. Any help would be greatly appreciated. Thanks!Solved4.1KViews0likes5CommentsHow can I get a testStep level property in groovy
Hi Folks, I want to get the value from a Property by a testStep level with groovy script, but the code that I've found isn't working. I've searched through the internet also smart bear guides, but I didn't find it. the error that I was receiving with this code is: groovy.lang.MissingMethodException: No signature of method: java.util.HashMap.getPropertyValue() is applicable for argument types: (java.lang.String) values: [ArquivoCenarios] error at line: 8 The last line of my code below is line 8. import jxl.* import jxl.write.* //planilhaExcel = "C:\\transfer\\data2.xls" def planilhaExcelObj = testRunner.testCase.testSteps.getPropertyValue("ArquivoCenarios")3.6KViews0likes4CommentsReading Excel Data with groovy and execute request
Hi Everyone I want to use Excel as a Datasource (Testdata) to execute an request where it creates me a Person with information about him. I want to be able to execute one or five testdatas at once. I saw some videos regarding this issue but somehow I am not able to do it since my data is different then theirs and im not very good in groovy script. My dataset looks like this: Attribute Dataset1 Dataset2 Dataset3 Language de fr en Name QW ER TZ Surname AS DF GH Degree False True False Gender Male Female Male Birthdate 1988-01-01 1989-01-01 1990-01-01 Could someone help me with the groovy script? Vallalarasu_PI tried your version with csv and that would work but the birthdate is changing for me from "yyyy-mm-dd" to "dd-mm-yyyy" when I save the file.3.5KViews0likes2CommentsCreating a custom Delay teststep via a Groovy scripting step
I managed to create a custom Delay test step via Groovy script but I can't seem to modify the step. def stepName = "DelayTimeWindow" def newPropertiesStep = testCase.getTestStepByName(stepName) if (newPropertiesStep == null) { newPropertiesStep = testCase.addTestStep('delay', stepName) } I can't seem to modify the actual delay value (in milliseconds) nor am I able to disable the test step from the normal sequential execution of the test case after I create it via code. I need to be able to set up a dynamic delay based on a value set by the 'main' script I have in the test case. The custom delay step is needed to be called by another (disabled) test step which is triggered by the 'main' test step calling it via therunTestStepByName() function. I've tried to use Thread.sleep() but it seems to have messed up the whole test case when it woke up after that sleep(). I wasn't even getting proper logging info on the script log window at the bottom of the screen after that. The test case contains multiple test steps that are all in the disabled state and only called via one main, active Groovy test step depending on multiple variables from an input spreadsheet and many of the test steps are being reused throughout the execution of the test case.Solved3.5KViews0likes8CommentsIs there any way to read different project properties in groovy through soap ui
I am preparing summary report for my soap ui project but in have more than 3 projects but not sure how to read /get the total test case ,passed count from each project suite and make consolidated report ?? Currently I have individual project reports but need help on this part, do I need to use global property?Solved3.2KViews0likes6Comments