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