diff options
| author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2018-12-28 14:54:44 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2019-04-06 16:16:20 +0530 |
| commit | 498f84fee3c85227ffb8dba9723c2acec00e03bd (patch) | |
| tree | d4ce96da5bace7f4b0ecbcf1f8638b15627fa028 | |
| parent | 879f5aeac3ca4d053347e5a86a6c0fb303cf0dc3 (diff) | |
| download | openembedded-core-498f84fee3c85227ffb8dba9723c2acec00e03bd.tar.gz openembedded-core-498f84fee3c85227ffb8dba9723c2acec00e03bd.tar.bz2 openembedded-core-498f84fee3c85227ffb8dba9723c2acec00e03bd.zip | |
oeqa/manual/toaster: transfer manual toaster test cases to oeqa
As part of the solution to replace Testopia, manual test cases
need to be migrated to OEQA. These manual test case json files
will serve two use cases.
Use case#1: as input to the future commandline-based manual test
runner script, where this script will display actions and expected
result information in user friendly text, then it will capture
user input for test result and log, finally it will write test
result and log into existing standardize test result json format
from OEQA framework for automated tests.
Use case#2: QA will open and read these json file manually for
planning manual test execution. Any reader interested in
understanding manual test cases will open and read these files.
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta/lib/oeqa/manual/toaster-managed-mode.json | 2572 | ||||
| -rw-r--r-- | meta/lib/oeqa/manual/toaster-unmanaged-mode.json | 1170 |
2 files changed, 3742 insertions, 0 deletions
diff --git a/meta/lib/oeqa/manual/toaster-managed-mode.json b/meta/lib/oeqa/manual/toaster-managed-mode.json new file mode 100644 index 0000000000..ba0658f036 --- /dev/null +++ b/meta/lib/oeqa/manual/toaster-managed-mode.json @@ -0,0 +1,2572 @@ +[ + { + "test": { + "@alias": "toaster.toaster.All_layers:_default_view", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table.", + "expected_results": "" + }, + "2": { + "action": "On the project page click on the \"View compatible layers\" link situated on the right-hand side, mid-page, under the \"Project configuration\" menu, in the \"Layers\" table.", + "expected_results": "" + }, + "3": { + "action": "Check that the table is populated with the default layers (eg. meta-yocto-bsp, meta-yocto)", + "expected_results": "" + }, + "4": { + "action": "Check that by default the following columns are shown: Layer, Summary, Revision, Dependencies and Add/Delete", + "expected_results": "" + }, + "5": { + "action": "Check that the \"Revision\" entries match the release entry from the main project page, in the project details section.", + "expected_results": "" + }, + "6": { + "action": "Check that only one instance of the core layers (openembedded-core, meta-yocto and meta-yocto-bsp) shows in this table, and that instance has a branch that matches the selected project release from the main project page.", + "expected_results": "" + }, + "7": { + "action": "Check that in the \"Dependencies\" column some of the layers should have a square box with a number in it. When clicking on it, a small popup should appear containing a list of other layers required for this layer to work. Every layer listed here should also be a link to the layer's detail page. \n \n", + "expected_results": "" + }, + "8": { + "action": "From the \"Edit columns\" menu, activate the \"Git repository URL\" and the \"Subdirectory\" columns. In \"Git repository URL\": all the entries should have a link to the external site where the layer was downloaded from. Similarly, in \"Subdirectory\" links should exist, if a subdirectory entry is present.", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "All_layers:_default_view" + } + }, + { + "test": { + "@alias": "toaster.toaster.All_layers:_Add/delete_layers", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n\n", + "expected_results": "" + }, + "2": { + "action": "On the project page click on the \"View compatible layers\" link situated on the right-hand side, mid-page, under the \"Project configuration\" menus, in the \"Layers\" table. \n\n\n", + "expected_results": "" + }, + "3": { + "action": "Check that the Add/delete column is enabled. \n\n", + "expected_results": "" + }, + "4": { + "action": "Add a new layer \nPick a layer that hasn't been added to the project. \n \nClick on the \"Add layer\" button present in the \"Add/delete\" column. \nIf the layer has unsatisfied dependencies a dialog will appear listing the dependencies (in alphabetical order), each of them with a checkbox so that you can select / deselect them. All checkboxes are checked by default. If you click the \"Cancel\" button the dialog closes. If you click the \"Add layers\" button, the layers are added to the project. \n\nMake sure to uncheck at least 1 of the dependencies so you can check that only the checked dependencies are added, and not the unchecked one(s). ", + "expected_results": "" + }, + "5": { + "action": "Check that the \"Add layer\" button fades out and is replaced temporarily by a message like \"1 layer added\" and then it is replaced by the \"Delete layer\" button. \nCheck that a confirmation message is displayed at the top of the page similar to \"You have added 1 layer to project_name_here: meta-yocto-bsp\". \n\n", + "expected_results": "" + }, + "6": { + "action": "Delete an existing layer \nPick a layer that's already been added to the project. \nClick on the \"Delete layer\" button present in the \"Add/delete\" column. \nCheck that once the button is pressed, it fades out and is replaced temporarily by the message \"1 layer deleted\" and then it is replaced by the \"Add layer\" button. \nCheck that a confirmation is displayed at the top of the page similar to \"You have deleted 1 layer from project_name_here: meta-yocto-bsp\". ", + "expected_results": "All actions should complete successfully." + } + }, + "summary": "All_layers:_Add/delete_layers" + } + }, + { + "test": { + "@alias": "toaster.toaster.All_targets:_Default_view", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": " If no images exist in the project, build an image by inserting \"core-image-minimal\" in the \"Recipes\" field and press the \"Build\" button. Wait for the image to finish building. \n\n", + "expected_results": "" + }, + "3": { + "action": "On the project page click on the \"Image Recipes\" link situated in the left-handed side of the page, under the \"Project configuration\" menus, in the \"COMPATIBLE METADATA\" table. \n\n", + "expected_results": "" + }, + "4": { + "action": "Check that \"Compatible image recipes\" table is populated. \n\n", + "expected_results": "" + }, + "5": { + "action": "Check that the following columns are shown by default: \n\t\tImage recipe \n\t\tDescription \n \n\t\tLayer \n\t\tBuild \n\t\t Version ", + "expected_results": "" + } + }, + "summary": "All_targets:_Default_view" + } + }, + { + "test": { + "@alias": "toaster.toaster.Configuration_variables:_default_view", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n\n", + "expected_results": "" + }, + "2": { + "action": "In the main project page, click on \"BitBake variables\" in the left-hand side of the page, under the \"CONFIGURATION\" menu. \n\n", + "expected_results": "" + }, + "3": { + "action": "Check that default values are as follows: \n\tDISTRO - poky \n\tIMAGE_FSTYPES - ext3 jffs2 tar.bz2 \n\tIMAGE_INSTALL_append - \"Not set\" \n\tPACKAGE_CLASES - package_rpm \n SSTATE_DIR - /homeDirectory/poky/sstate-cache \n\n", + "expected_results": "" + }, + "4": { + "action": "Check that under the \"Add variable\" section, the \"Variable\" field has the default text \"Type variable name\" present, the \"Value\" field has the default text \"Type variable value\" present and that the \"Add variable\" button is inactive. \n\n", + "expected_results": "" + }, + "5": { + "action": "Check that under the \"Add variable\" section, there is text present that describes the variables that Toaster cannot modify. ", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Configuration_variables:_default_view" + } + }, + { + "test": { + "@alias": "toaster.toaster.Configuration_variables:_Test_UI_elements", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "In the main project page, click on \"BitBake variables\" in the left-hand side of the page, under the \"CONFIGURATION\" menu. \n\n", + "expected_results": "" + }, + "3": { + "action": "DISTRO: \n\t- check that the \"change\" icon is present (represented by a pen icon) \n\t- click on the \"change\" icon and check that the variable becomes an editable text field, populated with the current value of the variable \n\t- check that, if you delete the content of the text field, the save button is disabled \n\t- enter a distro name containing spaces (for example, \"poky tiny\") - check that an error message is shown explaining that the value entered cannot contain spaces \n\n", + "expected_results": "" + }, + "4": { + "action": "IMAGE_FSTYPES: \n\t- check that the \"change\" icon is present (represented by a pen icon) \n\t- click on the \"change\" icon and check that the variable becomes editable like so: the main input control is a set of checkboxes. There is a checkbox for each supported image type. The checkboxes are listed in ascending alphabetical order, broken down in 2 groups: \n\t\t", + "expected_results": "" + }, + "5": { + "action": "The selected types are checked and listed at the top \n\t\t", + "expected_results": "" + }, + "6": { + "action": "The other types are not checked and listed afterwards \n\t- check that all this is inside a scrollable div, and a text field is present above that filters out the content of the div as you type. \n\t- check that if there are no image types matching your typed string, a message is shown notifying you of this: \"No image types found\" \n\t- unselect all checkboxes and check that the save button is disabled and a message is shown: \"You must select at least one image type\" \n\t- select different checkboxes and hit save then make sure that the \tsaved value is consistent with the selected checkboxes \n\n", + "expected_results": "" + }, + "7": { + "action": "IMAGE_INSTALL_append: \n\t- check that the \"change\" icon is present (represented by a pen icon) \n\t- click on the \"change\" icon and check that the variable becomes a text field, populated with the current value of the variable. \n\n\t- check that the save button is disabled when the text field is empty \n\t- insert test in the text field (for example \"package1\") and hit save; be aware that there is no input validation for this variable \n\t- check that a new \"delete\" icon(a trashcan) has appeared next to the pen icon \n\t- check that clicking on the trashcan icon resets the value to \"Not set\" and makes the trashcan icon dissapear \n\n", + "expected_results": "" + }, + "8": { + "action": "PACKAGE_CLASSES: \n\t- check that the \"change\" icon is present (represented by a pen icon) \n\t- click on the \"change\" icon and check that the variable becomes editable with the following components: \n\t\t", + "expected_results": "" + }, + "9": { + "action": "A dropdown menu with values 'package_dev', 'package_ipk' and 'package_rpm' in this order. The value selected when you enter the editable state matches the first value of the variable (e.g. if the value is set to 'package_dev package_ipk' the value selected is 'package_dev'). \n \n\t\t", + "expected_results": "" + }, + "10": { + "action": "Two checkboxes, showing the 2 unselected values in the dropdown menu. \n\n\t- verify that the checkboxes are checked or unchecked to reflect the variable value (e.g. if the value is set to 'package_dev package_ipk', the 'package_ipk' checkbox is checked, and the 'package_rpm' checkbox is unchecked). \n\n\tBoth checkboxes can be unchecked. The value of the checkboxes changes dynamically as I change the selected value in the dropdown menu. This means that any changes to the dropdown menu should uncheck the checkboxes. \n\n\t- click on save and check that the value selected in the dropdown menu is the first value in the variable, followed by any checked checkboxes. \n\n\n", + "expected_results": "" + }, + "11": { + "action": "Adding variables: \n\t- check that the \"add variable\" form has 2 text fields: one for the variable name and a second one for the variable value, plus an \"add\" button that is disabled until both text fields have some input in them. \n \n\t- check variable name validation: variable names cannot have spaces, and can only include letters, numbers, underscores and dashes; variable names entered cannot match the name of a variable already on the list; variable names cannot match the blacklisted variables mentioned in the text on the right-hand side of the page \n\n\t - check that an error message is shown indicating validation has failed and why once you try to put in the value or click on the \"Add variable\" button ", + "expected_results": "All mentioned elements should be present and functional." + }, + "12": { + "action": "insert a valid combination and click on \"Add variable\"; check that a new variable/value pair is added at the bottom of the variable list and that the text fields in the \"add variable\" form are cleared and the \"add\" button is disabled \n\t- check that the added variable has a \"change\" icon present next to the variable value, and also that a \"delete\" icon is present next to the variable name \n\t- check that clicking the \"change\" icon makes the variable editable in a text field containing the value of the variable \n\t- check that, if you delete the content of the text field, the save button is\tdisabled\n\t- check that clicking on the \"delete\" button causes both the variable name and the variable value to be removed from the variables list", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Configuration_variables:_Test_UI_elements" + } + }, + { + "test": { + "@alias": "toaster.toaster.Project_builds:_Default_view", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"Builds\" , next to the \"Configuration\" Button. \n\n", + "expected_results": "" + }, + "3": { + "action": "Check that the page heading includes a counter with the number of builds run for the project(eg. \"Project builds (4)\"). \n\n", + "expected_results": "" + }, + "4": { + "action": "Check that the following table heads are visible by default: outcome, completed on, failed tasks, errors, warnings, image files. \n\n", + "expected_results": "" + }, + "5": { + "action": "Check that by default the table is sorted by \"Completed on\" in descending order", + "expected_results": "All mentioned elements should be present." + } + }, + "summary": "Project_builds:_Default_view" + } + }, + { + "test": { + "@alias": "toaster.toaster.Project_builds:_Sorting_the_project_builds_table", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View all project builds\" link situated below the top-most \"Build\" button and text field, next to the \"View all targets\" link \n\n\n", + "expected_results": "" + }, + "3": { + "action": "Verify that, by default, the table is sorted by \"Completed on\" in descending order. \n\n", + "expected_results": "" + }, + "4": { + "action": "Activate all columns from the \"Edit columns\" table. \n\n", + "expected_results": "" + }, + "5": { + "action": "Check that the following columns are sortable, both in ascending and descending order: outcome, target, machine, started on, completed on, warning, project \n\n", + "expected_results": "" + }, + "6": { + "action": "Verify that hiding a column that is currently being used as the sorting criteria causes the sorting to reset to the default - i.e \"Completed on\" in descending order.", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Project_builds:_Sorting_the_project_builds_table" + } + }, + { + "test": { + "@alias": "toaster.toaster.Project_builds:_customize_the_columns_of_the_table", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View all project builds\" link situated below the top-most \"Build\" button and text field, next to the \"View all targets\" link \n\n", + "expected_results": "" + }, + "3": { + "action": "Click on the \"Edit column\" menu and check that the selected columns match the columns currently being shown. \n\n", + "expected_results": "" + }, + "4": { + "action": "Check that the following columns cannot be removed from the shown columns: completed on, outcome, recipe \n\n", + "expected_results": "" + }, + "5": { + "action": "Check that unchecked items changed to checked immediately appear in the table and that checked items changed to unchecked immediately disappear from the table.", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Project_builds:_customize_the_columns_of_the_table" + } + }, + { + "test": { + "@alias": "toaster.toaster.Project_builds:_filter_the_contents_of_the_table", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View all project builds\" link situated below the top-most \"Build\" button and text field, next to the \"View all targets\" link. \n\n", + "expected_results": "" + }, + "3": { + "action": "Make sure the following columns have filters: outcome, started on, completed on, failed tasks. \n\n", + "expected_results": "" + }, + "4": { + "action": "Filters are mutually exclusive. Click a filter button of a one column and a filter dialogue occurs. Select a filter item. The filter result would be showed. Then select another filter item of another column and the previously applied filter is overridden by the newly selected filter when a filter from a different column is applied to the table. This filter will override the current filter.\" \n\n", + "expected_results": "" + }, + "5": { + "action": "Filters are overridden by search. Run a search query and you can see previous filter results are overridden by the results of the search query.", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Project_builds:_filter_the_contents_of_the_table" + } + }, + { + "test": { + "@alias": "toaster.toaster.Project_builds:_search_the_contents_of_the_table", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View all project builds\" link situated below the top-most \"Build\" button and text field, next to the \"View all targets\" link. \n\n", + "expected_results": "" + }, + "3": { + "action": "When no search query has been entered, we have placeholder text saying: \"Search builds\". The placeholder text disappears when the first character is typed. \n\n", + "expected_results": "" + }, + "4": { + "action": "When a search query has been submitted and results returned: \n- We keep the search string in the text input field. \n- We provide a \"Clear search\" icon (icon-remove-sign). Click it to clear the search and display all packages. \n- We change the page heading to indicate the number of results returned by the search query. \n\n", + "expected_results": "" + }, + "5": { + "action": "If your search query returns no results, the page heading changes to \"No packages found\", and we show you an alert with a search form and an option to show all packages. \n\n", + "expected_results": "" + }, + "6": { + "action": "Searching does not change the state of the table: the same columns remain hidden and the same sorting applied. ", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Project_builds:_search_the_contents_of_the_table" + } + }, + { + "test": { + "@alias": "toaster.toaster.Layer_details_page:_Default_view", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View compatible layers\" link situated in the \"Project configuration\" portion of the page, under \"Layers\" table. \n\n", + "expected_results": "" + }, + "3": { + "action": "Click on a layer (for example \"meta-aarch64\"). Notice that the page is divided into 2 columns: the left one is broken down into tabs; the right one provides information about the layer. \n\n", + "expected_results": "" + }, + "4": { + "action": "Check that breadcrumbs exist at the top of the page. Check that they work by clicking on them, then hitting back to return to the layer detail page. \n\n", + "expected_results": "" + }, + "5": { + "action": "Check that the page heading includes the layer branch name - it should look something like meta-aarch64(dizzy) if the dizzy branch was selected. The branch name should also be present in the breadcrumbs. \n\n", + "expected_results": "" + }, + "6": { + "action": "The \"About\" information: \nit shows summary, description in this order, if not empty. If an information item is empty (like the Summary in the example shown in this page), it does not display. \n \n\n", + "expected_results": "" + }, + "7": { + "action": "The tabs: \nCheck that there are 3 tabs: \"layer details\", \"recipes\", \"machines\" showing up in this order. \n\n", + "expected_results": "" + }, + "8": { + "action": "\"Layer details\" tab: \nCheck that the tab shows: \n- A button to add / remove the layer to / from the project. In this tab, the button labels are\"Add the $layer_name layer to your project\" \"Delete the $layer_name layer from your project\" \n- Some details about the layer: repository URL, repository subdirectory, revision (the branch) and the list of layer dependencies. If any of the above details is blank (most likely, the subdirectory) it does not display.The icons next to the repository and subdirectory information are links to their web instances. Those links should open in a new window. \n\n", + "expected_results": "" + }, + "9": { + "action": "The \"Recipes\" tab: \nCheck that it shows: \n\t", + "expected_results": "" + }, + "10": { + "action": "A counter in the tab label showing the total number of targets provided by the layer \n\t", + "expected_results": "" + }, + "11": { + "action": "A button to add / remove the layer to / from the project. In this tab, the button labels are \"Add the $layer_name layer to your project to enable these targets\"/\"Delete the $layer_name layer from your project\" \n\t", + "expected_results": "" + }, + "12": { + "action": "A recipes table with the following columns: \n \n- Recipe \n- Description: the value of the DESCRIPTION variable. If not set, then the value of the SUMMARY variable. \n- Build recipe, which shows a \"build recipe\" button. The \"build recipe\" button is disabled when the layer is not added to the project. \n\nThe recipes table is sorted by \"Recipe\" in ascending alphabetical order. \n\n1", + "expected_results": "" + }, + "13": { + "action": "The \"Machines\" tab: \n\t", + "expected_results": "" + }, + "14": { + "action": "A counter in the tab label showing the total number of machines provided by the layer \n\t", + "expected_results": "" + }, + "15": { + "action": "A button to add/remove the layer to/from the project. In this tab, the button labels are \"Add the $layer_name layer to your project to enable these machines\"/\"Delete the $layer_name layer from your project\" \n\t", + "expected_results": "" + }, + "16": { + "action": "A machines table with the following columns: \n \n- Machine. \n \n- Description: The value of the DESCRIPTION variable in the .conf file \n- Select machine, which shows a \"select\" button. The \"select\" button is disabled when the layer is not added to the project. \nThe machines table is sorted by \"Machine\" in ascending alphabetical order. \n", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Layer_details_page:_Default_view" + } + }, + { + "test": { + "@alias": "toaster.toaster.Layer_details_page:_UI_functionality", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View compatible layers\" link situated in the \"Project configuration\" portion of the page, under \"Layers\" \n\n", + "expected_results": "" + }, + "3": { + "action": "Click on a layer (for example \"meta-aarch64\"). \n\n", + "expected_results": "" + }, + "4": { + "action": "Adding/removing a layer: \nClick on \"Add the $layer_name_here layer to your project\" and verify that the \"Add layer\" button turns into a red button with the label \"Delete the $layer_name_here layer from your project\" and that at the top of the page, below the header, you see a message \"You have added 1 layer to $project_name_here: $layer_name_here\". This message can be dismissed by clicking on the \"X\" at the top right side of the message. ", + "expected_results": "" + }, + "5": { + "action": "Click on the red \"Delete the $layer_name_here from your project\" button and verify that the \"Delete layer\" button turns back into a grey button with the label \"Add the $layer_name_here to your project\" and that at the top of the page, below the header, you see a message \"You have deleted 1 layer to $project_name_here: $layer_name_here\". This message can be dismissed by clicking on the \"X\" at the top right side of the message. \n\n", + "expected_results": "" + }, + "6": { + "action": "Dependencies window: \n For a layer that has dependencies( for example \"meta-ettus\"), once you click the \"Add layer\" button, verify that you get a message window that presents the dependencies for this layer with the message \"$layer_name_here depends on some layers that are not added to your project. Select the ones you want to add:\", a list with a checkbox for each one and 2 options: \"Add layers\" or \"Cancel\". \nClicking on \"Add layers\" adds all the dependencies and the current layer. Clicking on \"Cancel\" takes you back to the layer detail page without adding any of the layers. \n\n", + "expected_results": "" + }, + "7": { + "action": "\"Recipes\" table \nCheck that if the layer hasn't been added to the project, the \"Build recipe\" button(s) are disabled. After the project is added, check that the \"Build recipe\" button(s) become active and clicking on a button sends you to the main project page and starts a build. \n\n", + "expected_results": "" + }, + "8": { + "action": "\"Machines table\" \nCheck that if the layer hasn't been added to the project, the \"Select machine\" button(s) are disabled. After the project is added, check that the \"Build machine\" button(s) become active and clicking on a button sends you to the main project page and modifies the project machine to the one selected. ", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Layer_details_page:_UI_functionality" + } + }, + { + "test": { + "@alias": "toaster.toaster.Importing_new_layers", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"Import layer\" link situated in the \"Project configuration\" portion of the page, under \"Layers\" table. \n\n", + "expected_results": "" + }, + "3": { + "action": "Check that the import layer form is shown, with the following elements as text fields to be filled out: \nLayer name (example: meta-imported) \nGit repository URL (example: git://github.com/shr-distribution/meta-smartphone.git) \nRepository subdirectory (optional) (example: meta-acer) \nRevision (example: master) \n\nIn addition, a separate portion of the form will be the \"Layer dependencies\" portion, where you can add dependency layers for the layer you are importing. This portion will contain a list of dependencies already added, with a trashcan icon next to them that will delete them when pressed and a text field with a \"add layer\" button next to it for adding dependencies. (for example: meta-android, meta-oe) \n\n", + "expected_results": "" + }, + "4": { + "action": "At the bottom of the form, check that a button exists with the label \"Import and add to project\". Check that this button is inactive until the required fields are filled out. \nCheck that clicking on the \"Import button\" takes you back to the main project page and that the imported layer, along with any dependencies, were added in the project's layers. ", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Importing_new_layers" + } + }, + { + "test": { + "@alias": "toaster.toaster.Layer_details_page:_UI_functionality_for_imported_layers", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": " Access a project page, either by creating a new project or accessing an existing project from the \"All builds\" table. \n\n", + "expected_results": "" + }, + "2": { + "action": "Click on the \"View compatible layers\" link situated in the \"Project configuration\" portion of the page, under \"Layers\" table. \n\n", + "expected_results": "" + }, + "3": { + "action": "Select an imported layer (see in TC 1112 how to import a layer). \n\n", + "expected_results": "" + }, + "4": { + "action": "Page heading \nCheck that the page heading includes the branch, tag or commit as entered when importing the layer.\nIf it's a commit, Check that only the first 10 characters are shown followed by an ellipsis character. The full commit shows on hover.The branch, tag or commit information also shows in the breadcrumb. \n\n", + "expected_results": "" + }, + "5": { + "action": "The \"About\" information \nIt shows: \n- Summary \n- Description \nin this order. Those two items always show, independently of them being blank or not, since they can be edited by users. \n\nWhen an information item is empty, it shows as \"not set\" with a \"change\" icon. Click on the icon to add a value. \n\nFor \"Summary\" and \"Description\" clicking the \"change\" icon shows the selected information item in its editable state. It consists of a text area, set to 2 rows for the \"Summary\" and to 6 rows for the \"Description\", plus 'save' and 'cancel' buttons. \nThe 'save' buttons only activate when there is at least one character in the text area. \n\n", + "expected_results": "" + }, + "6": { + "action": "The tabs \nCheck that the tabs shown are: \n- \"Layer details\" \n- \"Recipes\" \n- \"Machines\" \nThe tabs should show in the order in which they are listed above. \n\n\"Layer details\" tab: \nIn not-editable pages, the tab shows: \n- A button to add / remove the layer to / from the project. In this tab, the button labels are: \n\t- \"Add the $layer_name layer to your project\" \n\t- \"Delete the $layer_name layer from your project\" \n\n- Some details about the layer: repository URL, repository subdirectory, revision (branch / tag / commit) and the list of layer dependencies. This is the information required from users when importing a layer. The subdirectory and the layer dependencies can be blank.", + "expected_results": "" + }, + "7": { + "action": "If blank, they show as \"not set\". \n\nEditing the \"Repository URL\" \nThe \"Git repository URL\" cannot be blank. Therefore, we show only a \"change\" icon next to it. When you click the icon, the text input field is set to the current value. If you delete the value from the input field, we disable the \"save\" button. We enable it again when you type something in the field. \n\nEditing the \"Repository subdirectory\" \nThe \"Repository subdirectory\" can be blank. Therefore, we show both \"change\" and \"delete\" icons. When you click the \"delete\" icon, we \nshow the label \"Not set\".", + "expected_results": "" + }, + "8": { + "action": "\nWhen you click the \"change\" icon, the text input field is set \nto the current value. \nIf you delete the value from the input field, we disable the \"save\" button. We enable it again when you type something in the field. \n \n\nEditing the \"Revision\" \nThe \"Revision\" cannot be blank. Therefore, we show only a \"change\" icon next to it. When you click the icon, the text input field is set to the current value. If you delete the value from the input field, we disable the \"save\" button. We enable it again when you type something in the field. \n\nThe \"Recipes\" tab \nIt shows: \n1: A counter in the tab label showing the total number of targets provided by the layer \n2: A button to add/remove the layer to/from the project. ", + "expected_results": "" + }, + "9": { + "action": "In this tab, the button labels are \n \n\"Add the $layer_name layer to your project to enable \nthese targets\" \n\"Delete the $layer_name layer from your project\" \n\n3: A \"Recipes\" table with the following columns: \n \n- Recipe \n- Description: the value of the DESCRIPTION variable. If not set, then the value of the SUMMARY variable. \n- Build recipe, which shows a \"build recipe\" button. The \"build recipe\" button is disabled when the layer is not added to the project. \nThe recipes table is sorted by \"Recipe\" in ascending alphabetical order. \n\nThe \"Machines\" tab: \nIt shows: \n1: A counter in the tab label showing the total number of machines provided by the layer \n2: A button to add/remove the layer to/from the project.", + "expected_results": "" + }, + "10": { + "action": "In this tab, the button labels are \n \n\t- \"Add the $layer_name layer to your project to enable these machines\" \n\t- \"Delete the $layer_name layer from your project\" \n3: A \"machines\" table with the following columns: \n- Machine. \n \n- Description: The value of the DESCRIPTION variable in the .conf file \n- Select machine, which shows a \"select\" button. The \"select\" button is disabled when the layer is not added to the project. \nThe machines table is sorted by \"Machine\" in ascending alphabetical order. ", + "expected_results": "All mentioned elements should be present and functional." + } + }, + "summary": "Layer_details_page:_UI_functionality_for_imported_layers" + } + }, + { + "test": { + "@alias": "toaster.toaster.Multiple_build_directories", + "author": [ + { + "email": "stanciux.mihail@intel.com", + "name": "stanciux.mihail@intel.com" + } + ], + "execution": { + "1": { + "action": "after starting Toaster for the first time, go to http://[localhost]:8000/admin/ and login with the admin user you created during setup. Click on the Build environments section, and on the BuildEnvironment object. \n\n\n\nNote: you can create a superuser to enter as admin with ... poky/bitbake/lib/toaster/manage.py createsuperuser \n\n\n", + "expected_results": "" + }, + "2": { + "action": "make note of the \"sourcedir\" and \"builddir\" values. The build dir will be something like \"/home/user/path/build\" \n\n", + "expected_results": "" + }, + "3": { + "action": " click \"back\", and click on the \"Add build environment\" button in the upper right corner. \n\n", + "expected_results": "" + }, + "4": { + "action": "enter Address \"2\", Betype: \"local\", \"sourcedir\" is to be set to whatever the original build env is set, and \"builddir\" is ANOTHER path at the same level as the original builddir - e.g. \"/home/user/path/build2\" \n\n", + "expected_results": "" + }, + "5": { + "action": "Click save \n\n", + "expected_results": "" + }, + "6": { + "action": "Execute command : /poky$ source oe-init-build-env build2 \n\n", + "expected_results": "" + }, + "7": { + "action": "Create new project \n\n", + "expected_results": "" + }, + "8": { + "action": "issue 2 build (e.g. core-image-minimal core-image-sato)\n\n\n\n\n\n", + "expected_results": "Both build commands should run simultaneously." + } + }, + "summary": "Multiple_build_directories" + } + }, + { + "test": { + "@alias": "toaster.toaster.Run_again_button_from_all_builds_page_must_run_the_specified_task", + "author": [ + { + "email": "alexandru.costinx.roma |
