How to Schedule Automation Testing?

Introduction

QMetry agent allows user to schedule and setup to perform automated project execution at a specific scheduled date and time. While scheduling the automation execution, user can directly specify the custom commands like mvn test, mvn install etc. regardless of automation and build framework. User can assign scheduler to Agent for executing your automated project on the hosting machine. 

Steps to Schedule Automation Testing

Custom Command Input

User can schedule the automation execution directly by specifying the custom commands (like mvn test, mvn install, or any other framework specific commands) regardless of the automation and build frameworks - with an added ability to set recurrence of test executions.

This is a command line input, which you provide on the command line interface.

For example,

The following command includes the Project path on your local drive and the test command to trigger the execution in accordance with the language and Framework you use. The result file will be generated in the Project directory accordingly.

cd D:\QMetry\cucumber-maven-example-master && D: && mvn test

Schedule Automation Agent Run

You can schedule QMetry Agent to run at your preference.

(A) Run Now

(B) Run Later

  • One Time
  • Recurring

Only one kind of scheduling could occur Run now / One time / Recurring. i.e if Recurring schedule exists and if user submits Run Now option then the Recurring Schedule Job will be deleted.


 (A) Run Now

If you want to execute the Agent job immediately, then select the Run Now option and click Submit.

 (B) Run Later

You can schedule the agent to run on a future date and time. Scheduling executions helps testers set execution schedule to be run one after the another.

 a. One Time Occurrence

To schedule the run only once on particular day and time, select the Run Later option for Schedule and One Time option for Occurrences.

  • Schedule: Run Later
  • Occurrences: One Time
  • Schedule date and time: Open the calendar and select date and time to initiate the Agent job, and click Submit.


  • Schedule Date: This is scheduled date to execute the command. By default, the field shows current system date in MM-DD-YYYY format. User can modify the date as per requirement. To pick date from calendar, click the calendar icon adjacent to the field.
  • Schedule Time: This is scheduled time to execute the command. Three separate number fields are provided for Hours, Minutes and Seconds. By default, the drop down list shows current system time in HH:MM:SS format. User can modify the time as per requirement by selecting the suitable time to execute the command. Schedules will be sent to the agent at the defined time.


 b. Recurring Occurrence

To schedule the recurring runs during a particular period, select the Run Later option for Schedule and Recurring option for Occurrences.

  • Schedule: Run Later
  • Occurrences: Recurring
  • Starting On and Ending On: Select dates using calendar
  • Schedule time: Enter time in HH:MM:SS format
  • Recur: Select one frequency from the following and its corresponding option to schedule the QMetry Agent run recurrently.
    • Daily
    • Weekly
    • Monthly

Then click Submit.

View QMetry Automation Agent History

  1. Go to Integration > Automation Agent.
  2. On the Registered Agents section, click on the History button to view the schedule details of that particular Agent. A pop-up screen opens that displays schedule details of the Agent.


The columns include Custom Command Input, Scheduled At, Execution, and Execution Status.

Execution Status is categorized as below:

  • Scheduled: Job is yet to be executed.
  • Completed: Job executed successfully.
  • In-progress: Job is initialized and running.

Refresh the page by clicking on the Refresh icon, at the top right corner, to view the latest execution status of the job.

Logs are available to download by clicking on the Download icon under the Action column.

Count of pages are displayed at the bottom of the screen. Navigation buttons are provided to let users navigate through the pages. 

  • Back to Agents: Click on the button to navigate to the Automation Agent screen.


Once the Agent is schedule, Total Schedules count increases on the Schedule screen. 

Task immediate on schedule gets executed. Other scheduled tasks get executed in sequence in accordance with their scheduled date and time.

Delete Agent 

  1. Go to Integration > Automation Agent.
  2. On the Registered Agents section, click on the Delete button for the Agent you want to delete.