Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

              Build utility can be created in the same way as build test case.
              User can create utility by clicking Build Utility tab under Test Manager icon as shown below,
              Test Manager --> Build Utility

Image RemovedImage Added

Steps to include Build Utility in Test cases.

             First First user should create the repeated test steps as utility as shown above.

             Then Then user can add that utility as a step while creating the test case as shown below,

Image Removed

 If user want to include the utility in test case below steps should be followed,

    • Select command type as USER_DEFINED_UTILITY and then automatically all the build utilities created will be loaded.
    • Then user can select the utility that must be included in the testcase as shown above

Image Added

In the test step creation page, click on the User Utility step option.

Select the utility from the drop down.

Build Test Case

Link to Build Test case: <<Build Test Case (rdkcentral.com)>>

...

  • Add Pre-Step
  • Step
  • Add Post-Step
  • Delete Steps

By clicking Add Step button, the User will get a drop-down as shown below.

Image RemovedImage Added

All the options that are present in the drop-down are explained below,

...

Step option will create a plain step as shown below.

Image RemovedImage Added

The fields are explained below,

...

The user should enter a detailed description of the test step.

3. Command TypeExpected Result:

Users should select the command type according to the way in which the command should be executed. The drop-down contains all the commands including SSH, WEBPA, SNMP, and all the PRE-DEFINED commands.enter the expected result or the outcome of the test step

4. Avail. Method:

User should select the available method. The drop down contains all the methods which the selected command type will be applicablemethod that has to be used in the test step. User can either select the method from the drop down or can search the method by clicking the search icon.

5. Input:

By clicking the settings icon in the Input filed, User will be navigated to Input Configuration page as shown below.

...

By clicking external-link icon, User will get Additional Values window as shown below.

Image RemovedImage Added

is Primary Step?  if selected as false, the step will not be considered as primary and step status will not be updated.

...

Add Polling: if option yes selected then we have two options for polling 1. duration, 2. Iteration

Custom Error MessageActions:  By using this option, user can add a custom failure message for a step failure which the details about what will happen in the particular step. The same will be displayed in result page after test execution.

After entering all the additional values, need to click on Save button.

* Child Steps: By clicking the plus icon, User can create child steps.

* Delete Step: By clicking the delete icon, User can delete the particular test step

  • Iterational

User should be able to add Test Script with Iterational step and able to select LOOP/EXITLOOP from test type and able to enter the itteration count and duration in seconds.

Provide steps to validate-

...

Navigate to build testcase page.

...

Provide Valid test case id, select test type 'Functional', select device model...etc. and click on Next button, it will navigate to next page-build testcase page.

...

select Add Step and select Iterational step.

manage scripts page under steps details option.

Impact:  By using this option, user can add the details about what will be the end result for this particular step. The same will be displayed in manage scripts page under steps details option.

Custom Error Message: By using this option, user can add a custom failure message for a step failure which will be displayed in result page after test execution.

After entering all the additional values, need to click on Save button.

* Child Steps: By clicking the plus icon, User can create child steps.

* Delete Step: By clicking the delete icon, User can delete the particular test step

  • Iterational

User should be able to add Test Script with Iterational step and able to select LOOP/EXITLOOP from test type

...

and able to enter the itteration count and duration in seconds

...

.

Provide steps to validate-

  • Launch app/url through browser
  • Navigate to build testcase page.

  • Provide Valid test case id, select test type 'Functional', select device model...etc. and click on Next button, it will navigate to next page-build testcase page.

  • select Add Step and select Iterational step.

  • select LOOP/EXITLOOP from test type.

  • Add iteration count/duration in seconds by clicking input icon.

Iterational option will create an iteration step as shown below.

Image Added

The fields are explained below,

1. Step No: 

Step number will be non-editable text box.

2. Description:

User should enter the detailed description about the test step.

3. Test Type:

User should select the test type. The drop down contains LOOP and EXIT-LOOP.

4. Input:

By clicking the settings icon in the Action filed, User will be navigated to Add Iteration or Duration page as shown below.

Image Added

We need to provide either Iteration Count or Duration in Seconds and click -> Save button. Now the Command / Test step added successfully.

  • Conditional

Conditional step is use add condition (E.g., IF, IFELSE, ELSE).

Provide steps to validate-

1.Launch url Automatics (rdkcentral.com)
2.Navigate to build testcase page
3. Provide Valid test case id, select test type 'Functional', select devicemodel...etc and click on Next button, it will navigate to next page-build testcase page
4. select Add step and select conditional step
5. select IF/ELSEIF/ELSE condition from test type

Conditional option will create a condition step as shown below.

Image Added

The fields are explained below,

1. Step No.: 

Step number will be non editable text box.

2. Description:

User should enter the detailed description about the test step.

3. Test Type:

User should select the test type. The drop down contains IF, ELSE-IF and ELSE.

4. Input:

By clicking the settings icon in the Action filed, User will be navigated to Add Condition page as shown below.

Image Added

* Operator: User should select the Operator type. The drop down contains AND and OR options.

* Invert Result: User should

...

Iterational option will create an iteration step as shown below.

Image Removed

The fields are explained below,

1. Step No: 

Step number will be non-editable text box.

2. Description:

User should enter the detailed description about the test step.

3. Test Type:

User should select the test type. The drop down contains LOOP and EXIT-LOOP.

4. Input:

By clicking the settings icon in the Action filed, User will be navigated to Add Iteration or Duration page as shown below.

Image Removed

We need to provide either Iteration Count or Duration in Seconds and click -> Save button. Now the Command / Test step added successfully.

  • Conditional

Conditional step is use add condition (E.g., IF, IFELSE, ELSE).

Provide steps to validate-

1.Launch url Automatics (rdkcentral.com)
2.Navigate to build testcase page
3. Provide Valid test case id, select test type 'Functional', select devicemodel...etc and click on Next button, it will navigate to next page-build testcase page
4. select Add step and select conditional step
5. select IF/ELSEIF/ELSE condition from test type

Conditional option will create a condition step as shown below.

Image Removed

The fields are explained below,

1. Step No.: 

Step number will be non editable text box.

2. Description:

User should enter the detailed description about the test step.

3. Test Type:

User should select the test type. The drop down contains IF, ELSE-IF and ELSE.

4. Input:

By clicking the settings icon in the Action filed, User will be navigated to Add Condition page as shown below.

Image Removed

* Operator: User should select the Operator type. The drop down contains AND and OR options.

* Invert Result: User should select the NOT check box to invert condition.

...

Conditional check point-
1. If user want to add a condition. For Eg (if, else if, else). They can select test type  and create steps.Image Removed

Image Added

2. Iterational check point
If user want to add looping. For (e.g., loop, exit loop). User can select either loop or exit loop.Image Removed

Image Added

3. import check point 

Import steps from check point as updated in import steps.

...

User should be able to add Test Script with Checkpoint 

Image RemovedImage Added

The fields are explained below,

...

  User should enter expected result of the step.

4. ImpactAction:

   User should enter the impact of the step.

5. Action:

    This field is   This field is explained above under Step.

...

Import steps is used to import steps from existing testcase or user can import test steps from other testcase. User can able to import steps from other testcase by entering the testcase and clone the testcase steps. User can will be able to edit the those imported test steps as well.

Image Added

Steps to import test stepsProvide steps to validate-

1.Launch url Build Test Case (xcal.tv)
2.Navigate to build testcase page
3. Provide Valid test case id, select test type 'Functional', select device model...etc. and click on Next button, it will navigate to next page-build testcase page
4. select Select Add step and select import steps option.
5. Select needs to select the check box to import testcase from this testcase/other testcase'selecting theselecting the' or 'This Testcase'.

User can import a test step from the same testcase by clicking selecting the Import Steps Button in Action.

Image Removed

This Testcase option.

Image Added

Click on Load Steps button and select the test steps which has to be imported.

Once after selecting the test steps, they will be cloned/imported into the test case  By providing the Step Number(case-sensitive) in the given textbox and click Import, given step will be cloned/imported.

Import test steps from other testcase-

User can import a test step from the other testcase by clicking selecting the Import Steps Button in Action Other Testcases option.

Click on Load Steps button and select the test steps which has to be imported.

Once after selecting the test steps, they By providing the Testcase ID in the given textbox and click Import, given testcase steps will be cloned/imported into the test case.

EDIT, CLONE& DELETE Test case.

...

By clicking the delete icon in Action column in Available test cases table, user can delete the test case. Baseline Device Models-
When user wants to add a new device model in an existing test case then the user can make use of Baseline Device Models feature. User need to use the Baseline Device Model to add the new device model, that newly added Device model will add with the Existing Device model but not replace the Existing Device model. This allows user to add the new device model to each step in the scripts.  
Below are the steps to add a new device model to an existing script, where "ABC" is the new device model and "XYZ" is the existing device model:

1.Search any existing script.

2. Select "Baseline Device Models".

...

  • Device To Baseline: User can select the New device model from the drop down
        For example :- Device To Baseline : ABC
  • Reference Model:  User can select the Existing device model from the drop down.
        For example :- Reference Model : XYZ

    Image Removed
    4. Select "Baseline" option. "--Device Model Name-- baselined successfully" message is shown.
    Image Removed

...

For Delete Steps :

The user can delete multiple steps at once in a test case. If the user wants to delete the all the steps inside Pre step, Step and Post step, then the user needs to click the check box that is positioned at the top of Pre step, Step and Post step. Additionally, the user can delete the individual step by selecting the respective test step by clicking its check box and clicking the Delete Steps button. 
1. The user can select the check box to delete the steps.
Image Added
2. After selecting the steps by clicking the check box user needs to click the Delete Steps button to delete the steps
Image Added

User will be able to delete multiple steps in build utility page as well using the same feature.

Baseline Device Models
When user wants to add a new device model in an existing test case then the user can make use of Baseline Device Models feature. The user need to select two devices, one is the new device model that is not present in the existing test case and another one is the reference device model. The reference device model will act as an indicator in which the new device model will be added to the test steps where the reference model is present. This allows user to add the new device model to each step in the testcase.  

Below are the steps to add a new device model to an existing script, where "ABC" is the new device model and "XYZ" is the existing device model:

1. Search any existing script.

2. Select "Baseline Device Models".


Image Added
3. Add the following:

  • Device To Baseline: User can select the new device model from the drop down
        For example :- Device To Baseline : ABC
  • Reference Model:  User can select the existing device model from the drop down.
        For example :- Reference Model : XYZ

Image Added
4. Select "Baseline" option. " --Device Model Name-- baselined successfully" message is shown.

Image Added
5. Now user cancheck the "Run On Models" and "Applicable For" fields in the testcase. New device model should be added.


Download Steps

In the build test case page, the user can download the test steps from a particular test case. All the steps from the test case will be downloaded in an excel format.


Image Added

Upload Test Plan

 By uploading the Test plan(.xlsx) file, user can create the Check point/Plain steps in Step builder page. This feature is available for build utility page as well.
 Note: User should follow the specific template to create the test plan. For the reference, user can download the test plan template from the step builder page.

Image Added

Test Constants

Link For Test Constants :<<Test Constants Configuration (rdkcentral.com)>>Constants Configuration (rdkcentral.com)>>

               Test constant here in automatics means the command or log file or any string that gets used more frequently is called as a test constant
               We can declare the test constant once and can use the same in multiple places.

                Test constant here in automatics means the command or log file or any string that gets used more frequently is called as a test constantThe main advantage of the test constant is it avoids the stabilization effort or test case developer can change the value at one place rather than spending effort on searching all the testcases that                     uses the string.
               We can declare Also, whenever user changes any value of the test constant once and can use the same in multiple places, it impacts all the testcases that are using that test constant.
              The main advantage of the test constant is it avoids the stabilization effort or test case developer can change the value at one place rather than spending effort on searching all the testcases that  So, while editing test constant one should be very careful as its impact might be huge

Create Test Constant

                  uses the string.Test constant can be created through test constants page under settings tab. Settings →  Test Constants
              Also, whenever user changes any value of the test constant, it impacts all the testcases that are using that test constant.
  User should click on Add Constant button and add the constant name and constant value as shown below.
              Constants name must be unique.

Image Added

Steps to include Test Constants in Test cases

            So, while editing test constant one should be very careful as its impact might be huge

...

 To add test constant in test case we need to use {{as the trigger. When user enters {{ then all the test constants are listed under as shown below.
              Test constant can be created through test constants page under settings tab. Settings →  Test Constants
              User should click on Add Constant button and add the constant name and constant value as shown below.
              Constants name must be unique.

Image Removed

Steps to include Test Constants in Test cases

             To add test constant in test case we need to use {{as the trigger. When user enters {{ then all the test constants are listed under as shown below.
             Test constants always starts with TC$ and user can select the test constant as per the requirement.

Image Removed

Manage Scripts

Link to Manage Script page: <<Manage Script (rdkcentral.com)>>

For enabling, disabling, cloning and updating the testcase. We are using manage script page.     User needs to create a testcase by click on this buttonImage Removed

Image Removed

Automation ID should be specific based on the feature. Build Type needs to be mentioned based on the builds that is applicable for the testcase. Test script type should be either java or python.

Test type based on timing run of the testcases.  Summary should be on the testcase overview. Whether if face any impact while execution we need to mention inside the impact summary. 

Environment type will be based on the device. User needs to select either RDKV or RDKB. End points will be whether Rack device or Desk device, User needs to select the applicable models of the 

feature. Head End should be either HE1 or HE2. Once all fields added successfully. 

Image Removed

Testcase added successfully.

Image Removed

 We can enable, edit, clone, update details of the testcase using these buttons. Image Removed  

Manage Test Trigger

Link for Manage Test Trigger :<<Job Trigger (rdkcentral.com)>>

For Both RDKV & RDKB same job trigger page

For Select Service name default it will be Functional Verification if user wants, he can select CI verification based on the requirement. Build name should be the same one that is available inside the box details. Endpoint should be either Desk box or Rack device. Partner Test is not the mandatory one. If we want, we can select the box and add COMCAST. Test types needs to be selected based on the hours and days execution time. Environment type should be either RDKV, RDKB, RDKC.Is Quick Test required it will select as a default one. We can disable that if we are not using QT.

Image Removed

Once all the details added successfully User will be navigate to the Following page.

Image Removed

In Automation ID user needs to select the Automation ID . Once the ID selected it will available inside Short-listed Automation Ids. Click on Next button. It will be navigated to the Trigger Execution manually.

Image Removed

For Mac address select check box Image Removed E.g 00-xx-xx-xx-xx-xx and for good devices click on ->Image Removed . . It will list the good devices. We can have Schedule trigger option also available, and the time needs to be mentioned. Device Group we can select based on the Automation ID. Build Appender and Notification mail will be mandatory. Source Repo needs to be mentioned based on the repo's available in the repository. Once all the details mentioned user Should click on the Trigger Job button. Once done Trigger will start successfully and via Job manager Tab.

Job Manager

Link to Job manager page : <<Job Manager >>.

User once trigger the testcase can able to find the execution results by clicking this button Image Removed Once testcase triggered successfully. Following image will be available.

Image Removed

User can find the full execution logs by clicking this button. Image Removed . User can get the full execution logs and find out the pass and failure steps in detail. 

Image Removed

By clicking this icon Image Removedwe can see the child Jobs name. After that click on this icon Image Removed. Then Jenkins Execution logs will be available . We can verify pass and failures of all the steps. 

Import & Export of Test Cases and Utilities

We can import and export test cases and utilities in Automatics. This option is available once for users who are under admin role. In order to import or export a test case or utility, we need to map the device present in the test case and utility to its respective category. This can be done using the device category mapping page.

...

 Test constants always starts with TC$ and user can select the test constant as per the requirement.

Image Added


Manage Scripts

Link to Manage Script page: <<Manage Script (rdkcentral.com)>>

For enabling, disabling, cloning and updating the testcase. We are using manage script page.     User needs to create a testcase by click on this buttonImage Added

Image Added


Automation ID should be specific based on the feature. Build Type needs to be mentioned based on the builds that is applicable for the testcase. Test script type should be either java or python.

Test type based on timing run of the testcases.  Summary should be on the testcase overview. Whether if face any impact while execution we need to mention inside the impact summary. 

Environment type will be based on the device. User needs to select either RDKV or RDKB. End points will be whether Rack device or Desk device, User needs to select the applicable models of the 

feature. Head End should be either HE1 or HE2. Once all fields added successfully. 

Image Added


Testcase added successfully.

Image Added


 We can enable, edit, clone, update details of the testcase using these buttons. Image Added  

Manage Test Trigger

Link for Manage Test Trigger :<<Job Trigger (rdkcentral.com)>>

For Both RDKV & RDKB same job trigger page

For Select Service name default it will be Functional Verification if user wants, he can select CI verification based on the requirement. Build name should be the same one that is available inside the box details. Endpoint should be either Desk box or Rack device. Partner Test is not the mandatory one. If we want, we can select the box and add COMCAST. Test types needs to be selected based on the hours and days execution time. Environment type should be either RDKV, RDKB, RDKC.Is Quick Test required it will select as a default one. We can disable that if we are not using QT.


Image Added

Once all the details added successfully User will be navigate to the Following page.

Image Added


In Automation ID user needs to select the Automation ID . Once the ID selected it will available inside Short-listed Automation Ids. Click on Next button. It will be navigated to the Trigger Execution manually.

Image Added


For Mac address select check box Image Added E.g 00-xx-xx-xx-xx-xx and for good devices click on ->Image Added . . It will list the good devices. We can have Schedule trigger option also available, and the time needs to be mentioned. Device Group we can select based on the Automation ID. Build Appender and Notification mail will be mandatory. Source Repo needs to be mentioned based on the repo's available in the repository. Once all the details mentioned user Should click on the Trigger Job button. Once done Trigger will start successfully and via Job manager Tab.

Job Manager

Link to Job manager page : <<Job Manager >>.

User once trigger the testcase can able to find the execution results by clicking this button Image Added Once testcase triggered successfully. Following image will be available.

Image Added


User can find the full execution logs by clicking this button. Image Added . User can get the full execution logs and find out the pass and failure steps in detail. 


Image Added


By clicking this icon Image Addedwe can see the child Jobs name. After that click on this icon Image Added. Then Jenkins Execution logs will be available . We can verify pass and failures of all the steps. 

Import & Export of Test Cases and Utilities

We can import and export test cases and utilities in Automatics. This option is available once for users who are under admin role. In order to import or export a test case or utility, we need to map the device present in the test case and utility to its respective category. This can be done using the device category mapping page.


Device Category Mapping Page

In manage scripts page, the user with admin role will be able to view an option called Device Categorization. When we click on that option the Device Category Mapping page will open.

Image Added

This page is used to view the existing mapping information of device models with the appropriate category name and map the device models with categories.

Image Added

When we click on Add Device Category Mapping option, we can see the below option to add a new device category mapping by selecting the device name and device category.

Image Added

When we click on Device Categorization option, we can see the device categories that are available and can add new device category.

Image Added

When we click on Add New Category option, we can add new device category by providing the category name.

Image Added

Export

In build test case page, select the check boxes across the test cases that has to be exported. Once the necessary check boxes are selected, click on the Export button. A JSON file will be downloaded which contains the test case JSON data. Similarly, we can export the utility in build utility page using the same steps.

Image Added


Import

In build test case page, click on the Import button and select the respective JSON file which contains the test case JSON data that has to be imported. The test cases will be imported into Automatics. Please note that test case IDs should be unique. Similarly, we can import the utility in build utility page using the same steps.

Image Added

 Steps to validate the import/export feature for Build Utility Page-

  • Login to Automatics and navigate to build utility page
  • Select testcase id from build utility page and click on Export button. Testcase should export with json format, and it should be available in downloads from Computer. Image AddedImage Added


  • Click on import button and select testcase from computer (it should be in json format). Testcase should import successfully, and it should be available in build utility page.
  • When user try to import, the utility name should not be there in the database.
  • Display Name in the json format is the API name for each step. The API name should be present in the database.


  • If the import is successful, only test case name will be showed in the import Logfile.

Image AddedImage Added                     Image Added


  • The device category data (applicable for) present in the json should have appropriate device models mapped to it. As shown in below, 

Image Added

Image Added


Steps to validate the import/export feature for Build Testcase Page

...

Image Removed

This page is used to view the existing mapping information of device models with the appropriate category name and map the device models with categories.

Image Removed

When we click on Add Device Category Mapping option, we can see the below option to add a new device category mapping by selecting the device name and device category.

Image Removed

When we click on Device Categorization option, we can see the device categories that are available and can add new device category.

Image Removed

When we click on Add New Category option, we can add new device category by providing the category name.

Image Removed

Export

In build test case page, select the check boxes across the test cases that has to be exported. Once the necessary check boxes are selected, click on the Export button. A JSON file will be download which contains the test case JSON data. Similarly, we can export the utility in build utility page using the same steps.

Image Removed

Import

In build test case page, click on the Import button and select the respective JSON file which contains the test case JSON data that has to be imported. The test cases will be imported into Automatics. Please note that test case IDs should be unique. Similarly, we can import the utility in build utility page using the same steps.

Image Removed

 Steps to validate the import/export feature-

  • Login to Automatics and navigate to build utility Testcase page.
  • Select testcase id from build utility testcase page and click on Export button. Testcase should export with json format, and it should be available in downloads from ComputeImage RemovedImage RemovedComputer.

Image AddedImage Added

  • Click on import button and select testcase from computer (it should be in json format). Testcase should import successfully, and it should be available in build utility testcase page.
  • When user try to import, the utility testcase name should not be there in the database.
  • Display Name in the json format is the API name for each step. The API name should be present in the database.


  • If the testcase import is successful, only test case name will be showed in the import Logfile.

...

  • The device category data (applicable for) present in the json should have appropriate device models mapped to it. As shown in below, 

Image Removed

  • When user import testcase, If the Api's present in the test case are not available in the database, it should display error msg as below screenshot.

Image AddedImage Removed