Forum Discussion

jkrier's avatar
jkrier
Regular Contributor
12 years ago

Reporting with requirements pass and fail by by testStep

I have a project with the hierarchy testSuite>testCase>testSteps(With many testSteps). I have added requirements to the project and then linked them to the testCase. When I create a report after a run the report generates and includes the requirement data but there is nothing to say that they passed based on the testStep results. Is there a way to do this? Specifically is there any way to tie assertions and results directly to an individual requirement and then print a report that will show this? I’ve tried reading some of the report documentation on the site and have browsed the forums but I don’t see any help on this particular question.

I did find a page on the site called Customizing Templates here http://www.soapui.org/Reporting/customizing.html which seems to be either outdated or not complete. I've tried following the steps but an error is always returned.

Fri Nov 15 12:48:29 MST 2013:ERROR:net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
1. Parameter not found : RequirementLinkedTestCases
net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
1. Parameter not found : RequirementLinkedTestCases
at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport.createReport(SourceFile:460)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport$ReportFillWorker.construct(SourceFile:428)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:149)
at java.lang.Thread.run(Unknown Source)


I tried going step by step through the walkthrough for Customizing Templates and the behavior in my instance of soapUI Pro does not match the instructions.

For example;
Step 6. None of my Project properties are displayed. I do see the "null properties" text above "Name" but there is nothing listed underneath it. I added the same property as in the example Name = Some property Value = with a value and it is not generated.
Step 7. When I go to the tab Subreports next to Available Reports in the Project it is blank. There is nothing to chose from.

I've tried adding my own Subreport for this but I saw no change in behavior.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Requirements are created for TestCase reports. Currently they are not created for TestSuite reports.



    Regards,
    Marcus
    SmartBear Support
  • jkrier's avatar
    jkrier
    Regular Contributor
    I finally got it to work. Thanks for your assistance Marcus. From what I can tell the Description tab must be filled out. I was not populating that because the instructions didn't say it was required but as soon as I did that it started to work correctly.

    The only problem is the requirements are illegible. Can anything be done about the pdf formatting?
  • jkrier's avatar
    jkrier
    Regular Contributor
    Thanks again. I'll see if I can get the text sorted out. So far I am not having much luck.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Were you able to get it to work? I've added an issue to our issue tracking system with a link to this forum thread.

    Best regards,
    Manne