Versions Compared

Key

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

...

Mandatory Automatics Configurations for Test Execution

...

Configure Maven Artifact Repository

After the automated deployment job execution, user has to configure the artifact repository details in maven settings.xml in automatics_jenkins docker to maven deploy the automatics artifacts. This is required for test execution, as maven artifacts of automatics-core, test-utils are pulled from artifact repo during execution.

  • Login in to jenkins docker by executing docker exec -it automatics_jenkins bash. 
  • Edit settings.xml file in /etc/maven/settings.xml to add maven artifact repository details.
    • Add profile as below and add the artifactory repository url in <url> section

<profile>
      <id>rdk-repo</id>      
      <repositories>
        <repository>
          <id>rdk-repo</id>          
          <url>Add artifactory repository url here</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
        </repository>       
      </repositories>
      </profile>

    • Add artifact repository credential details as given below:

<servers>
    <server>
      <id>rdk-repo</id>
        <username></username>
        <password></password>
  </server>

    • Update profile as active

<activeProfiles>
    <activeProfile>rdk-repo</activeProfile>    
  </activeProfiles>


More details about maven settings.xml configuration can be referred from https://maven.apache.org/settings.html

Jenkins Jobs

The below set of jobs will be created after successful completion of Automated Build and Deployment execution.

...

Jenkins Job Name

Configuration to be

done in Jenkins Jobs

Steps carryout

the configuration

Automatics_Build_JobNIL
Automatics_Deployment_jobNIL
CI_Automatics_Code_Deploy_And_3.0_Api_ParserNIL
CI_Api_Parser_Automatics_CoreConfigure automatics properties URL in 
the JAVA_OPTS "-Dautomatics.properties.file=Automatics_Props_URL_Tobe_Added_here"
Under Goals of BUILD Tab
  1. Open the job by clicking the job name
  2. In the menus at the left click configure button
  3. Now click the Build tab at the top
  4. Now replace "Automatics_Props_URL_Tobe_Added_here" this string with the actual automatics properties URL in the Goals text field under " Invoke top-level Maven targets " menu. More details on job configuration is available at Jenkins Job for Test Execution#2.ConfigureJenkinsJob)
CI_Api_Parser_RDKB_Utils
CI_Api_Parser_RDKV_Utils
CI_Api_Parser_Scriptless_Automation
JOB1
Deploy_Automatics_CoreConfigure your private repo(this is for storing the maven dependencies for automatics) URL in 
the JAVA_OPTS "-DaltDeploymentRepository=REPO_URL_TOBE_ADDED_HERE"
Under Goals of BUILD Tab
along with maven deploy command under Build Section


  1. Refer Automatics Core : Jenkins Deployment Job configuration#ConfigureBuildSettings for more details to configure artifact repo url along with maven command
  2. Open the job by clicking the job name
  3. In the menus at the left click configure button
  4. Now click the Build tab at the top
  5. Now replace "REPO_URL_TOBE_ADDED_HERE" this string with the private repo(this is for storing the maven dependencies for automatics) URL in the Goals text field under " Invoke top-level Maven targets " menu



Deploy_RDKB_Utils
Deploy_RDKV_Utils
Deploy_RPi_Partner_Java_API

After completing the above set of configuration execute Jenkins Jobs in below order.

  1.  "CI_Automatics_Code_Deploy_And_3.0_Api_Parser"

...

  1. .  
    1. This job will build and deploy all the automatics dependencies to the repo and run the parsers needed for Automatics Scriptless automation (Automatics 3.0).

...

    1.  
  1.  "Deploy_RPi_Partner_Java_API"

...

    1.  This job will build and deploy rpi provider partner implementation.

Automatics Orchestration

System Configuration

The below mandatory system configurations needs to be done in Automatics orchestration for running a first dummy Test execution and result verification from automatics. Please follow Automatics Orchestration Setup#Configuration to configure required configs System Config page of Automatics Properties to make use of features like scriptless automation, review management etc

 All the URLs and DB credentials used for the deployment can be found as a YAML file in "archived artifacts" of Automatics Deployment Job execution DeploymentJob

...

All the mandatory properties mentioned in the document Automatics Properties should be configured in automatics properties for the successful execution of a test case.


After all configuration are done, please login to the VM where debugger service is running and restart the debugger docker container.

Important Points to Note

...