New issue 169 by sowmyasriniv: Test Report Not getting generated for a
large output.xml file
http://code.google.com/p/robotframework/issues/detail?id=169
Hi,
Issue:
We are using a FOR loop in our test case which iterates through 3000+
table values and gets the value of each cell in the table
The test case is shown as PASS in the command prompt, but
Since the output.xml generated is very large, the log.html is not created
and gives the following error:
Output:
d:\sowmya\testautomation\systemtestscrum\newstry\trafnewsjavaclient\out
put\output.xml
[ ERROR ]
File 'd:\sowmya\testautomation\systemtestscrum\newstry\trafnewsjavacli
ent\output\output.xml' is not a valid XML file.
Out requirement is such that we can have a lot more than 3000 cells in the
table.
Please find attached output.xml file and provide a solution for the same
Thanks,
Sowmya
Attachments:
output.xml 3.3 MB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
We tried using the workaround mentioned in earlier issue, using
--splitoutputs
jybot --splitoutputs 3 <testcase.html>
But its not working!!!
Could you try changing how tests are run to something like this:
jybot --log NONE --report NONE testcase.html
rebot output.xml
In this approach rebot runs on Python which is somewhat faster than Jython.
You get
the biggest improvement if you have Python 2.5 or newer and Robot Framework
2.0.3,
because in 2.0.3 we took ElementTree XML modules into use (issue 157) and
it's really
fast.
Hi,
We upgraded Robot version 2.0.3 and python 2.5
On using the commands
jybot --log NONE --report NONE testcase.html
rebot output.xml
The log.html is no doubt created but it gives the following error
Parsing data
source 'd:\sowmya\testautomation\systemtestscrum\newstry\trafnewsjavaclient\output'
failed: Test suite
directory 'd:\sowmya\testautomation\systemtestscrum\newstry\trafnewsjavaclient\output
' contains no test cases
When do you get that error? When executing tests or when using rebot?
While executing the tests, but the functionality passes, xml file is
generated.
Also, on running rebot, log.html is also created properly
Comment #6 on issue 169 by pekka.klarck: Test Report Not getting generated
for a large output.xml file
http://code.google.com/p/robotframework/issues/detail?id=169
I'm pretty sure that the error you got during test execution doesn't have
anything to
do with this issue. I'd be very surprised if you didn't got it when running
tests
normally without --log NONE and --report NONE.
Anyway, it's great that your original problem is now gone. You can thank
Juha since
he insisted getting ElementTree into use in 2.0.3.