Forum Discussion

johntaylor's avatar
johntaylor
Occasional Contributor
15 years ago

Test Log Output

Related to my previous threads and other similar threads, what I really want to do is this



Following a Test Run, produce a text file that contains the following.



Lists all tests in the project - whether they passed, failed or were ignored

and the summary sheet at the bottom (as per the current summary sheet).



I have tried writing some script using the examples provided in the Help playing about with the [Logs] collection, but although I can get lots of information out, this has only the tests run and not those ignored.



Something like this



Test Log 03/12/2009 11:06:43



Test        Description        Start        Finish        Status



Test1      xxxxxxxx            11:07      11:10        Passed

Test2      Test 2                -----        -----         Ignored

Test3      Big test              11:11       11:30        Passed



Summary




Total number of project test items: 3

Executed project test items: 2

Project test items executed successfully: 2

Failed project test items: 0

Ignored project test items: 1



Whilst, if you have online access the hierarchy of the Test Output is excellent, if you just want to print something off and stick it in a test folder, it is not obvious (if at all) if this cane be done (easily).



Thanks, John

     

11 Replies


  • Hi Dhanapal,





    Unfortunately, it is not entirely clear for me what your scenario is, however the following suggestions can be useful for you:

    1. The way test log tree is built cannot be controlled from scripts. If you need to create a custom folders hierarchy in your test log, you should probably consider using the approach described in the "Using Folders" (http://www.automatedqa.com/support/viewarticle/12264/) help topic.

    2. If you need to pass some data to an event handler, you should consider using a global variable or a project variable for this (see the "Project And Project Suite Variables - Overview" help topic (http://www.automatedqa.com/support/viewarticle/11862/) for more information).