java -cp %THECLASSPATH% org.robotframework.RobotFramework rebot --outputdir ../test-results/ ../test-results/generatedTests.xml ../test-results/output.xml
Exception in thread "MainThread" java.lang.OutOfMemoryError: Java heap space.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Hi,You could try post-processing results with Rebot on Python, not on Jython. Python in general is fastee and more memory efficienent than Jython, and when processing results you can use Python even if needed to run tests on Jython.Another easy solution is getting more memory. Using --flattenkeywords like you've already tried may help as well.If your output.xml size grows really large, even the above tricks may not be enough. In this case it's beat to try making the file smaller. You should especially avoid for loops, Wait Untill Keyword Succeeds, and deeply nested keyword structures by moving such logic into libraries when possible.Sent from my mobile.
17.4.2018 21.46 "Mg" <marcogr...@gmail.com> kirjoitti:
Hi,I currently have two sets of tests whose outputs I'd like to merge: generatedTests.xml, and output.xml. generatedTests.xml is very large (550.248 mb), because it's programmatically generated from a big pool of test data through python. Output.xml is hardcoded and small: I'd like to merge them after test execution.I understand that I can delete the xml files after results are generated, but I'd like to merge them instead of having two separate logs. To merge them, I tried:java -cp %THECLASSPATH% org.robotframework.RobotFramework rebot --outputdir ../test-results/ ../test-results/generatedTests.xml ../test-results/output.xmlbut I get:Exception in thread "MainThread" java.lang.OutOfMemoryError: Java heap space.I had to allocate 6g of memory to coax rebot --flattenkeywords to start, and even then it crashed quietly after a half hour. Is this just a consequence of running an abnormally high volume of tests? Is there anything that can be done to reduce ouput xml size? Could it be because I'm running through the standalone jar?Cheers,Marco
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
java -cp %THECLASSPATH% org.robotframework.RobotFramework rebot --outputdir ../test-results/ ../test-results/generatedTests.xml ../test-results/output.xmljava -server -Xms1g -Xmx6g -XX:+UseG1GC -cp %THECLASSPATH% org.robotframework.RobotFramework rebot --outputdir ../test-results/ ../test-results/generatedTests.xml ../test-results/output.xmlI think it should be something like this in case Java 7 and higher releases:java -server -Xms1g -Xmx6g -XX:+UseG1GC -cp %THECLASSPATH% org.robotframework.RobotFramework rebot --outputdir ../test-results/ ../test-results/generatedTests.xml ../test-results/output.xml
java -Xms1g -Xmx8g -cp ---> (the remainder of the commands)
Traceback (most recent call last):C:\Python27\Lib\site-packages\robot\rebot.py --outputdir -----> (the remainder of the commands)
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\robot\rebot.py", line 411, in <module>
rebot_cli(sys.argv[1:])
File "C:\Python27\Lib\site-packages\robot\rebot.py", line 378, in rebot_cli
return Rebot().execute_cli(arguments, exit=exit)
File "C:\Python27\Lib\site-packages\robot\utils\application.py", line 46, in execute_cli
rc = self._execute(arguments, options)
File "C:\Python27\Lib\site-packages\robot\utils\application.py", line 90, in _execute
error, details = get_error_details(exclude_robot_traces=False)
File "C:\Python27\Lib\site-packages\robot\utils\error.py", line 47, in get_error_details
details = ErrorDetails(exclude_robot_traces=exclude_robot_traces)
File "C:\Python27\Lib\site-packages\robot\utils\error.py", line 60, in ErrorDetails
raise exc_value
MemoryError--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.