Versions Compared

Key

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

...

       2. To get the list of test scripts/test names in a package,   we can use webAPI mentioned in below link

...

       3.To get the device configs,   we can use webAPI mentioned in below link

...

       4.To get the test configs,   we can use webAPI mentioned in below link

...

      3. To get execution result of job, we can use webAPI mentioned in below link. The input to the rest api restapi result id and in output we overall status count of all test cases.

...

  1. Requires an endpoint to get details of test cases/test names configured in a pacakagepackage.
  2. Requires an endpoint to get result status and logs separate for each test case in a package.

CD Router and Automatics in CI/CD Pipeline

  • User Triggers CDRouter test from Automatics CI environment.
  • Then Automatics Orchestration gets the required details from Automatics DB and device details from Device manager and then sends trigger request to CDRouter microservice which again sends the request to device manager.
  • Then device manager sends the response to CDRouter microservice and then the microservice sends the trigger request to CDRouter device, where execution of the testcase happens.
  • Then CDRouter sends the  the test results response to CDRouter microservice.
  • Then CDRouter microservice updates the result in the CI environment where user can see the end results from Job manager page.

...

  • user can view the different CDRouter execution from the following diagram.
    example: to view CDRouter Ci execution result user has to navigate to Job manager page and can view the the detailed result. (For more information, please go through Job Manager section provided in this page).

...

Existing PagesPurposeChanges Expected

E2E RDK Request Filter Page

Configure CD Packages for CI executionsNew Tab for selecting CD Router Tests
Trigger Execution Manually PageUser can select CDRouter packages trigger executionsNew Tab for selecting CD Router Tests
Job Manager PageUser can view the progress of CD Router package executions - Each job will show the status of single packageChange in actions button since Jenkins is not needed.
Execution Results PageTo view overall execution results like Total script count, and its pass and fail countNo change in UI
Detailed Execution Results PageTo view the execution results of each test script (in cd router each test case contains only one step)No change in UI
Manage script pageTo map cdrouter package with automatics automation idChange in components that are displayed, new fields to come in

...

Note: Before Triggering a testcase user has to enable the corresponding package by navigating to job manager page and enable the package and click on edit script details button and map the device.(All the steps are explained under JOB Manager page please go through it for more clarification) 

 1. Navigate to the URL "https://automatics.rdkcentral.com/Automatics/login.htm "Automatics url, login and select 'Trigger Execution Manually' from the 'Manage Trigger Dropdown'.

...

2. Now click on the Edit Script Details Icon corresponding to the testcase to be edited.
3. Now user can see a pop-up, check all the mandatory fields to entered/changed. update the corresponding fields and click on next button.

4. Under 'Select Test Source' drop down user should select CDrouter. 

...

5. User should enter the mandatory fields and and click save button to save the changes.

...

 Pagination Limit: User has the freedom to set the pagination limit.

If the user sets the pagination limit to 10, it means that in a single API call, the orchestration side will receive 10  10 packages. If there are a total of 30 packages and the pagination limit is set to 10, then these packages will be fetched in three requests. This approach is implemented to maintain a constant JSON size and to minimize any potential overhead, ensuring efficient processing.

 user can set pagination limit in both the ways one using UI and and other using MySql DB.


 1.1.1 Using UI

  1.User should navigate to 'https://automatics.rdkcentral.com/ Automatics /login.htm' URL and click on 'System Configuration' under settings drop down as show in the image below.

...

 user should be able to set the pagenation limit from master_config table. (User should set CDROUTER_PAGINATION_LIMIT from MASTER_CONFIG table  table ).

user has to run this query to update update. 

Code Block
languagesql
INSERT INTO master_config (CONFIG_NAME, CONFIG_VALUE) VALUES ('CDROUTER_PAGINATION_LIMIT', '10');

...

1.User should navigate to 'https://automatics.rdkcentral.com/Automatics/login.htm' url Automatics home url and click on 'System Configuration' under settings drop down as show in the image below.

...

3.Adding a new test type as CDROUTER

1. Navigate to the URL 'https://automatics.rdkcentral.com/Automaticsdev/login.htm' and automatics url  and select 'System Configuration' under the settings drop down as shown in the below image.

...

4.Creating a New Job as AUTO_CDROUTER_TEST_JOB

  1.  Navigate to the URL 'https://automatics.rdkcentral.com/Automaticsdev/login.htm' Automatics url and select 'Job Settings' under the settings drop down as shown in the below image.

...

    2. User should add CDRouter base url "http://192.168.162.176/" under  under Device Name and add'CDROUTER' as Image Name prefix. Select the device type in Select Category and click on save button.
        it's a mandatory step that user should follow.

...

2. Automatics base url
         In CDrouter service  service user should navigate to application.properties and update automatics.url with proper automatics base url and save the changes.

...

  • Every time a new CDRouter is connected to this device, the user should update the base URL of CDRouter connected to the corresponding device.
  • Basically, it is used for locking and unlocking of devices.
     

...