Anonymous_User Absent Member.
Absent Member.
522 views

Reporting Documentation


So I installed the new Beta and found the reporting in the Results Tab.
I than installed iReporter which I had never used before. I than ran a
test and was able to get a report either Basic or Detailed. I do not
have a huge need for reporting but the first use I would have is to
document the test and the results I receive. In neither of these reports
are the Test Descriptions which would document what has been tested. I
have opened and looked at the report files in iReporter and even found
the sub reports that produce the main content. Where can I find
documentation On how to alter these reports to produce a report with
test Descriptions.


--
stharp
------------------------------------------------------------------------
stharp's Profile: https://forums.netiq.com/member.php?userid=2709
View this thread: https://forums.netiq.com/showthread.php?t=47735

Labels (1)
0 Likes
12 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


There isn't really any documentation we've created for iReport.
However, basically the report is generate from a JSON file called
"CurrentReport.json" which is in the log directory. You can look at
this file for the different piece you want to add. You want to load the
jrxml files and then compile them to be .jasper files. However, since
you're such a nice guy I went ahead and updated the reports with the
description for you. Here are the compiled .jasper reports and the
jrxml source reports.
'UpdatedReportsWithDesc.zip' (http://tinyurl.com/nt7w3v3)

You will probably notice the difference and can figure some things out
from there.


--
kgividen
------------------------------------------------------------------------
kgividen's Profile: https://forums.netiq.com/member.php?userid=4528
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


In CurrentReport.json it looks like the description field is currently
mapped to the action value. Here is my sample output:
{ "description" : "My ReportDesc",
"executer" : "Matt",
"reportDate" : "2013-06-07 14:58:59.915",
"testSuiteName" : "QA IDV Tests",
"tests" : [
{ "endTime" : "2013-06-07 14:58:49.85",
"notes" : "success",
"result" : "success",
"startTime" : "2013-06-07 14:58:49.85"
},
{ "endTime" : "2013-06-07 14:58:50.085",
"notes" : "success",
"result" : "success",
"startTime" : "2013-06-07 14:58:50.085"
},
{ "actions" : [ { "action" : "assertVariableContains",
"connection" : "e0454dab-e6b3-5fb1-3e68-b242e5f6e48e",
"description" : "assertVariableContains",
"result" : "success",
"section" : "TEST",
"timestamp" : "2013-06-07 14:58:59.278"
} ],
"endTime" : "2013-06-07 14:58:59.278",
"notes" : "success",
"result" : "success",
"startTime" : "2013-06-07 14:58:59.278"
},
{ "actions" : [ { "action" : "assertVariableContains",
"connection" : "e0454dab-e6b3-5fb1-3e68-b242e5f6e48e",
"description" : "assertVariableContains",
"result" : "success",
"section" : "TEST",
"timestamp" : "2013-06-07 14:58:59.542"
} ],
"endTime" : "2013-06-07 14:58:59.542",
"notes" : "success",
"result" : "success",
"startTime" : "2013-06-07 14:58:59.542"
},
{ "actions" : [ { "action" : "assertVariableContains",
"connection" : "e0454dab-e6b3-5fb1-3e68-b242e5f6e48e",
"description" : "assertVariableContains",
"result" : "success",
"section" : "TEST",
"timestamp" : "2013-06-07 14:58:59.798"
} ],
"endTime" : "2013-06-07 14:58:59.798",
"notes" : "success",
"result" : "success",
"startTime" : "2013-06-07 14:58:59.798"
},
{ "endTime" : "2013-06-07 14:58:59.915",
"notes" : "success",
"result" : "success",
"startTime" : "2013-06-07 14:58:59.915"
}
],
"trackingInfo" : "MattTrackingInfo",
"version" : "0.01"
}


--
mshirilla
------------------------------------------------------------------------
mshirilla's Profile: https://forums.netiq.com/member.php?userid=3726
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


If I run a single test and then Run Report (Both Basic and Detailed)
generates a PDF.

But when I run tests by selecting more than one test and run report, it
does not generate the report and there is an error in the console
08/22/2013 13:33:19 INFO: DEBUG: Received request to generate a report
of type p
df using the report file Validator Basic Report.jasper.
java.lang.NullPointerException
at
com.novell.nccd.validator.ReportController.execute(ReportController.j
ava:77)
at
com.novell.nccd.validator.RESTServer.generateReport(RESTServer.java:5
44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMe
thodInvokerFactory.java:60)

Does the report works only for a single test run?


--
jagadeesh_ramamoorthy
------------------------------------------------------------------------
jagadeesh_ramamoorthy's Profile: https://forums.netiq.com/member.php?userid=4880
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


It should work with only one test run...

Are you using the latest beta refresh build posted in the forum?
Is there a CurrentReport.json in the logs directory?
Is there a reports directory and is "Validator Basic Report.jasper" in
it?

I think this was an error with a previous version but should be fixed in
the latest beta refresh which is a sticky post in this forum.

jagadeesh_ramamoorthy;232988 Wrote:
> If I run a single test and then Run Report (Both Basic and Detailed)
> generates a PDF.
>
> But when I run tests by selecting more than one test and run report, it
> does not generate the report and there is an error in the console
> 08/22/2013 13:33:19 INFO: DEBUG: Received request to generate a report
> of type p
> df using the report file Validator Basic Report.jasper.
> java.lang.NullPointerException
> at
> com.novell.nccd.validator.ReportController.execute(ReportController.j
> ava:77)
> at
> com.novell.nccd.validator.RESTServer.generateReport(RESTServer.java:5
> 44)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMe
> thodInvokerFactory.java:60)
>
> Does the report works only for a single test run?



--
kgividen
------------------------------------------------------------------------
kgividen's Profile: https://forums.netiq.com/member.php?userid=4528
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Knowledge Partner
Knowledge Partner

Re: Reporting Documentation

On 8/22/2013 11:04 PM, kgividen wrote:
>
> It should work with only one test run...


So it only works with one test? or should work with many tests? Which
seems like that is the entire point of the reports... To answer the
question: how did my tests go?

> Are you using the latest beta refresh build posted in the forum?
> Is there a CurrentReport.json in the logs directory?
> Is there a reports directory and is "Validator Basic Report.jasper" in
> it?
>
> I think this was an error with a previous version but should be fixed in
> the latest beta refresh which is a sticky post in this forum.
>
> jagadeesh_ramamoorthy;232988 Wrote:
>> If I run a single test and then Run Report (Both Basic and Detailed)
>> generates a PDF.
>>
>> But when I run tests by selecting more than one test and run report, it
>> does not generate the report and there is an error in the console
>> 08/22/2013 13:33:19 INFO: DEBUG: Received request to generate a report
>> of type p
>> df using the report file Validator Basic Report.jasper.
>> java.lang.NullPointerException
>> at
>> com.novell.nccd.validator.ReportController.execute(ReportController.j
>> ava:77)
>> at
>> com.novell.nccd.validator.RESTServer.generateReport(RESTServer.java:5
>> 44)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMe
>> thodInvokerFactory.java:60)
>>
>> Does the report works only for a single test run?

>
>


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


I used latest beta refresh build in the forum. CurrentReport.json is in
logs directory and "Validator Basic Report.jasper" in reports directory.
But it generates pdf only for one test. It does not generate pdf for
many tests even though there is no error in console.


--
jagadeesh_ramamoorthy
------------------------------------------------------------------------
jagadeesh_ramamoorthy's Profile: https://forums.netiq.com/member.php?userid=4880
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


No it should generate a report for all tests run. One or many. Can you
send me your CurrentReport.json? If you run one test it will generate
the report based on that. If you run lots of tests it will generate it
on that. Whatever you ran last is what should be in the
CurrentReport.json.


--
kgividen
------------------------------------------------------------------------
kgividen's Profile: https://forums.netiq.com/member.php?userid=4528
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


Ok...this is a bug with templates. When it hits a template the
reporting blows up. If you don't use templates it works fine. I've
entered a bug against this:
https://bugzilla.novell.com/show_bug.cgi?id=836811

Kent


--
kgividen
------------------------------------------------------------------------
kgividen's Profile: https://forums.netiq.com/member.php?userid=4528
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


UpdatedReportsWithDesc.zip is no longer Available can you please make it
accessible


--
stharp
------------------------------------------------------------------------
stharp's Profile: https://forums.netiq.com/member.php?userid=2709
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


You should no longer need these with the latest beta. That's why they
were removed. Please let us know if they aren't working in that beta
for some reason.


--
kgividen
------------------------------------------------------------------------
kgividen's Profile: https://forums.netiq.com/member.php?userid=4528
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


Hi,

Could you tell me if there is option to get in reports values of
variables used in tests. I need to check for example if display name has
no national characters and this would be very usefull. I was trying to
use iReport to adjust reports but I'm guessing that first I need to have
this values in CurrentReport.json file.


--
tower33
------------------------------------------------------------------------
tower33's Profile: https://forums.netiq.com/member.php?userid=4516
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Reporting Documentation


I'm not sure I totally understand this request. I believe you are
asking to have Validator variables available in the reports? i.e. Be
able to display the value of a variable in the CurrentReport.json so you
can display it on the PDF report?

This currently is not available. However, I'm still not sure how this
would help. Can't you already check if the display name has certain
chars in Jasper? How would making a var available from Validator help
there?

The difficulty is when do we make the variable available and for which
test? Or do we have a global section in CurrentReport.json for
variables? But then when do we pass that to Jasper? After all tests
are run? See the issues? I'm not sure this will really help with what
you are trying to do but let me know if I've missed something or maybe
we can approach it a different way.


--
kgividen
------------------------------------------------------------------------
kgividen's Profile: https://forums.netiq.com/member.php?userid=4528
View this thread: https://forums.netiq.com/showthread.php?t=47735

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.