For python integration in automatics, 2 Jobs should be created for the below functionalities

  1. First job is to create Automatics python Library for test execution - During automatics test execution this Library will be invoked from automatics for executing python scripts
  2. Second job is the test execution job for python which needs some addition configuration when compared to the test execution job for JAVA

Automatics Python Library creation job

Please follow the below steps to create Automatics Python Library and distribute across jenkins VM from Jenkins job

1.Creating Jenkins job


2. Configuration of Jenkins Job

Configure General Settings

Configure Source Code Management

 eg : https://code.rdkcentral.com/r/rdk/tools/automatics and also add the repo credentials

Configure Build Triggers

Configure Build Environment

Configure Build Settings

Save the Configuration


Automatics Python Test Execution Job

The job creation for test execution can be done using the steps available in the page Jenkins Job for Test Execution . Only change is in the Jenkins Job for Test Execution#ConfigureBuild section. The changes are as follows 


One point to note here is you need to use the newly available pre-test-config_py.sh in this job, this is to add the maven shade plugin dependency to the pom.xml to create an executable jar. This executable jar is required to communicate from python scripts to java in order to access the already available APIs in automatics Core and utils