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