Contributions
- 6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews0likes0Comments
- 6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews0likes0Comments
Re: Using getXMLHolder with parameters?
Thanks so much for your reply. Should have known that, I had to context.expand to log it too. Getting close. Now after I update my holder["//lockpid"] and holder.updateProperty I get the new pid value logged, but my original property isn't changed... log.info("incoming xml= " + context.expand( '${#TestCase#paramXML}')); def holder = groovyUtils.getXmlHolder(context.expand( '${#TestCase#paramXML}')); holder["//lockpid"] = context.expand( '${#TestCase#paramLockPid}' ); holder.updateProperty(); this is not updating my TestCase#paramXML property log.info("pid now=" + holder["//lockpid"]); this shows the new pid value log.info("outgoing xml= " + context.expand( '${#TestCase#paramXML}')); outgoing xml = incoming Do I now have todo some kind of set property like ...testRunner.testCase.setPropertyValue("paramXML", something); ???6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews0likes2CommentsUsing getXMLHolder with parameters?
I've seen tons of examples of getXMLHolder calls passing the teststepname#request or teststepname#response and that works fine. However, my input XML arrives via CSV file and gets assigned to DataSourceCsv#xml. I can log DataSourceCsv#xml and it contains the right stuff, e.g. <transaction><apiname>DoSomething</apiname><company>3457714</company><house>100258</house><cust>1</cust><opr>INF</opr><lockpid>0</lockpid></transaction> I have to update the lockpid value before executing the request, doing getXmlHolder, then holder["//lockpid"] = whatever. I have tried: def holder = groovyUtils.getXmlHolder("DataSourceCsv#xml"); and then created a test case param and set its value to DataSourceCsv#xml and tried def holder = groovyUtils.getXmlHolder("paramXML"); and def holder = groovyUtils.getXmlHolder( '${#TestCase#paramXML}'); All result in "org.apache.xmlbeans.XmlException: error: Unexpected element CDATA error at line X". Do I have to manipulate my param in some way so getXmlHolder likes it, or is there a completely different way to do this when you don't have static XML?Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.5KViews0likes6CommentsModified datasource not used
I setup a test case with a DataSource loop. My source is an Excel spreadsheet, let's call it SoapDriver1.xls. Sheet1 contains 100 rows. I run the test and it completes successfully. Next, I go into Excel and modify the data for the next run, this time only 10 rows. Re-run the test and it still uses the old information, 100 rows. So, I doa Save As to SoapDriver2.xls and then Browse in the DataSource Configuration screen to choose the new data source. Still getting the original 100 rows of data! Even when I exit the program and re-run with the source clearly pointing to SoapDriver2.xls. What do I have to do to get it to reset the data source?? I do get a "Loading definitions from cache" message when I run the test case, is it caching the entire data source? Running ReadyAPI 2.1.Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentCreate Report after load test overwrites without warning
The Create Report option that is used to do data exporting of run statistics (csv files) after a load test has changed in release 4.6. In 4.5, the export file name text box remembered the last folder you exported to, and gave you the option of entering a file name. In 4.6, the folder text box is cleared so you have to keep re-entering the folder location, and it no longer asks for the export file name but uses the same file name as the last export-"LoadTestStatistics.csv"-and gives no warning that it's about to overwrite the existing file. In addition, the actual data exported has changed and there is a new first column containing color information (?) which of course means nothing to Excel when the CSV file is opened. 4.5 export data: Test Step,min,max,avg,last,cnt,tps,bytes,bps,err,rat Open1,205,3525,368.32,297,52,0.0,17940,1,0,0 SetOne1,203,850,296.86,277,52,0.0,16380,1,0,0 ClrOne1,202,1634,301.21,307,52,0.0,16380,1,0,0 SetFour1,202,1547,292.26,262,52,0.0,16380,1,0,0 ClrFour1,202,1732,303.9,240,52,0.0,16380,1,0,0 SetFive1,207,510,272.03,263,52,0.0,16380,1,0,0 ClrFive1,203,363,270.59,303,52,0.0,16380,1,0,0 4.6 export data: " ","Test Step","min","max","avg","last","cnt","tps","bytes","bps","err","rat" "java.awt.Color[r=242,g=80,b=190]","DataSource","6","18","11.8","10","5","0.03","0","0","0","0" "java.awt.Color[r=201,g=255,b=10]","Open1","194","216","206.6","216","500","3.42","172500","1180","0","0" "java.awt.Color[r=191,g=255,b=255]","SetOne1","185","207","199.92","207","500","3.42","157916","1080","0","0" "java.awt.Color[r=255,g=255,b=74]","ClrOne1","194","212","199.72","201","500","3.42","157708","1079","0","0" "java.awt.Color[r=255,g=255,b=241]","SetFour1","184","214","198.4","201","500","3.42","157708","1079","0","0" "java.awt.Color[r=237,g=255,b=94]","ClrFour1","187","204","196.52","193","500","3.42","157708","1079","0","0" "java.awt.Color[r=255,g=5,b=224]","SetFive1","188","198","194.33","197","500","3.42","157604","1078","0","0" "java.awt.Color[r=234,g=51,b=77]","ClrFive1","186","211","198.65","211","500","3.42","157916","1080","0","0" "java.awt.Color[r=255,g=178,b=181]","DataSource Loop","0","0","0.0","0","500","3.42","0","0","0","0" "null","TestCase:","131806","146218","139111.81","142610","5","0.03","111906000","765855","0","0" I haven't a clue what to do with the color information but maybe it's a feature and not a bug? To demonstrate the behavior: 1. Run a load test in soapUI PRo 4.6 2. Click on the "Create Report" icon 3. Format=Data Export, LoadTestStatistics check box, Format=CSV, Generate Header Row checked11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1Comment