Hello,


To change the state from PROPOSED to CONFIRMED of the following testcases, I am 
sending for  a final review:





Testcases for bug Bug 9808 - Create selenium tests for project dashboard page.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=9808





https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1514



Belen's comment: I am not sure what you mean by "Check that the page has the 
project name given in a upper right hand label in bold font." What I guess we 
should check is that the page h1 is set to the name the user typed in the new 
project form.



Libertad's actions:  I have change the wording to look more like Belen's 
comment. But that is what I meant to say on my TC.





https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1515



Belen's comment: Just a small clarification about the expected results. For 
"Expected Result step 4: All elements are clickable and show information." 
please keep in mind that when creating a project using the "Local Yocto 
Project" release, the only compatible metadata page that will contain 
information is the "layers" one. The image recipes, software recipes, and 
machines pages will be empty. The image recipes and software recipes tables 
will be populated as you run builds, but the machines table will remain empty, 
since we don't have a way to "discover" machines through the build process.



The "custom images" page will of course be empty until you create a custom 
image.



Libertad's actions:  I was thinking on verifying that the H2 page changed 
titles to whatever element I clicked it. Regardless if there is a table shown 
or any other data. If this is OK then I will change the wording of the TC to 
explain that.





https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1516



Belen's comment: We might want to add the following to the expected results:

* A machine must always be set



* The default layers specified in the Toaster configuration must always be 
listed in the layers section (in our case, for the poky configuration we should 
have openembedded-core, meta-poky and meta-yocto-bsp. For the OE configuration, 
just openembedded-core).



By OE configuration you mean when we don't use poky to run Toaster? If so I 
will write another test case to verify this scenario.



Libertad's actions: I have added the expected result for poky configuration.



Belen's comment: * If more than one release is specified in the Toaster 
configuration, the selected release information should appear in the project 
configuration page. If only one release is specified in the Toaster 
configuration, the release information should not appear in the project 
configuration page.



Libertad's questions: I have not been able to select more than one release 
(local or master) when creating a project. How can I achieve this?







https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1517



Belen's comment: As I mentioned above, a machine must always be set. We should 
also create a test case for changing the project machine, if we don't currently 
have one.



Libertad's actions: I have added the expected result. Also we have a couple of 
test cases that involve changing the machine. One of them is

                                
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1400





https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1518



Belen's comment: Just an explanation of how that list is generated. It should 
include a maximum of 5 recipes, the 5 that have been built most often in the 
project, sorted in descending order (the most built recipe at the top). When 2 
recipes have been built the same number of times, we show them in alphabetical 
order (a to z).



If no checkbox is selected, the build button must be disabled. If one or more 
checkboxes are selected, the build button must be enabled.



Libertad's actions: Currently on the test plan there is no testcase that will 
verify the behavior describe above so I have created some testcases to cover 
this whether or not it is in the scope of bug 9808.



Most build recipes has max of 5 recipes

https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1529



When 2 recipes have the same number of times, we show them alphabetical

https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1530



If no checkbox is selected the button must be disabled Most build recipes 
multiple selection, build button enabled

https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1531







https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1519



Belen's comment:  As mentioned before, if more than one release is specified in 
the Toaster configuration, the selected release information should appear in 
the project configuration page. If only one release is specified in the Toaster 
configuration, the release information should not appear in the project 
configuration page.



Libertad's actions: I am not understanding this part. I always create projects 
choosing master release and that name appears in the project configuration page.





https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1520



Belen's comment:  A few comments about the layers section:



* The list of layers shown depends on the loaded configuration. If you load the 
poky configuration, the layers will be as specified in the test case. If you 
load the openembedded configuration, the only layer listed will be 
openembedded-core



* When you remove a layer from the project by clicking on the trash icon, the 
layer should disappear from the list and a notification should appear at the 
top of the page saying: "You have removed 1 layer from your

project: layer_name". The layer_name should be a link to the corresponding 
layer details page. The layers counter next to the "layers" heading should 
decrease by one.



* If you remove all  , a custom message should be displayed saying:



"This project has no layers.

In order to build this project you need to add some layers first. For that you 
can:



* Choose from the layers compatible with this project

* Import a layer

* Read about layers in the documentation

* Or type a layer name below"



The "Choose from the layers compatible with this project" link should go to the 
compatible layers page The "Import a layer" link should go to the import layer 
page The "Read about layers in the documentation" link should open in a new 
window and bring you to 
http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#underst

anding-and-creating-layers



Also, when you delete all the layers from a project:



1. The input field in the top right hand corner should be disabled 2. The build 
button in the top right hand corner should be disabled 3. All checkboxes in the 
"most built recipes" section should be disabled.

4. All labels in the "most built recipes" section should have the class 
text-muted applied and the cursor set to "not-allowed"

5. The "build selected recipes" button should be disabled



When you add a layer back, the custom message should go away, and also:



1. The input field in the top right hand corner should be enabled 2. All 
checkboxes in the "most build recipes" section should be enabled 3. We should 
remove the class text-muted and the not-allowed cursor from the labels in the 
"most built recipes" section



* The "View compatible layers" link should go to the layers page

* The "Import layer" link should go to the import layer page



We might need a separate test case to cover the behaviour of the "add layers" 
functionality, if we don't have one already. We might also consider splitting 
the remove layer functionality into a separate test case.



Libertad's actions: Added testcases to describe the behavior of the "add | 
delete layers" functionality

                https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1536

                https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1535







>https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1522



Belen's comment:

It might be worth detailing the behavior of the build form.



* The build button should be disabled whenever the text input field is empty, 
so that you cannot start a build with a blank target



* Whenever there is information in the image recipes and software recipes 
tables, the text input field should present suggestions from the list of 
recipes provided by the layers in the "layers" list. The suggestions contain 
the string typed in the input field, and update as you type. They appear on 
typing the second character. A maximum of 8 suggestions can be shown. They are 
sorted as follows: first recipes starting with the string, in alphabetical 
order; then recipes containing the string, also in alphabetical order.



* When you click the build button you are brought to the "Builds" tab, and a 
new build in progress appears at the top of the "Latest project builds"

Section


Libertad's actions: added the behavior of the build form to the testcase.
-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to