On Thu, Oct 23, 2014 at 10:03 AM, Ayesha Dissanayaka <[email protected]> wrote:
> Hi Krishantha, > > In order to avoid thread sleeps inside ui-test cases, I have written an > extension[01] for the automation framework which waits test execution until > assets are populated properly after completing indexing and all. This > applies for some other tests(ex: REST APIs) other than ui-test cases as > well. > > With that I do not need to wait test cases unless specific cases. For > specific cases where wait is needed We'll implement our own wait functions > where ever possible. > WDYT? > +1 would like to go though the new extension during the code review schedule in next week. May be we can make it a common extension and reuse it for all products. Thanks, Krishantha. > > [01] https://docs.wso2.com/display/TA430/TestNG+Listeners > > Thanks! > - Ayesha > > On Thu, Oct 23, 2014 at 6:06 AM, Krishantha Samaraweera < > [email protected]> wrote: > >> Hi, >> >> On Mon, Oct 20, 2014 at 10:25 AM, Ayesha Dissanayaka <[email protected]> >> wrote: >> >>> Hi, >>> >>> I'm also having this concern while executing UI test cases in WSO2 ES. >>> >>> In my case ES Publisher App take ablout 15sec in order to populate >>> properly after completing indexing and all. Hence, I have to thread sleep >>> all the test classes. I would also like to know whether this is the >>> recommended way to slow down the web driver, or can we implicitly wait to >>> start the test execution by the framework. >>> >> >> Never use thread sleeps for waits unless it is really required and no any >> other way to achieve page waits. You need to write your own wait function >> based on the elements you are expecting to be visible in next step. >> >> References given at [1] would be helpful. >> >> [1] >> http://selenium-tutorial.blogspot.com/2014/03/webdriver-wait-for-page-load.html >> >> Thanks, >> Krishantha. >> >>> >>> Thanks! >>> - Ayesha >>> >>> On Fri, Oct 17, 2014 at 10:10 AM, Sohani Weerasinghe <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> When using selenium web driver to write test cases, currently I am >>>> using Thread sleeps in order to control the speed of the browser. Is this >>>> the recommended way to slow down the execution speed? >>>> >>>> Please note that I am also using explicit waits to wait for certain >>>> conditions to occur before proceeding further and implicit waits to >>>> poll the DOM for a certain amount of time to find an element. >>>> >>>> Thanks, >>>> Sohani >>>> Sohani Weerasinghe >>>> Software Engineer >>>> WSO2, Inc: http://wso2.com >>>> >>>> Mobile : +94 716439774 >>>> Blog :http://christinetechtips.blogspot.com/ >>>> Twitter : https://twitter.com/sohanichristine >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Ayesha Dissanayaka* >>> Software Engineer, >>> WSO2, Inc : http://wso2.com >>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> >>> 20, Palmgrove Avenue, Colombo 3 >>> E-Mail: [email protected] <[email protected]> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Krishantha Samaraweera >> Senior Technical Lead - Test Automation >> Mobile: +94 77 7759918 >> WSO2, Inc.; http://wso2.com/ >> lean . enterprise . middlewear. >> > > > > -- > *Ayesha Dissanayaka* > Software Engineer, > WSO2, Inc : http://wso2.com > <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> > 20, Palmgrove Avenue, Colombo 3 > E-Mail: [email protected] <[email protected]> > -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
