On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar < aezhi...@gmail.com> wrote:
> Hi Guys, > > I'm a beginner of python, I just want your help. > > I'm using the Python in Pydev - Eclipse. > > How can I get the Failure values from the Console in to a txt or a csv > file? > > And how can I get the final result of the TC (lets say, OK or FAIL or > ERROR)? > > So that If I'm working with 1000 Test cases, I can easily find out the > Failed TCs and work on them. > > Please find my above questions and revert me with a good answer. > > Well, you want that to work/rerun the failed tests, PyDev does have a unittest-integration view which shows failed tests. Just run the tests right-clicking a folder -> run tests and the view should show the results (and it provides a way to show only failed tests, rerun only failures, see output, etc) -- see: http://pydev.org/manual_adv_pyunit.html The only thing is that it doesn't export that to a file... if you want to have that as an exported file, my suggestion would be using nose or pytest (which can also be used as the runners inside of PyDev -- http://pydev.org/manual_adv_pyunit.html also has more details on that) and pass a xml dump file (which I think both support). Cheers, Fabio
-- https://mail.python.org/mailman/listinfo/python-list