[TIP] testing-in-python Digest, Vol 105, Issue 1

chandra shekhar Turha chandrashekhar.turha at gmail.com
Mon Oct 5 03:28:41 PDT 2015


Hi, I am trying to do some GUI automation of java application. Could you
please suggest or advice, as how it can be done using python.

Thanks,
Shekhar

On Sat, Oct 3, 2015 at 12:30 AM, <testing-in-python-request at lists.idyll.org>
wrote:

> Send testing-in-python mailing list submissions to
>         testing-in-python at lists.idyll.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.idyll.org/listinfo/testing-in-python
> or, via email, send a message with subject or body 'help' to
>         testing-in-python-request at lists.idyll.org
>
> You can reach the person managing the list at
>         testing-in-python-owner at lists.idyll.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of testing-in-python digest..."
>
>
> Today's Topics:
>
>    1. Fwd: Trying to make nose use a different TestSuite (Vijayram Gopu)
>    2. Re: [nose-users] Re: asking nose to use a different TestSuite
>       class (Leah Klearman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 1 Oct 2015 17:12:20 -0700
> From: Vijayram Gopu <vijayram at dssd.com>
> Subject: [TIP] Fwd: Trying to make nose use a different TestSuite
> To: testing-in-python at lists.idyll.org
> Message-ID:
>         <
> CADD8tO7sZHCd3AwKJJwcFQDM9KdSLOvr90_c2NwdJ4teOgfVig at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I implemented a plugin to make Nosetests use a different TestSuite... below
> is my implementation and errors during execution, any suggestion or pointer
> will be greatly appreciated,
>
> ---------- MyPlugin --------------
>
> class CaptureExecResults(Plugin, unittest.TestCase):
>
>     enabled = True
>
>     name = 'suite-loader'
>
>     def configure(self, options, conf):
>
>         Plugin.configure(self, options, conf)
>
>         print "--- Into configure"
>
>         names = ["UserManagementTestSuite.faas_runtime_error"]
>
>         self.suite = nose.loader.TestLoader().loadTestsFromNames(names,
> mod1)
>
>         #self.suite = unittest.TestLoader().loadTestsFromNames(names, mod1)
>
>         print self.suite
>
>
>     def prepareTestLoader(self, loader):
>
>         print "--- prepareTestLoader.."
>
>         loader.suiteClass = self.suite
>
>
> I am getting errors during execution....
>
>   File "/opt/tools/lib/python2.7/site-packages/nose/loader.py", line 355,
> in loadTestsFromModule
>
>     return self.suiteClass(ContextList(tests, context=module))
>
>   File "/opt/tools/lib/python2.7/site-packages/nose/suite.py", line 177, in
> __call__
>
>     return self.run(*arg, **kw)
>
>   File "/opt/tools/lib/python2.7/site-packages/nose/suite.py", line 218, in
> run
>
>     if result.shouldStop:
>
>   File "/opt/tools/lib/python2.7/site-packages/nose/proxy.py", line 30, in
> fget
>
>     return getattr(getattr(self, local_attr), proxied_attr)
>
> AttributeError: 'ContextList' object has no attribute 'shouldStop'
>
>
> Any suggestion or pointer...
>
> Thank you so much,
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.idyll.org/pipermail/testing-in-python/attachments/20151001/f501ba46/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 1 Oct 2015 17:25:17 -0700
> From: Leah Klearman <lklrmn at gmail.com>
> Subject: Re: [TIP] [nose-users] Re: asking nose to use a different
>         TestSuite       class
> To: "nose-users at googlegroups.com" <nose-users at googlegroups.com>
> Cc: "testing-in-python at lists.idyll.org"
>         <testing-in-python at lists.idyll.org>
> Message-ID:
>         <
> CAA9LNDd_M5xW3wSyLZ-5rFP1+6M_cP54L4Td94yah8+i+N7WsA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Vijay/Ram/Vijayram,
>
> I don't remember what I did or didn't do, and abandoned nose for a
> different test runner quite some time ago. It looks like I didn't put
> whatever I did in a repo either, so I'm afraid I can't help.
>
> Sorry,
> -Leah
>
> On Thu, Oct 1, 2015 at 5:01 PM, <vijayram at dssd.com> wrote:
>
> > Hi Leah,
> >
> >  I am facing this very issue... were you able to solve this... did it
> work
> > for you.... just to give context, this is my sample plugin,
> >
> > class CaptureExecResults(Plugin, unittest.TestCase):
> >
> >
> >     enabled = True
> >
> >     name = 'suite-loader'
> >
> >
> >     def configure(self, options, conf):
> >
> >         Plugin.configure(self, options, conf)
> >
> >         print "--- Into configure"
> >
> >         names = ["UserManagementTestSuite.faas_runtime_error"]
> >
> >         self.suite = nose.loader.TestLoader().loadTestsFromNames(names,
> > mod1)
> >
> >         #self.suite = unittest.TestLoader().loadTestsFromNames(names,
> > mod1)
> >
> >         print self.suite
> >
> >
> >     def prepareTestLoader(self, loader):
> >
> >         print "--- prepareTestLoader.."
> >
> >         loader.suiteClass = self.suite
> >
> >
> > I am getting errors during execution....
> >
> >   File "/opt/tools/lib/python2.7/site-packages/nose/loader.py", line 355,
> > in loadTestsFromModule
> >
> >     return self.suiteClass(ContextList(tests, context=module))
> >
> >   File "/opt/tools/lib/python2.7/site-packages/nose/suite.py", line 177,
> > in __call__
> >
> >     return self.run(*arg, **kw)
> >
> >   File "/opt/tools/lib/python2.7/site-packages/nose/suite.py", line 218,
> > in run
> >
> >     if result.shouldStop:
> >
> >   File "/opt/tools/lib/python2.7/site-packages/nose/proxy.py", line 30,
> in
> > fget
> >
> >     return getattr(getattr(self, local_attr), proxied_attr)
> >
> > AttributeError: 'ContextList' object has no attribute 'shouldStop'
> >
> >
> > Any suggestion or pointer...
> >
> >
> > Thank you so much,
> >
> > On Wednesday, October 30, 2013 at 12:34:47 PM UTC-7, Leah Klearman wrote:
> >>
> >> I've mostly been able to make my new nose plugin work, but it is
> >> disabling the built-in capture and logcapture plugins, and I can't find
> any
> >> reference to how to make plugins not stomp on one another.
> >>
> >> Code is at https://gist.github.com/klrmn/7238776
> >>
> >> Thanks!
> >> -Leah
> >>
> >>
> >> On Sun, Oct 27, 2013 at 2:39 PM, Leah Klearman <lkl... at gmail.com>
> wrote:
> >>
> >>> I would like to use nose with testresources, which
> >>> provides OptimisingTestSuite that orders tests in a particular way.
> >>>
> >>> https://github.com/nose-devs/nose/blob/master/nose/core.py#L309
> >>> (nose.core.collector()) says "TestSuite replacement entry point. Use
> >>> anywhere you might use a unittest.TestSuite.", but I have been thus-far
> >>> unable to suss out how to replace nose.core.collector() at a time it
> will
> >>> actually get used.
> >>>
> >>> Can anyone provide me with an example?
> >>>
> >>> Thanks,
> >>> -Leah
> >>>
> >>
> >> --
> > You received this message because you are subscribed to the Google Groups
> > "nose-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to nose-users+unsubscribe at googlegroups.com.
> > To post to this group, send email to nose-users at googlegroups.com.
> > Visit this group at http://groups.google.com/group/nose-users.
> > For more options, visit https://groups.google.com/d/optout.
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.idyll.org/pipermail/testing-in-python/attachments/20151001/f451543d/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>
>
> End of testing-in-python Digest, Vol 105, Issue 1
> *************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20151005/04d708ee/attachment.html>


More information about the testing-in-python mailing list