Back to QMetry All Products Help Page
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
- First of all, configure an agent from the Integration > Automation Agent. Refer to QMetry Agent Configuration for more details.
- Setup your Automation Project on the same machine as the QMetry Agent.
- Directly run your automated project from Integration > Automation Agent > Registered Agents by scheduling your automation.
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.
View QMetry Automation Agent History
- Go to Integration > Automation Agent.
- 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
- Go to Integration > Automation Agent.
- On the Registered Agents section, click on the Delete button for the Agent you want to delete.
Back to QMetry All Products Help Page