sanathkdOccasional ContributorJoined 5 years ago7 Posts3 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsError groovy.lang.MissingMethodException: No signature of method: java.lang.String.getService() Below is my piece of automation code def getEnv = project.getEnvironmentByName(env); def wsdlInterface = project.getInterfaceAt( 0 ).getName(); def wsdlService = getEnv.getService(wsdlInterface, com.eviware.soapui.config.ServiceConfig.Type.Enum.forString("SOAP")); Getting below error when trying to get service details for my automation. . groovy.lang.MissingMethodException: No signature of method: java.lang.String.getService() is applicable for argument types: (String, com.eviware.soapui.config.ServiceConfig$Type$Enum) values: [rentalDetails_V1_1PortTypeSoap11, SOAP] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:70) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:148) Getting 308 Permanent Redirect code on ReadyApi for url and end points that works great on Postman I am getting 308 Permanent Redirect code for an end point that I am trying to test on Ready-API. When I try the same end point on Postman I receive 200 status code. I'm using Ready-API HTTP Request for the same. Also both Postman and Ready-API has same authorization setup - BASIC I see that "Follow Redirects = true" both in Postman as well as in Ready-API, the answer didn't help me: https://community.smartbear.com/t5/API-Functional-Security-Testing/Getting-308-Redirect-code-on-REadyApi-for-url-and-end-points/td-p/210554. Most of the parameters are verified and are same as in Postman. May be I'm suspecting "Content-Type: application/xml" which in Postman has a different value "Content-Type: application/vnd.realtime247.sct-v2+xml" Please help me. Re: Parameterize the context.expand to have dynamic value It is solved now 😃 I figured it out myself. The script helped me: def propertyStepName = "Properties"; propertyRead(propertyStepName, "logRef"); propertyRead(propertyStepName, "user"); public void propertyRead(String propertyStepName, String value){ def newValue = context.expand('${'+propertyStepName+'#'+value+'}'); } sanathkd wrote: Hello all, I'm trying to parameterize a context.expand and re-use the same method for various properties like below. But the "value" seems not taking properly. Anyone to guide me here? Parameterize the context.expand to have dynamic value Hello all, I'm trying to parameterize a context.expand and re-use the same method for various properties like below. But the "value" seems not taking properly. Anyone to guide me here? SolvedTrying to add monitors for the test case fails with Access is denied Trying to create monitors for my test case but its failing with "Access is denied" error. Attached screenshots and logs from the READYAPI-3.4.0. Error is as below. Attempt to create sample monitor failed with the following error: C:\Users\xxxxx\OneDrive\PROJECTFILES\COMPOSITE_PROJECTS\testMonitor (Access is denied) ReadyAPI Logs for reference Sat Oct 03 09:31:06 IST 2020: INFO: TestCase [ Monitor_TestCase ] not changed so not saved. Sat Oct 03 09:31:06 IST 2020: INFO: TestSuite settings [ Test_Monitor ] not changed so not saved. Sat Oct 03 09:31:06 IST 2020: INFO: Project settings [ Test_Project ] not changed so not saved. Sat Oct 03 09:31:06 IST 2020: INFO: Saved Composite Project [Test_Project] to [C:\Users\E593\OneDrive\PROJECTFILES\COMPOSITE_PROJECTS\testMonitor] Please help me to explore this part of the ReadyAPI tool Creating databaseConnectionContainer in readyapi using groovy script I know below groovy scripts are used to get JDBC details from the ReadyAPI tool. ======================================== jdbcName = context.testCase.testSuite.project.databaseConnectionContainer.getResourceAt(0).getName(); jdbcDriver = context.testCase.testSuite.project.databaseConnectionContainer.getResourceAt(0).getDriver(); jdbcString = context.testCase.testSuite.project.databaseConnectionContainer.getResourceAt(0).getConnectionString(); ======================================== envJdbcName = context.testCase.testSuite.project.activeEnvironment.databaseConnectionContainer.getResourceAt(i) envJdbcString = context.testCase.testSuite.project.activeEnvironment.databaseConnectionContainer.getResourceAt(i) But I'm interested in creating these values using groovy. Is there any set scripts? Something like below? String jdbcName = "abcd"; log.info "Trying to Create new JDBC Connection with Name: " + jdbcName; String newJdbcString = context.testCase.testSuite.project.databaseConnectionContainer.setContainer( jdbcName ); I get below error when i use this groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.support.connections.DefaultDatabaseConnectionContainer.setContainer() is applicable for argument types: (String) values: [abcd] error at line: 4 Any help is appreciated, thanks in advance. I even know how to set values once this created. newJdbcName = getEnv.databaseConnectionContainer.getResourceAt(i).setConnectionString(pwhConnectionString) One time creation of JDBC row under databaseConnectionContainer is the problem I'm facing. SolvedMake the xml request Editor window larger by hiding many things Make the xml request Editor window larger by hiding many things. Here attached the picture and suggestions within. Many Indian's will work in Laptop's and it makes them very very less productive in terms of small screen window. One solution is to use large TV screen but costwise tixing the application is quite cheaper than buying 100k new TV's. I have used large screen and i say my productivity increases as i see lot moere stuffs in screen. Please try to give more options under menu bar VIEW so people can disable the view when not needed. For my daily use, i disable most of the items still the window us small for me. Suggestion: Area "Projects, Dashboard, Integrations" zone can be made hidden. Or these should be merge these with area "navigate, New Project, New Jira, Monitor API" Regards, sanathkd