RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
<Work In Progress>
Following diagram shows interaction of Orchestration tool with CD Router Automation Engine via CD Router Service.
Advantage: No Jenkins resources are needed for triggering test execution.
Following diagram shows the interaction among Automatics CD Router service and CD Router Automation Engine
APIs available
Inputs to be passed are package name, device config and test config
On success, it will return 200 response code and status of execution will be Pending initially.
We can think of background thread checking for updates of running jobs from cdrouter.
https://support.qacafe.com/cdrouter/cdrouter-web-api/jobs#get-a-job
3. To get execution result of job, we can use webAPI mentioned in below link. The input to the rest api result id and in output we overall status count of all test cases.
"loops": 5, "tests": 2552, "pass": 0, "fail": 1150
APIs required
APIs available
https://support.qacafe.com/cdrouter/cdrouter-web-api/packages#list-packages
2. To get the list of test scripts/test names in a package, we can use webAPI mentioned in below link
https://support.qacafe.com/cdrouter/cdrouter-web-api/packages#get-a-package
3.To get the device configs, we can use webAPI mentioned in below link
https://support.qacafe.com/cdrouter/cdrouter-web-api/devices#list-devices
4.To get the test configs, we can use webAPI mentioned in below link
https://support.qacafe.com/cdrouter/cdrouter-web-api/configs#list-configs
Existing Pages | Purpose | Changes Expected |
---|---|---|
E2E RDK Request Filter Page | Configure CD Packages for CI executions | New Tab for selecting CD Router Tests |
Trigger Execution Manually Page | User can select CDRouter packages trigger executions | New Tab for selecting CD Router Tests |
Job Manager Page | User can view the progress of CD Router package executions - Each job will show the status of single package | Change in actions button since Jenkins is not needed |
Execution Results Page | To view overall execution results like Total script count, and its pass and fail count | No change in UI |
Detailed Execution Results Page | To view the execution results of each test script (in cd router each test case contains only one step) | No change in UI |
Manage script page | To map cdrouter package with automatics automation id | Change in components that are displayed, new fields to come in |
In the request filter page, new tab CDRouter Tests will be coming where user can select CDRouter Tests for CI/CD integration
After CDRouter automation ids are selected, they are displayed in the main page of E2E RDK Request Filter Page.
From the Trigger Execution Manually Page, user can select the CDRouter tests for execution.
Adding 2 new tables to automatics DB:
https://support.qacafe.com/cdrouter/cdrouter-web-api/
Trigger Execution from Automatics Orchestration
1. Navigate to the URL "", login and select 'Trigger Execution Manually' from the 'Manage Trigger Dropdown'.
2. Enter the build name and Select the Execution Environment Type, quick test if needed. Click on next button if all the mandatory fields are added.
3. Select the corressponding Automation ID and click on Next button.
4. Enter the Device mac address and click on Trigger Job button you can see a pop-up that execution is triggered successfully.
Manage Script Page
Steps to select only CD router testcases.
1. Navigate to manage scripts page by selecting 'Manage scripts' under Test Manager dropdown.
2. Under Filter dropdown 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.
Editing TestScript Details of CDRouter testcases
1. Navigate to ManageScripts page under 'Test Manager' drop down and filter the CDrouter Testcases followin the above steps.(ManageScripts →filter → Select CDRouter under 'Select TestSource' → click filter)
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.
Job Manager
When the user triggers the job, user can verify the job status depending on their testcase (RDKV or RDKB) by navigating to the Manage Test Trigger page and selecting the Job Manager button.
To find the execution results by clicking this button Once testcase triggered successfully. Following image will be available.
User can find the full execution logs by clicking this button. . User can get the full execution logs and find out the pass and failure steps in detail.
By clicking this icon we can see the child Jobs name. After that click on this icon . Then Jenkins Execution logs will be available . We can verify pass and failures of all the steps.