cancel
Showing results for 
Search instead for 
Did you mean: 

Is SoapUI is unable to import a project with an XML file that is very large?

Highlighted
New Contributor

Is SoapUI is unable to import a project with an XML file that is very large?

I've recently created tests in SoapUI to test a service that can upload a file to a maximum of 50MB. I've cached these files so that the system won't look for them in my directories every time I run these tests. This obviously increased the xml file size (from 63,823KB to 638,826KB) but I thought SoapUI could handle it. The day after, SoapUI has a problem opening my workspace and lets me know if I want to create a new one. I say yes then attempt to import the project again and nothing happens. Is it because the xml file became too big? Does SoapUI have a import file cap?

 

Note:

  • No Error appears.
  • ReadyAPI acts as if no action was selected.
  • Have SoapUI Pro
6 REPLIES 6
Highlighted
Community Hero

Re: Is SoapUI is unable to import a project with an XML file that is very large?

Hi,

 

I don't think I can help per se - but I'm intrigued - this'll probably require an answer by SmartBear.

 

I suppose it depends what sort of XML parser ReadyAPI! uses - DOM vs SAX or variations there of.

 

Did you check the resource usage via say taskmanager when you try and import the project?

 

As I say - my comments have been no help at all - but to help diagnose I'd repeat the procedure and monitor taskmanager to check the resource usage.

 

I did find the following link on this forum

 

I think you might have to revert back to your previous approach to source the test data files from the directory - I'm assuming you cached the files to get around some latency of reading the test data files from the directory?

 

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Community Hero

Re: Is SoapUI is unable to import a project with an XML file that is very large?

Hey,

I'm on the road so I have no way of checking this but you might be able to do it. Since the project is an xml file you could delete the tags containing the cached file and then try to import the project once more and see what happens.

If this is indeed a bug just open a ticket with SmartBear and they'll fix it asap depending on their issue prioritizing.


If my answer helped please click on the 'Accept as Solution' button.
Highlighted
New Contributor

Re: Is SoapUI is unable to import a project with an XML file that is very large?

Thanks for the reply. I checked the task manager and when I attempt to import the project, ReadyAPI's CPU usage jumps to approximately 90% for about 2 seconds and then it comes back down to 0%. So it does attempt to import the project but then gives up I guess. I see on that link you provided that no one has yet to complain about the file size of project. I might have hit the limit of SoapUI with my case. 

And you assumed correctly as to why I cache the files in the project. Reading a 50MB file off the directory will cause unnecessary latency. But in this case, it might not be recommended to cache such large files. 😕

 

I have reverted back to a previous version of the project before I added the 50MB file tests and the project does import successfully. Hopefully Smartbear can help me with this issue. I would be happy if this helps Smartbear with project file size research.

Highlighted
Community Hero

Re: Is SoapUI is unable to import a project with an XML file that is very large?

I've ran into similar issues that when a project gets significantly large enough (usually 100MB or larger), that ReadyAPI takes awhile to open it. One way I've been able to get around this is to ensure that your memory settings in ReadyAPI are set large enough to handle said project. You can see a guide for adjusting memory settings here.

 

I've allowed ReadyAPI to use a lot more memory which has helped me open 100-200MB project xml files. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
Highlighted
New Contributor

Re: Is SoapUI is unable to import a project with an XML file that is very large?

The file size of my xml file is 623MB. I tried to increase the amount of allocated memory (increasing the -Xmx on the .vmoptions file) but that did not work. I was still unable to import the project. My work PC has 8GB of RAM so the recommend value by SmartBear is half of that (-Xmx4000m). Would allocating more memory resolve this issue? Feels like I would need about 32GB of RAM (-Xmx16000m) in order to import this project if that's the case.

Highlighted
Community Hero

Re: Is SoapUI is unable to import a project with an XML file that is very large?

The largest I've gotten a project is ~200MB, and that took 2-5 minutes to open on my machine. I have 32GB of RAM and set my vmoptions to 24GB. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors