Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

TestCase Run Status

Hello,
I have a test case with multiple requests. I am running this test case via command line. At the end of the testcase run, soapUI create a 'results' folder with logfile for each of the request. I am interested in finding if the 'testcase' passed. The only way I can think of is to scan the results folder and figure out if any of the files names contains 'FAILED' indicating that the test case failed.

Is there any other way I can know if the test case failed?

THanks

ALi

4 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    hmm.. I can only think of directing the testrunner output to a file and then grep:ing that file for status info.. not the easiest of solutions..

    what if we export a testcase log just as the one in the UI into a file named -log-.log?

    ie

    TestCase-1-log-FAILED.log

    would that help you? Are would you prefer some other kind of marker/signal?

    regards,

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    Ole,
    A testcase log which would contain the testcase status (pass/Failed), along with all the status for all the request in the test case would be really helpful.

    example log file:

    - Failed
    Steps
    - Passed
    - Failed
    - Not Run
    - Not Run

    Thanks

    Ali
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    In that case I suggest we create an xml-file for this, so it can be transformed/validated/etc by some post-processor.. maybe something like


      TestCase 1
      FAILED
      ..
      ..
      etc..
     
         
              TestStep name
              ...
             
                  ...
             

         
          ...
       


         
    what do you think?

    regards,

    /Ole
    eviware.com