Versions Compared

Key

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

Table of Contents

Enable CDRouter testcases in

...

Automatics

1.   Navigate to manage 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.

image.pngImage RemovedImage Added

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

...

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

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

image2023-12-12_11-18-19.pngImage Removed

Image Added

6.Cdrouter instance will be mapped already. Map the device models that are connected to CDRouter for testing. Click on next and save it.
Image Added
7.User should enter the mandatory fields and click save button to save the changes.

8.After Saving the testcase User need ,Click on Image AddedIcon to enable the testcase by clicking this icon corresponding to testcase which user need to triggerImage Removed.

image (1).pngImage Added

9.Check the mandatory field Select the Reason and save it.

Image Added


Trigger CDRouter Testcases from Automatics


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

112.Enter the build name and Select the Execution Environment Type, quick test if needed and test source as 'CDROUTER'. Click on next button if all the mandatory fields are added.

image2024-1-10_11-22-53.pngImage Removed

 

Image Added

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

Screenshot (63).png

134. Specify the device mac address that used for testing 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 14. When the user triggers the job and navigating to the Manage Test Trigger page, user can verify the job status depending on their testcase (RDKV or RDKB) Expand RDKB dropdown and selecting the Job Manager button user can able to see the triggered Job.

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

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

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

Image Added

Execution Results and Analysis

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

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

Image Added

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

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


Save/Update Cdrouter Package Details in Automatics.

We can use /sendPackageDetailsToAutomatics API which is present in cdrouter service to send the package details from Cdrouter application to Automatics.


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.