Contributions
problem finding file path when running SOAPUI from Java roject
I'm using SOAPUI open source and have a Groovy step which reads a file and write data into a file. I can successfully locate the files when run test step using SOAPUI own UI. When I run the same step from Java and use relative path using def projectPath = new com.eviware.soapui.support.GroovyUtils(context).projectPath i see an error that path for my file is not found. But if i use hard coded path it works but I can't do it because need to run it on Jenkins. Below is sample code def projectPath = new com.eviware.soapui.support.GroovyUtils(context).projectPath def now = new Date() timeStr1 =System.currentTimeMillis().toString() suffix ='10000000000000' projectPath = "C://Users//jradom.ORADEV//Workarea//ai-candidate-matching-qa-new//ai-candidate-matching-qa//QACMCloudWatchdogTest//src//main//resources" If I comment above line and run my project from Java i see Path related error ApplicantOriginalFileName = 'applicantOriginal1' ApplicantEntityStatusValue = 'ACTIVE' ApplicantRecommendationFlagValue = 'true' for (i = 0; i <projectPath.length(); i++) { projectPath = projectPath.replace("\\", "//") } dir = projectPath + "//applicants//" // preparing Applicant data filenameOriginal2 = projectPath + "//applicantOriginal1.json" Please help Jeff1.3KViews0likes3CommentsErrors running SOAPUI from command prompt
I'm using SOAPUI version 5.3.0 and can run tests with no issues and successfully. When I ran the same test with format "C:\Program Files (x86)\SmartBear\SoapUI-5.3.0\bin\testrunner.bat" REST-Project-CM-soapui-project_applicant.xml I'm getting errors like ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], see error log for details java.lang.ClassNotFoundException: com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory ERROR [SoapUI] An error occurred [com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory], Also, when I build using Maven a project using the same XML file using$ mvn soapui:test I'm also getting errors like Maven2 TestCase Runner 11:06:55,066 WARN [SoapUI] Missing folder [C:\Users\jradom.ORADEV\Workarea\ai-candidate-matching-qa\QACMAutomation\ext] for external libraries 11:06:55,398 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\jradom.ORADEV\soapui-settings.xml] org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'UNKNOWN' is not a valid enumeration value for AccessTokenStatus in namespace http://eviware.com/soapui/config 11:06:58,372 ERROR [SoapUI] An error occurred [Failed to load project from file [file:/C:/Users/jradom.ORADEV/Workarea/ai-candidate-matching-qa/QACMAutomation/src/test/resources/REST-Project-CM-soapui-project_candidate2.xml]], see error log for details com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/jradom.ORADEV/Workarea/ai-candidate-matching-qa/QACMAutomation/src/test/resources/REST-Project-CM-soapui-project_candidate2.xml] Caused by: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string value 'UNKNOWN' is not a valid enumeration value for AccessTokenStatus in namespace http://eviware.com/soapui/config Any help will be greatly appreciated. Thanks Jeff1.1KViews0likes1Comment