Contributions
model.setValueAt is out by 1 position after upgrading to Ready! API
I've just upgraded from SoapUI Pro to Ready! API. My scripts use extensive use of model.setValueAt() to populate datasource grids e.g. model.setValueAt(tempPackID,rownum,0). The problem is that Ready! API has an extra column at the start of the grid so that nowthe column positions inmodel.setValueAt are all out by one. Is there any easy way tochange this? Thanks.Solved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentEmail TestStep
Hi, Are there any plans to support the email teststep in the Plugin Manager (the email teststep as described in http://olensmar.blogspot.se/p/soapui-plugins.html). The email still works if I put the jar into /bin/plugins but I can't reopen the email teststep to edit the step. Thanks, paulie10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentNullPointerException for logArea
In my Test Case setup script the first thing I do is clear the log def logArea = com.eviware.soapui.SoapUI.logMonitor logArea.getLogArea("script log").clear() logArea.getLogArea("SoapUI log").clear() I can run the TC without issues. However, when I try to run the TestCase from TestRunner it results in the error below 15:42:07,548 INFO [SoapUIProTestCaseRunner] Running TestCase [Entit, TC 2.1 - Family 1] 15:42:08,075 ERROR [AbstractTestRunner] Exception during Test Execution java.lang.NullPointerException: Cannot invoke method getLogArea() on null object at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) Is there a way of getting the TC running and clearing the logs or do I have to skip clearing the logs by checking if (!logArea.equals(null))10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentGrid value may not exist in xpath assertion
I've an xpath match assertion where I check that the expected result is equal to the sum of some values from a Grid datasource e.g. ${DataSource#Billed1} + ${DataSource#Billed2} However, some of the values in the datasource may be left blank. Is there a regular expression or some other way that I get it to ignore the blank values without having to use a groovy script. I could explicitly see the values to 0 in the Grid but if there was a neater solution it'd be great. Thanks.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentgetLogArea for TestCase Log
Is there a way to get the logArea of the TestCase Log i.e. the equivalent to def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "script log" ) This doesn't work for me def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "TestCase Log" ) Thanks10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1CommentRename TestCase - call to script library fails
Is there a known issue with renaming TestCases? When I rename a TestCase the last line below always fails. If I clone a TestCase and rename the cloned TC in the Clone TestCase dialog the code works as per usual. The cloned TC/renamed TC are in a different Testsuite to the Library scripts // Get a reference to the library TestSuite library = testRunner.testCase.testSuite.project.testSuites["Library"] assert library != null // Find the modules within the library memberModule = library.testCases["All_methods"].testSteps["Members"] assert memberModule != null // Initialise the library - places instances in the context memberModule.run(testRunner, context) // get the instances from the context. def myMembers = context.Members assert myMembers != null10 years agoPlace ReadyAPI QuestionsReadyAPI Questions830Views0likes1CommentRe: [Res]DataSource Loop with no initial rows?
This can be resolved. I've actually implemented my solution as described and it works. I can add the rows and the data in the Grid using the gridmodel commands while inside the loop and it will loop for each row. Thanks.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions953Views0likes0Comments[Res]DataSource Loop with no initial rows?
I have a test case : 1) Groovy script - puts data in the Grid datasource 2) Datasource 3) Groovy step - uses some of the data from the datasource 4) Request 5) Datasource loop - to step 3 I'm looking to eliminate the first groovy step as I now need some data to be put in the datasource that isn't available until step3 generates it. I'm looking to change it to 1) Datasource 2) Groovy step - calculate the data to be used in the loop and put it in the Grid datasource. Some of the data is retrieved from the Grid later in the script. 3) Request 4) Datasource loop - to step 2 Will this be able to loop around when the datasource is empty initially? Can the number of rows be changed dynamically like this in the middle of a loop? Will the groovy step be getting the data from row 0 when it accesses the Grid the first time through the loop? If this won't work what are my alternatives e.g. is there a command to set the number of rows (and leave them blank or put dummy data in the rows initially)? Thanks10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes3CommentsRe: [Res]Print to script log from groovy class
Hi Temil, as I'm looking to do this from an external groovy class (in my scripts directory) I get the error TestCase failed [groovy.lang.MissingPropertyException: No such property: log for class: Testing:groovy.lang.MissingPropertyException: No such property: log for class: Testing] I don't have any imports in my groovy class - should there be? class Testing { public testPrint() { log.info "Testing out the print from the external class" } } This is not vital, I can print to the SoapUI log, it just would have been nice to print to the script log to keep all my logging in one place. Thanks11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0Comments