Versions Compared

Key

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

...

  • In configuring shell script for partner java dependency the below commands should be added additionally
    • This code will create a new folder called "automaticsPythonTest" in your jenkins job workspace and clone your Python Test scripts to this location

      Code Block
      languagepowershell
      titleExecute shell in Configure Build
      mkdir /var/lib/jenkins/workspace/$BUILD_JOB_NAME/automaticsPythonTest
      
      cd /var/lib/jenkins/workspace/$BUILD_JOB_NAME/automaticsPythonTest
      
      # specify the repository URL of python script
      repo_url="<YOUR_PYTHON_TESTCASE_GIT_REPO_URL>"
      
      # specify the target directory for cloning
      target_dir="/var/lib/jenkins/workspace/$BUILD_JOB_NAME/automaticsPythonTest"
      
      # specify the branch name
      branch_name="<YOUR_PYTHON_TESTCASE_GIT_REPO_BRANCH>"
      
      # clone the repository
      git clone --branch $branch_name $repo_url $target_dir
      
      # change to the target directory
      cd $target_dir

      So the final Execute shell script will look somewhat like below

      Image Modified


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