Contributions
Re: DataSource Step is failing in Jenkins with ReadyAPI 3.5.1 docker image
Sorry for the late response. Seems like they have fixed it as part of (RIA‑15414) in 3.5.2 version. Its working fine after pulling ReadyAPI docker image 3.5.24 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: DataSource Step is failing in Jenkins with ReadyAPI 3.5.1 docker image
HiPrathapR Thanks for the reply. I am setting Excel path dynamically using below code. def objProject = context.getTestSuite().getProject(); def projPath = objProject.getPath() testSuite.setPropertyValue("DataSourcePath", "${projPath}${File.separator}data${File.separator}CustomerIdScenarios.xlsx") And in DataSource I am passing the "${#TestSuite#DataSourcePath}". It was working fine till ReadyAPI V3.5 in both local ReadyAPI and Jenkins. Now the latest ReadyAPI giving error in Jenkins alone. I am using the latest ReadyAPI docker image to run suites.4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes3CommentsDataSource Step is failing in Jenkins with ReadyAPI 3.5.1 docker image
I am running my ReadyAPI projects in Jenkins using the Latest ReadyAPI docker image. Now facing issue in whatever new projects created with version 3.5.1. I have a DataSource step and reading data from an Excel source. Its working completely fine when run in Local ReadyAPI in Windows system. But it gives below error when run in Jenkins using Docker imagesmartbear/ready-api-soapui-testrunner. Anyone facing the same issue? 15:27:13 09:57:02,408 INFO [SoapUIProTestCaseRunner] running step [DataSource] 15:27:13 09:57:02,413 ERROR [SoapUI] An error occurred [java.lang.NullPointerException], see error log for details 15:27:13 java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because the return value of "java.io.File.getParentFile()" is null 15:27:13 at com.eviware.soapui.impl.wsdl.support.PathUtils.getExpandedResourceRoot(PathUtils.java:362) 15:27:13 at com.eviware.soapui.impl.wsdl.support.PathUtils.expandPath(PathUtils.java:93) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.AbstractPathPropertySupport.expand(AbstractPathPropertySupport.java:83) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.a(ExcelDataSource.java:195) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.load(ExcelDataSource.java:186) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.c(WsdlDataSourceTestStep.java:613) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.b(WsdlDataSourceTestStep.java:607) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.a(WsdlDataSourceTestStep.java:794) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(WsdlDataSourceTestStep.java:804) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.run(WsdlDataSourceTestStep.java:221) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:292) 15:27:13 at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:52) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:182) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130) 15:27:13 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 15:27:13 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 15:27:13 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) 15:27:13 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) 15:27:13 at java.base/java.lang.Thread.run(Thread.java:832) 15:27:13 09:57:02,413 ERROR [errorlog] java.lang.NullPointerException 15:27:13 java.lang.NullPointerException: null 15:27:13 at java.io.File.(File.java:279) ~[?:?] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.a(ExcelDataSource.java:196) ~[ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.load(ExcelDataSource.java:186) ~[ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.c(WsdlDataSourceTestStep.java:613) ~[ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.b(WsdlDataSourceTestStep.java:607) ~[ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.a(WsdlDataSourceTestStep.java:794) ~[ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(WsdlDataSourceTestStep.java:804) ~[ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.run(WsdlDataSourceTestStep.java:221) [ready-api-soapui-pro-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:292) [ready-api-soapui-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:52) [ready-api-soapui-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:182) [ready-api-soapui-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1) [ready-api-soapui-3.5.1.jar:3.5.1] 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130) [ready-api-soapui-3.5.1.jar:3.5.1] 15:27:13 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] 15:27:13 at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] 15:27:13 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?] 15:27:13 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?] 15:27:13 at java.lang.Thread.run(Thread.java:832) [?:?] 15:27:13 java.lang.NullPointerException 15:27:13 at java.base/java.io.File.(File.java:279) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.a(ExcelDataSource.java:196) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.load(ExcelDataSource.java:186) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.c(WsdlDataSourceTestStep.java:613) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.b(WsdlDataSourceTestStep.java:607) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.a(WsdlDataSourceTestStep.java:794) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(WsdlDataSourceTestStep.java:804) 15:27:13 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.run(WsdlDataSourceTestStep.java:221) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:292) 15:27:13 at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:52) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:182) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1) 15:27:13 at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130) 15:27:13 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 15:27:13 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 15:27:13 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) 15:27:13 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) 15:27:13 at java.base/java.lang.Thread.run(Thread.java:832)Solved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes5CommentsAutoSave interval in ReadyAPI V3.5 opening a Progress bar everytime it saves projects
AutoSave interval in ReadyAPI V3.5 opening a Progress bar everytime it saves projects. AS we have more than 10 projects open, it's taking more time to save, and during that time cannot do anything in ReadyAPI. Also If I have open some browser or on some other window, AutoSAve progressBar appearing on top of browser and cannot use it. It should save projects in background as earlierSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews1like4Commentsdelay in ReadyAPI License loading in 3.3.2
After updating the readyAPI to 3.3.2 and LicenseManager to 1.3.2. ReadyAPI tool is taking too long time to load the floating license(sometimes upto 5 mins) and load the project when executed in commandline/jenkins. Any fix available for this? Running ReadyAPI TestRunner for [Project 1]directory: C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin command: cmd.exe /C testrunner.bat -r -a -j -f${WORKSPACE} "-RJUnit-Style HTML Report" -FXML "-EDefault environment" C:\myname\Temp\gitHubProject\UIAutomation\Project-1-readyapi-project Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\soapui-log4j.xml] 17:59:37,733 INFO [license] ReadyAPI 3.3.2 (build 5862) started - System properties: {OS=Windows 10, User name=myUserName} 17:59:38,002 INFO [DefaultSoapUICore] SoapUI settings were initialized from [C:\Users\myUserName\soapui-settings.xml] 17:59:38,041 INFO [SoapUIExtensionClassLoader] "C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\ext\ojdbc8-19.7.0.0.jar" has been added to the classpath. 17:59:38,043 WARN [SoapUIExtensionClassLoader] The path to the custom library is not specified. 17:59:38,189 INFO [DefaultSoapUICore] 4 JDBC drivers have been registered from the directory bin/ext: [com.mysql.cj.jdbc.Driver, oracle.jdbc.OracleDriver, org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]. 17:59:38,396 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\scripts] 17:59:38,398 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\listeners\demo-listeners.xml] 17:59:38,418 WARN [SoapUIJasperReportManager] The report directory is not specified. The default report directory will be used. 17:59:41,863 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\scripts] 17:59:42,137 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ReadyAPI Bundle 17:59:42,138 DEBUG [LicenseManagerServiceImpl] No license found for ReadyAPI Bundle 17:59:42,142 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Bundle: myComuterName 17:59:42,150 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI 17:59:42,151 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI 17:59:42,152 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: myComuterName 17:59:42,161 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI 17:59:42,162 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: myComuterName 17:59:43,585 INFO [PluginManager] 6 plugins loaded in 456 ms 17:59:43,585 INFO [DefaultSoapUICore] All plugins loaded 18:01:19,391 DEBUG [LicenseManagerServiceImpl] Valid license file found: C:\Users\myUserName\.soapui\soapui.key, last modified: 2020-09-07T17:50:36.068+0530 18:01:19,414 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI 18:01:19,414 DEBUG [LicenseManagerServiceImpl] No license found for LoadUI 18:01:19,420 DEBUG [LicenseManagerServiceImpl] License host for LoadUI: myComuterName 18:01:19,424 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV 18:01:19,424 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV 18:01:19,428 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: myComuterName 18:01:20,312 INFO [WsdlProject] Loaded project from [file:/C:/myname/Temp/gitHubProject/UIAutomation/Project-1-readyapi-project/] 18:01:20,395 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\scripts] 18:01:20,485 INFO [SoapUIProTestCaseRunner] Running tests in the project [Project 1] 18:01:20,792 INFO [SoapUIProTestCaseRunner] Running Project [Project 1], runType = SEQUENTIAL 18:01:20,825 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase 1] 18:01:20,858 INFO [SoapUIProTestCaseRunner] running step [step1] 18:01:21,634 INFO [log] starting step!! 18:01:21,688 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TestCase 1], time taken: 770ms, status: PASS 18:01:21,794 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase 2] 18:01:21,794 INFO [SoapUIProTestCaseRunner] running step [step1] 18:01:21,826 INFO [log] starting step!! 18:01:21,829 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TestCase 2], time taken: 31ms, status: PASS 18:01:21,833 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase 3] 18:01:21,834 INFO [SoapUIProTestCaseRunner] running step [step1] 18:01:21,862 INFO [log] starting step!! 18:01:21,865 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TestCase 3], time taken: 28ms, status: PASS 18:01:21,872 INFO [SoapUIProTestCaseRunner] Project [Project 1] finished with status [PASS] in 1071ms 18:01:22,620 INFO [SoapUIProTestCaseRunner] Created report [JUnit-Style HTML Report] to path [file:/C:/myname/Temp/gitHubProject/UIAutomation/index.html] ReadyAPI 3.3.2 TestCaseRunner Summary ----------------------------- Time Taken: 2135ms Total TestSuites: 1 Total TestCases: 3 (0 failed) Total TestSteps: 3 Total Request Assertions: 0 Total Failed Assertions: 0 Total Exported Results: 3 18:01:22,689 INFO [SoapUIProTestCaseRunner] Created report at file:/C:/myname/Temp/gitHubProject/UIAutomation/index.html 18:01:22,692 INFO [license] ReadyAPI 3.3.2 shutting downSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes1CommentRe: Make it possible to clone environments between different projects
It'd be very useful if we have this feature to import and export all environments from one project to another project. It should be similar to how we export a testcase into .xml file and from another project we import the same .xml file as testcase. We have more than 30 wsdl and each having 10 versions, its very difficult to create env from scratch when we create new projects in ReadyAPI. As shown below, need two options like import and export, when we export env, tool should create a .xml file having all the environment details(SoapServices,Custom Prop,JDBC req,JMS Ser,REST Serv etc.) When we import the same xml from another project, all these environments should be configured in new project(Just need to add these data into project settings.xml file)4KViews0likes0CommentsRe: How to create object of EnvironmentEndpointConfig
Finally it worked, I just created a string and converted into EnvironmentEndpointConfig def str = '<xml-fragment authProfile="No Authorization" username="" password="" domain="" incomingWss="" outgoingWss="" wssTimeToLive="" wssType="" proxyHost="" proxyPort="" proxyUsername="" proxyPassword="" xmlns:con="http://eviware.com/soapui/config">' + NewUrl+ '</xml-fragment>' com.eviware.soapui.config.EnvironmentEndpointConfig epConfig = com.eviware.soapui.config.EnvironmentEndpointConfig.Factory.parse(str); EndpointImpl epImpl = new EndpointImpl(epConfig, soapService); soapService.setEndpoint(epImpl);4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews1like1CommentRe: How to create object of EnvironmentEndpointConfig
Hi@HimanshuTayal I am trying to create object ofEnvironmentEndpointConfig, but not sure if this is correct way. I am getting 'Connection refused' error. I was trying to implement as given in https://community.smartbear.com/t5/SoapUI-Pro/how-to-set-SOAP-and-REST-Service-Endpoint-into-Environments-from/td-p/1050774 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes2CommentsHow to create object of EnvironmentEndpointConfig
I have a readyAPI project and it has only default environemnt. I want to create a new environment(DEV) and add all the services using groovy. I searched some code, but it fails to cast url toEnvironmentEndpointConfig. import com.eviware.soapui.model.environment.ServiceImpl def wsdl = testRunner.testCase.testSuite.project.getInterfaceAt(0) def newEnv = testRunner.testCase.testSuite.project.addNewEnvironment("ABC") def nameofService = testRunner.testCase.testSuite.project.getInterfaceAt(0).name ServiceImpl soapService = newEnv.addNewService(nameofService, com.eviware.soapui.config.ServiceConfig.Type.SOAP) URL url = new URL(wsdl.getDefinition()); com.eviware.soapui.config.EnvironmentEndpointConfig epConfig = com.eviware.soapui.config.EnvironmentEndpointConfig.Factory.parse(url); EndpointImpl epImpl = new EndpointImpl(epConfig, soapService); soapService.setEndpoint(epImpl); Please guide meSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes4CommentsRe: Configure ReadyAPI new environment using Groovy
@HimanshuTayal Thanks for the reply. Using setActiveEnvironment I can only set the existing environment. But I want to create a new environment in ReadyAPI using groovy scripts. Ex: suppose I have two envs DEV1 and SIT1, now I want to clone DEV1 and rename it as UAT1 or create a new env UAT1.4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes0Comments