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

Project DescriptionRepositoryBranch
RDKB UtilsRDKB Test related utility APIshttps://code.rdkcentral.com/r/admin/repos/rdk/tools/automatics/rdkb-test-utilsrdk-next
RDKB Test AutomationRDKB Test Scriptshttps://code.rdkcentral.com/r/admin/repos/rdk/tools/automatics/rdkb-testsrdk-next


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.

Deploy Automatics Framework artifacts

Following artifact needs to be deployed using maven to the Partner Artifcatory repository, in the below order.

  1. Automatics Core
  2. 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.

  1. 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

    1. Configure Jenkins Job :
    2. Execute RDKB Tests

      1. After deploying RDKB Utils, now the tests are ready for execution from Orchestration after the test script details are configured in Orchestration. 


  • No labels