Contributions
Re: Set Project Level Variable for Current Date
Hi, Try with below code. ${=import javax.xml.datatype.DatatypeFactory; def cal = Calendar.instance;cal.getTime().format("yyyy-MM-dd'T'HH:mm:ss")} I use it in my XML so that can use date with current time8 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.4KViews1like4CommentsMaven End point issue
Do we have any solution to below post? https://community.smartbear.com/t5/SoapUI-Open-Source/Maven2-Plugin-and-endpoint/m-p/13452/highlight/true#M7665 I am also facing the same issue, when in same test case, I need to use different end points for different test steps. If any one have any suggestion/input/solution please do share with me: Thank you! Best Regards502Views0likes0CommentsGroovy assertions for Xpath are getting fail when execute my test cases with Maven.
I am Using Ready API 1.7.0 and performing my validation with groovy script.When execute the test case in Ready Api it works fine and assertion are passed.Same test case and Assertion does not work when execute it via Maven. below is the message java.lang.AssertionError: Failed : Expression: (resultstatus == true). Values: resultstatus = null at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:404) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650) at Script1.run(Script1.groovy:17) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:79) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:156) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:228) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 12:01:12,422 ERROR [errorlog] java.lang.AssertionError:8 years agoPlace ReadyAPI QuestionsReadyAPI Questions889Views0likes1CommentRe: Connection to an Oracle database without CID, but with Servicename
Hi, I tried that but it's over riding the value of connection string i used in Environments with the connection String in JDBC driver. Here is the set up fororacle.jdbc.driver.OracleDriver 1.Under preferences usedjdbc:oracle:thin:<username>/<pwd>:host:port/servicename --service name say sampleTest1.se 2.Created single database entry in Databasesjdbc:oracle:thin:<username>/<pwd>:host:port/sampleTest1.se 3.Create a test environement test with database where service name is same as i setup in preferences >JDBC driver jdbc:oracle:thin:<username>/<pwd>:host:port/sampleTest1.se --works fine 4.Create a test environement test 2with database where service name is different saysampleTest2.se --being override withsampleTest1.se So now service name in database string of 4th from above is beingoverrideby the service name i have used in 1st step above. Please confirm ifi missed anything. Thank you!!8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentRe: Connection to an Oracle database without CID, but with Servicename
Hi, thank you TanyaGorbunova!!!!! It's working :) Your solution is working for me but it's limiting me to test one database only. I have multiple environments and different service name for each data base. Please suggest how to manage that. Best regards,8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3CommentsRe: Connection to an Oracle database without CID, but with Servicename
Hi Rao, I am also facing the same issue and when using the String suggested in stack overflow it's working fine but still when try to configure the Db connection it says SID is mandatory field. What input should i give in SID field.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.6KViews0likes1Comment