Versions Compared

Key

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

Python script selection & Python test execution from Automatics Orchestration

For identifying a particular Test case is python a new field will be introduced in managed scripts. This new field will be used to mark particular test case as Python or not. The below are the stepwise information on how a particular test case will executed

In Automatics python test cases will be selected automatically based on the mapping done for each automation id as PYTHON. Once a test case id identified as python JENKINS Job for test execution will be triggered. Once the test execution starts it will fetch the necessary parameters from automatics orchestration and based on that python test case execution will be triggered. 

  1. At first all the initialisation steps will be carried out like reading automatics properties, locking of the Device etc
  2. Then once the test case is identified as python, a new test execution flow will be triggered.
  3. In that flow Automatics Python wrapper script will be called from Automatics core using Java Process Builder, along with device details, and other necessary info for test case execution.
  4. Once the python wrapper script is invoked, it will scan for the directories in the jenkins job workspace to identify the Python scripts and its function which is annotated with the corresponding Automation ID
  5. On identifying the python script as well as the function that corresponding function is invoked by the python wrapper script and it will pass the Java DUT object to it.
  6. At this point the test case and its step execution will happen and result can be updated back to the automatics

...

  1. .