Red Hat Bugzilla – Bug 1273970
Automation of UI tests needs way to check status of VM in userportal
Last modified: 2016-07-05 03:38:06 EDT
Description of problem:
In ovirt 3.5 we used tooltip of status icon to find out what's the status of VM according to userportal, and currently we have no reasonable way for our automation to find out what status is being shown by userportal in 3.6.
Solution could be for example to add the column showing status of VM as text, similar to status column in webadmin, or to add some data attribute containing status of VM
Version-Release number of selected component (if applicable):
need to see if solution for bug 1273962 (if/once found) can be applied here as well.
if not - I may defer to the 'virt' team in order to add the status text somewhere.
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
due to being automation blocker and high severity, will try to fix for 3.6.z.
(In reply to Einav Cohen from comment #1)
> need to see if solution for bug 1273962 (if/once found) can be applied here
> as well.
I believe it can be applied here too.
Please see my comment https://bugzilla.redhat.com/show_bug.cgi?id=1273962#c1
In oVirt testing is done on single release by default. Therefore I'm removing the 4.0 flag. If you think this bug must be tested in 4.0 as well, please re-add the flag. Please note we might not have testing resources to handle the 4.0 clone.
Greg: BZ is flagged/targeted for ovirt 3.6, however I don't see that the patch has been backported to the ovirt-engine-3.6 branch - let's backport the patch to the following branches:
- ovirt-engine-3.6.1 , if exists (I updated the Target Milestone from ovirt-3.6.3 to ovirt-3.6.1).
backported to ovirt-engine-3.6
oVirt 3.6.2 RC1 has been released for testing, moving to ON_QA
FailedQA in rhevm-userportal-3.6.2-0.1.el6 (build 3.6.2-3).
New "data-status" attribute has been added to VM status icon column only in Webadmin.
The attribute is missing especially in User Portal - Extended view, where our test automation has problem to extract VM status from HTML code. Screen shot attached.
Created attachment 1113647 [details]
screen: User Portal - Extended; missing "data-status" attribute for VM status
Deferring to 3.6.5. It's too risky to try to get this into 3.6.3 or 3.6.4.
Moreover it caused a regression bug 1304729
oved - are we going to fix or WONTFIX this?
I think this should be fixed. Looking at it now.
The userportal fix actually wasn't as difficult as I first thought.
@Oved, we may want to re-evaluate whether this goes into 3.6.5. This will only help QE in 3.6.z going forward.
Created attachment 1137126 [details]
Fix is merged in master.
@Pavel, do you need this in 3.6.z?
(In reply to Greg Sheremeta from comment #23)
> Fix is merged in master.
> @Pavel, do you need this in 3.6.z?
Yes, if possible, we would like to have it also in 3.6.z.
Restoring Greg's needinfo for Oved from comment 21.
The backport was clean and easy. Let's get it into 3.6.5 as we originally planned.
Verified on RHEV 3.6.6 and oVirt 4.0
oVirt 4.0.0 has been released, closing current release.