Forum Discussion

cancan's avatar
cancan
Occasional Contributor
12 years ago

Reporting

Hi all,

I can create a file and write something in it in SoapUI: errorFile.append("Length of the Product Number:")

However I could not file how to make a custom reporting style without using SoapUI Pro?

It would be very nice of you if you could give me some hints?

regards
Cancan

3 Replies

  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    With Groovy you can do nearly anything you want. That is the amazing beautiful thing about SoapUI. Developing a basic reporting system is detailed in several threads on the forums. If you can give more details if you want something different, as to how you want it to be different, than please let us know and we can try and point you in the correct direction.


    There is a decent tutorial here that should get you started. But with Groovy, it's really up to you and how much time you want to invest into it and make them nicer, better, more in depth etc etc.
  • cancan's avatar
    cancan
    Occasional Contributor
    Hi,

    thanks a lot for your message.

    I have read your article. It is very interessing. However you are using testRunner, testCase in your code. I do coding without these. Because I code everything in the mock service. The reason is that I do not want to use a Test Suite! (which means, that I create my own test suite in my mock service)

    Anyway I just wanted to make my report much more beautiful than it is now. ex:

    errorFile.append("1) Length of the product Number:")
    errorFile.append(productNumber.length()==10)
    errorFile.append("2) name of the product:")
    errorFile.append(product == "xyz" )

    so my output would be: 1) Length of the product Number:true 2) name of the product:false

    however what I want to do is something like a excel - table:

    Testing My Product
    12.05.2014

    No Test Case Result
    1) Length of the product Number true
    2) name of the product: false


    do you know how I can do that? Thanks for time in advance

    Regards

    Cancan
  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    I would suggest using a standard CSV format for that or use Apache POI_HSSF for true Excel. Here is a sample that will assist if you wanted to import Apache.

    For a CSV file, just add commas for each column and a line break for each row. They are extremely simple to build.