Enable CDRouter testcases in Automatics

1. Navigate to Manage scripts page by selecting 'Manage scripts' under Test Manager drop down.

2. Under Filter drop down scroll till 'Select Test Source' tab and select 'CDRouter' from the drop down and click on filter button.

3.User can see all the CDRouter testcases that are present.

image (1).png

4. Click on the Edit Script Details Icon corresponding to the testcase to be edited and check all the mandatory fields to entered/changed. Update the corresponding fields and click on next button.

6.Cdrouter instance will be mapped already. Map the device models that are connected to CDRouter for testing. Click on next and save it.

8.After Saving the testcase ,Click on Icon to enable the testcase.

image (1).png

9.Select the Reason and save it


Trigger CDRouter Testcases from Automatics


1.Now Navigate to 'Trigger Execution Manually' from the 'Manage Test trigger' of side bar.

2.Enter the build name and Select the Execution Environment Type, quick test if needed and test source as 'CDROUTER'. 

3.Select the corresponding Automation ID and click on Next button.

Screenshot (63).png

4. Specify the mac address of device connected to CDRouter and click on 'Trigger Job' button. You can see a pop-up that execution is triggered successfully.

Screenshot (65).png

Monitor CD Router Executions from Automatics

1. Navigate to the Manage Test Trigger page, Expand RDKB dropdown and selecting the Job Manager button user can able to see the triggered Job.

image2023-12-12_12-38-32.png

2.Job manger will appear like below where user can find the execution status ,logs etc.
image2023-12-12_12-50-16.png

3. By clicking this icon we can see the child Jobs name. 

Execution Results and Analysis

1.Click on this icon to view the execution results which shows Total, passes ,failed, NT,NR,NA step  count details as below.


2.Click on that image name of the testcase ,user can see complete step details.



3.To view full execution logs click on icon and click on the mac address shown there .It will  show CDrouter test results

3.The cd router execution logs will appear like this as shown below.


Automated Sync of CDRouter Packages in Automatics

Automated Periodic Sync of Packages in Automatics

In CDRouter service, there is a provision to configure the cron job for sending the CDrouter package details to Automatics. This job will be triggered automatically, once the CDRouter service is deployed. By default it is configured in such a way that from Monday to Friday at 10:30AM, package details from CDRouter Instance will be sent to Automatics via CDRouter service. This configuration is present in application.properties file of CDRouter service. The configuration name of this cron job is cron.package.details.jobs.

User Initiated Sync of Packages in Automatics

CDRouter service exposes a REST API which enables users to initiate package sync with Automatics instantly without waiting till next automated sync.

REST API Url:  {protocol}//{host:port}/api/cdrouter/service/sendPackageDetailsToAutomatics

Request Type: POST

Request Body: Empty

This helps in saving new packages and updating the existing package details in Automatics database. 


Refresh Auth token


We can use /refreshAuthToken API which is present in cdrouter service to refresh the auth token once after the value is updated under 'auth' variable using 'CDROUTERS' system configuration.


  • No labels