Issue 169 in robotframework: Test Report Not getting generated for a large output.xml file

2 views
Skip to first unread message

codesite...@google.com

unread,
Dec 3, 2008, 6:46:22 AM12/3/08
to robotframe...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

codesite...@google.com

unread,
Dec 3, 2008, 6:53:23 AM12/3/08
to robotframe...@googlegroups.com

Comment #1 on issue 169 by sowmyasriniv: Test Report Not getting generated

We tried using the workaround mentioned in earlier issue, using
--splitoutputs
jybot --splitoutputs 3 <testcase.html>
But its not working!!!

codesite...@google.com

unread,
Dec 3, 2008, 9:57:31 AM12/3/08
to robotframe...@googlegroups.com

Comment #2 on issue 169 by pekka.klarck: Test Report Not getting generated

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.

codesite...@google.com

unread,
Dec 4, 2008, 1:28:39 AM12/4/08
to robotframe...@googlegroups.com

Comment #3 on issue 169 by sowmyasriniv: Test Report Not getting generated

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

codesite...@google.com

unread,
Dec 4, 2008, 4:51:20 AM12/4/08
to robotframe...@googlegroups.com

Comment #4 on issue 169 by pekka.klarck: Test Report Not getting generated

When do you get that error? When executing tests or when using rebot?

codesite...@google.com

unread,
Dec 4, 2008, 7:12:01 AM12/4/08
to robotframe...@googlegroups.com

Comment #5 on issue 169 by sowmyasriniv: Test Report Not getting generated

While executing the tests, but the functionality passes, xml file is
generated.
Also, on running rebot, log.html is also created properly

codesite...@google.com

unread,
Dec 5, 2008, 5:59:58 AM12/5/08
to robotframe...@googlegroups.com
Updates:
Status: Invalid

Comment #6 on issue 169 by pekka.klarck: Test Report Not getting generated

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.

Reply all
Reply to author
Forward
0 new messages