Versions Compared

Key

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

Introduction

  • Device Manager has a support for health check feature

...

  • .
  • It empowers the testers and other users to do health check on the devices before executing any test cases.
  • User can easily get the list of devices which are in good state and bring up the devices which are in bad state.
  • It reduces the tester time for verifying and getting the devices which are in good state.
  • As a basic health check validation in the SSH connection to the device is validated and on successful connection device is assigned to good state.
  • On each schedule the list device can be added is standardized to 20 considering the JVM memory size  and the jenkins can hold logs upto some extent for single job.
  • If partner needs to add new health check steps Please refer 

...

Design for Device Health Check Feature in Device manager

...

draw.io Diagram
bordertrue
diagramNamehelathcheck
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth1478
revision1

  • In Device Manager UI new UI pages are added i.e healthcheck and configuartion pages 
  • Navigate to the healthcheck → add schedule → Provide the input fields , select devices → click on submit
  • User provided details will saved to the DB with the help of API defined in the Device manager 
  • Scheduling thread will be initiated based on the provided execution date and time and occurrence.
  • Jenkins job will be scheduled for the execution .(Refer to get more details how to define health check jenkins job)
  • health check partner implementation code will be executed and below list of APIs will be called in the partner implementation to update results to the device manager.
    • /healthCheck/updateExecutionDetailsStatus – API is called to update the execution details to device manager once the health check is done for the device from the partner side
    • /healthCheck/updateExecutionStatusCount – API is called to updated the pass , failed and aborted devices count to the device manager from the partner implementation when the health check is completed on all the added devices.
    • /healthCheck/updateInProgressExecutionDeviceDetails – API is called to update the Execution device details to Inprogress when health check is initiated for the device on the partner implementation side.

Update Device Manager with health check feature

...