Hi all,

I think the reason for this test failures should be the recent UI changes
in ES. The mentioned UI tests were written on top of previous ES UIs and I
don't think we have re-written them on top of new UI. Hope the team has
already started working on this.

Almost all the tests are failing due to unavailability of UI elements,
which is expected due to the change in UI. So, I think the best way to fix
this would be to re-generate the tests using selenium record and playback,
rather than someone going through line by line to map previous UI elements
to new ones.

We already have the templates for ES publisher and Store UI test
generation. And the initial idea of having "Selenium UI Test Generation"
for ES is exactly to address this kind of scenarios without much of a
trouble.

@Rajeenthini, since you are working on this, below e-mail threads and links
would be helpful for you. Let me know if you need further help on this.

[1] [Dev][ES] Selenium UI Integration Test Generation
[2] [ES- Integration Test] Custom WebDriver Class for UI test Automation
[3]
http://techspace-ps.blogspot.com/2015/01/selenium-ide-template-for-testng.html
[4]
http://asadistechspace.blogspot.com/2014/12/customize-selenium-code-jeneration.html#.VT7oGzlO0c0

Thanks!
-Ayesha

On Tue, Apr 21, 2015 at 6:01 AM, Udara Rathnayake <[email protected]> wrote:

> Hi Krishantha,
>
> We are looking into this.
>
> Regards,
> UdaraR
>
> On Mon, Apr 20, 2015 at 5:12 PM, Krishantha Samaraweera <
> [email protected]> wrote:
>
>> More test failures in tests-ui module.
>>
>> Failed tests:
>> testESPublishToStore(org.wso2.es.ui.integration.test.common.ESPublishToStore):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherNotificationTestCase)
>>
>> testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherTenantAddEditAssetTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherSubscriptionTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> setUp(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> setUp(org.wso2.es.ui.integration.test.store.ESStoreAnonCategorySortingTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> tearDown(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantNotificationTestCase)
>>
>> testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.selector: div.span3.store-right > div.row > div.span3(..)
>>
>> testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonHomePageTestCase):
>> Recent Gadgets link not working expected [Stacked Line Chart] but found
>> [Line Chart]
>>
>> testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testSubscriptionCreation(org.wso2.es.ui.integration.test.notifications.ESPublisherTenantSubscriptionTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testAnonHomePage(org.wso2.es.ui.integration.test.store.ESStoreAnonSuperTenantHomePageTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.selector: div.span3.store-right > div.row > div.span3(..)
>>
>> testAnonNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreAnonSuperTenantHomePageTestCase):
>> Recent Gadgets link not working expected [Stacked Line Chart] but found
>> [Line Chart]
>>
>> testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherAddEditAssetTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testAddAsset(org.wso2.es.ui.integration.test.publisher.ESPublisherAddEditAssetTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> testESStoreBookmarkTestCase(org.wso2.es.ui.integration.test.store.ESStoreBookmarkTestCase):
>> Timed out after 30 seconds waiting for text ('Bookmarked') to be present in
>> element found by By.id: btn-add-gadget(..)
>>
>> setUp(org.wso2.es.ui.integration.test.publisher.ESPublisherLCTransitionTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> tearDown(org.wso2.es.ui.integration.test.publisher.ESPublisherLCTransitionTestCase)
>>
>> testLoggedInHomePage(org.wso2.es.ui.integration.test.store.ESStoreCarbonSuperUserTUHomePageTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.selector: div.span3.store-right > div.row > div.span3(..)
>>
>> testLoggedInNavigationLinks(org.wso2.es.ui.integration.test.store.ESStoreCarbonSuperUserTUHomePageTestCase):
>> Recent Gadgets link not working expected [Stacked Line Chart] but found
>> [Line Chart]
>>
>> testGadgetPage(org.wso2.es.ui.integration.test.store.ESStoreGadgetPageTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.xpath: //a[contains(text(),'Line Plus Bar Chart')](..)
>>
>> testAddAsset(org.wso2.es.ui.integration.test.store.ESStoreSearchGadgetListTestCase):
>> Timed out after 30 seconds waiting for presence of element located by:
>> By.linkText: Add gadget(..)
>>
>> Tests run: 88, Failures: 25, Errors: 0, Skipped: 31
>>
>>
>> Thanks,
>> Krishantha.
>>
>> On Mon, Apr 20, 2015 at 3:29 PM, Krishantha Samaraweera <
>> [email protected]> wrote:
>>
>>> Hi all,
>>>
>>> I see following UI failures in master branch. Please have a look.
>>>
>>> Failed tests:
>>> testESPublisherAddedAssetTestCase(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAddedAssetTestCase):
>>> Timed out after 30 seconds waiting for presence of element located by:
>>> By.linkText: Services(..)
>>>
>>> testESPublisherAssetCaramelPageTestCase(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetCaramelPageTestCase):
>>> Timed out after 30 seconds waiting for presence of element located by:
>>> By.linkText: Overview(..)
>>>
>>>
>>> setUp(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetOverridePartialTestCase):
>>> Timed out after 30 seconds waiting for presence of element located by:
>>> By.linkText: Add servicex(..)
>>>
>>>
>>> setUp(org.wso2.es.ui.integration.extension.test.publisher.ESPublisherAssetOverrideRendererTestCase):
>>> Timed out after 30 seconds waiting for presence of element located by:
>>> By.linkText: Add servicex(..)
>>>
>>> *Tests run: 15, Failures: 4, Errors: 0, Skipped: 2*
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : 1 4087864651 | 94 772207239
> Twitter : http://twitter.com/udarakr
> Blog    : http://udarakr.blogspot.com
>
>
> _______________________________________________
> 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

Reply via email to