Versions Compared

Key

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

...

  1. The below alter scripts needs to be executed in Automatics Orchestration DB
    1. Code Block
      languagesql
      titleAlter scripts
      linenumberstrue
      alter table script_details add TEST_SCRIPT_TYPE varchar(25) default 'JAVA';
      
      alter table script_details add IS_PYTEST_TC boolean default false;
      
      insert into available_job_params (PARAMETER_NAME,UPDATED_BY) values ('Test_Script_Type','admin');
      insert into available_job_params (PARAMETER_NAME,UPDATED_BY) values ('is_pytest_testCase','admin');
      
      
  2. At first Python test case should be added in automatics, for that when adding a new test case the new test case identification field should be selected as Python, the the second field  to identify the particular test case is using Pytest framework or not .
  3. Once a Test case is triggered, Automatics will first check whether the test case is Python or not, by using the value in the new identification field.
  4. Once Jenkins job for Python script execution is triggered from automatics, it will pull the latest Python code from the configured repo along with the RDK B or V tests and it will invoke the corresponding Python script using Java Process builder based on the Automation ID of the test case.

...