Overview
RDKB tests involve test scripts verifying various RDKB features.
To execute RDKB tests, RDKB Utils and RDKB test projects are required. The repo details are given below.
Repository Details
Guide to Test Execution
Partner have to do following in Automatics to execute tests.
- Automatics Orchestration Configuration
- Deploy dependent artifacts
- Test Jenkins Job Configuration
Automatics Orchestration Configuration
Follow the orchestration user manual doc for Automatics Orchestration User Manual.
As part of test execution, following configurations are needed.
- Configure the test source repo details of RDKB in Automatics DB.
- Configure jenkins job url in Automatics.
- Configure the device models
- Configure device groups as in Device Inventory
- Configure Job Settings for each test type
- Add test script details
Deploy Automatics Framework artifacts
Following artifact needs to be deployed using maven to the Partner Artifcatory repository, in the below order.
- Automatics Core
- Partner Provider API Repo
Deploy Automatics Test artifacts
After deploying Automatics Framework artifacts, following Test artifact needs to be deployed using maven to the Partner Artifcatory repository, in the below order.
- RDK-B Test Utils
- Repo : rdk/tools/automatics/rdkb-test-utils
- pom modification required : replace maven dependency 'automatics-core' with dependency of partner java implementation. Here, 'automatics-core' is inherited via transitive dependency from provider implementation. To replace the maven dependency 'automatics-core' on the fly, script 'pre-build.sh' is available with the source of automatics-core project at location 'automatics-core/src/main/resources/pre-build.sh'
- Execute 'mvn clean deploy' after updating with partner java implementation dependency in pom.xml. This will deploy rdkb-utils in self-hosted maven artifact repository. This activity can be automated via jenkins job with pre-build.sh to execute first and then mvn clean deploy.
Test Jenkins Job Configuration
- Configure Jenkins Job :
Execute RDKB Tests
- After deploying RDKB Utils, now the tests are ready for execution from Orchestration after the test script details are configured in Orchestration.