[jboss-jira] [JBoss JIRA] (SWSQE-504) Automate - Applications List Error Rate field

Hayk Hovsepyan (Jira) issues at jboss.org
Thu Nov 15 07:40:00 EST 2018


     [ https://issues.jboss.org/browse/SWSQE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hayk Hovsepyan updated SWSQE-504:
---------------------------------
    Description: 
The startign point here is :kiali_qe.tests.test_applications_page.test_all_applications test,
which calls kiali_qe.tests.__init__.ApplicationsPageTest.assert_all_items method,
which itself reads Applications from UI by calling "kiali_qe.components.__init__.ListViewApplications.items" and from REST by calling "kiali_qe.rest.kiali_api.KialiExtendedClient.application_list".
Then compares UI and REST results. So if there is new field added in UI, we need to read that in UI, and in REST API, set it in the Object, then add this field in Object's is_equal method. This will work alongside to other fields we have.

What is required to do:
In "kiali_qe.entities.applications.Application" class add a new field "requests" with this type "kiali_qe.entities.__init__.Requests", 
In method "kiali_qe.components.__init__.ListViewApplications.items" here is TODO for that, add a new method and a call to it to read "Error Rate"  field's value. Like it is done for "_get_item_health" method. Set it to field "requests" of "kiali_qe.entities.applications.Application"
In "kiali_qe.rest.kiali_api.KialiExtendedClient.application_list" add new line to read and set  field "requests" of "kiali_qe.entities.applications.Application"
Modify "kiali_qe.entities.applications.Application.is_equal" and add comparison of "requests" field as well.

  was:
The startign point here is :kiali_qe.tests.test_applications_page.test_all_applications test,
which calls kiali_qe.tests.__init__.ApplicationsPageTest.assert_all_items method,
which itself reads Applications from UI by calling "kiali_qe.components.__init__.ListViewApplications.items" and from REST by calling "kiali_qe.rest.kiali_api.KialiExtendedClient.application_list".

What is required to do:
In "kiali_qe.entities.applications.Application" class add a new field "requests" with this type "kiali_qe.entities.__init__.Requests", 
In method "kiali_qe.components.__init__.ListViewApplications.items" here is TODO for that, add a new method and a call to it to read "Error Rate"  field's value. Like it is done for "_get_item_health" method. Set it to field "requests" of "kiali_qe.entities.applications.Application"
In "kiali_qe.rest.kiali_api.KialiExtendedClient.application_list" add new line to read and set  field "requests" of "kiali_qe.entities.applications.Application"
Modify "kiali_qe.entities.applications.Application.is_equal" and add comparison of "requests" field as well.



> Automate - Applications List Error Rate field
> ---------------------------------------------
>
>                 Key: SWSQE-504
>                 URL: https://issues.jboss.org/browse/SWSQE-504
>             Project: Kiali QE
>          Issue Type: QE Task
>            Reporter: Hayk Hovsepyan
>            Assignee: Sunil kondkar
>            Priority: Major
>
> The startign point here is :kiali_qe.tests.test_applications_page.test_all_applications test,
> which calls kiali_qe.tests.__init__.ApplicationsPageTest.assert_all_items method,
> which itself reads Applications from UI by calling "kiali_qe.components.__init__.ListViewApplications.items" and from REST by calling "kiali_qe.rest.kiali_api.KialiExtendedClient.application_list".
> Then compares UI and REST results. So if there is new field added in UI, we need to read that in UI, and in REST API, set it in the Object, then add this field in Object's is_equal method. This will work alongside to other fields we have.
> What is required to do:
> In "kiali_qe.entities.applications.Application" class add a new field "requests" with this type "kiali_qe.entities.__init__.Requests", 
> In method "kiali_qe.components.__init__.ListViewApplications.items" here is TODO for that, add a new method and a call to it to read "Error Rate"  field's value. Like it is done for "_get_item_health" method. Set it to field "requests" of "kiali_qe.entities.applications.Application"
> In "kiali_qe.rest.kiali_api.KialiExtendedClient.application_list" add new line to read and set  field "requests" of "kiali_qe.entities.applications.Application"
> Modify "kiali_qe.entities.applications.Application.is_equal" and add comparison of "requests" field as well.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list