Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'beginner': 0.05; 'say,': 0.05; 'see:': 0.07; 'tests.': 0.07; 'output,': 0.09; 'tests,': 0.09; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'python': 0.11; '->': 0.16; 'cc:name:python list': 0.16; 'csv': 0.16; 'dump': 0.16; 'exported': 0.16; 'fabio': 0.16; 'guys,': 0.16; 'nose': 0.16; 'pytest': 0.16; 'url:pydev': 0.16; 'folder': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'help.': 0.21; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; 'pass': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'xml': 0.29; "doesn't": 0.30; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; 'txt': 0.31; 'file': 0.32; 'run': 0.32; 'skip:u 20': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'revert': 0.36; 'shows': 0.36; 'url:org': 0.36; 'should': 0.36; 'easily': 0.37; 'does': 0.39; 'how': 0.40; 'show': 0.63; 'subject:Need': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'details': 0.65; 'answer.': 0.68; 'results': 0.69; 'export': 0.74; 'that)': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2VxR9v43Y797XkwX+D6uWSQ4bbaN3sTHOpHH9/mHXkI=; b=tbXrJt8RnFMLZBMMGnOr+FQ81FW3UCG6P8hwJRYy0EORwmUU0zlL+N2NxU9oWs2WgM 2Yk1I+Bb+M/Bu14+Zdj5roHFoPlOXiZR+45BPgnG9s475CB0Y5JPYDsrvdOJQip1CPkJ 6wXQlEYr+38jNT95s31U+oJEEozVN+TgxMCiDieBHVrO24hymKIZLqpiQxJnFBaT8m0w kVw7XsBkxBdOlN9IF/wqGua+jjOCbM92KrFR2ypv6b8UIPT14cKkqx+3+6QQUp9aLTtx AUMMh1wnBFITBX0YE9UDBywBborUWKd6Ur5kKCLRyqi04e6qrQJwO8tPJNvLdQj1bUMk eMyg== X-Received: by 10.182.120.10 with SMTP id ky10mr36262893obb.68.1417460351891; Mon, 01 Dec 2014 10:59:11 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Fabio Zadrozny Date: Mon, 1 Dec 2014 16:58:50 -0200 Subject: Re: Need Help To: Ezhilarasan Chandrasekar Content-Type: multipart/alternative; boundary=089e0139fc28c1ff1305092c3401 Cc: python list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 83 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417460354 news.xs4all.nl 2962 [2001:888:2000:d::a6]:41535 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81770 --089e0139fc28c1ff1305092c3401 Content-Type: text/plain; charset=UTF-8 On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar < aezhil90@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 --089e0139fc28c1ff1305092c3401 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar <aezhil90@gmail= .com> wrote:
Hi Guys,=C2=A0

I'm a beginner of pyth= on, 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 s= ay, 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 go= od answer.
=

Well, you want that to wor= k/rerun the failed tests, PyDev does have a unittest-integration view which= shows failed tests. Just run the tests right-clicking a folder -> run t= ests and the view should show the results (and it provides a way to show on= ly failed tests, rerun only failures, see output, etc) -- see:=C2=A0http://pydev.org/manual_adv_py= unit.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 ru= nners 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
--089e0139fc28c1ff1305092c3401--