Users can define Agent Alias and add tasks for QMetry Agent. On activation, the Agent requests for task through QMetry. QMetry Automation Agent checks schedule(s) set in QMetry and executes the automation tests. Users can run Custom Command regardless of Automation Framework or Build Framework. The automation agent can be run immediately or can be scheduled on future date and time. Users can schedule recurring execution of command. The execution will be scheduled automatically as per set occurrences. QMetry Agent keeps running the jobs accordingly.
The flow works like this:
Note: Automation related rights are assigned from Customization > Roles. The logged-in user will have access rights over Agent feature accordingly.
Use this key to configure QMetry Automation Agent.
To generate Automation Key, go to Integration > Automation Agent and click on the Generate new Key.
Step 1. Go to Integration > Automation Agent.
Step 2. Expand the Download & Run Agent section, if not expanded already.
Step 3. You will find Agent download and installation instructions on the screen. Download QMetryAgent.zip by clicking on the Automation Agent download link.
Step 4. Extract the QMetryAgent.zip on the computer drive.
Step 5. Open the QMetryAgent folder.
Step 6. Run <QMetry Agent Directory>/ QmetryAutomationAgent.jar by clicking on it.
The QMetry Automation Agent wizard opens.
The QMetry Automation Agent has the following fields on it:
Interval Time: By default, the interval time between two scheduled jobs will be of 180 seconds. You can change the time by modifying the "Interval" parameter in the QMetryAgent.properties. The minimum value should be 60 seconds.
Click on the Start Agent button.
Users can also view logs by clicking on the View Logs button.
The Agent is added on the list of Registered Agents with Status as “Active”.
The screen lists out all agents added in QMetry with the details of OS, Machine Address, Status (Not Registered, Active, Inactive, Not Applicable), and Schedules.
Filter Options
You can filter the Registered Agents on the following criteria:
When you are done with Agent configuration in the Integration > Automation Agent, download and run the Agent, Carry out automation testing by scheduling tasks for Agent.
The columns on the screen are described below:
The Actions column includes the Schedule, History and Delete buttons.
User can run the schedule on the spot or at a specific scheduled date and time.
Note: QMetry Agents can be scheduled irrespective of the Approval workflow if the e-Signature feature is enabled.
Users can run Custom Command regardless of Test Framework or Build Framework. 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
You can schedule QMetry Agent to run at your preference.
(A) Run Now
(B) Run Later
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.
If you want to execute the Agent job immediately, then select the Run Now option and click Submit. |
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.
|
The columns include Custom Command Input, Scheduled At, Execution, and Execution Status.
Execution Status is categorized as below:
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.
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.
The Agent job is triggered to execute the command as per set Schedule. The result file is generated in accordance with the command. Use this file to update the test assets and execution status in QMetry.
Make sure you upload the result file in QMetry using Postman to update the test execution results in QMetry. |
To know more about importing automation test results into QMetry, refer to Import Automation Results through REST API.
Other ways to push automation results into QMetry:
On successful completion of automation testing, test assets are added/updated to Test Cases and Test Suites modules.
The test run results are uploaded on the Test Execution screen.
Open the Test Cases module. The test cases imported through automation testing are displayed with "Automated" Testing Type.
Go to the Test Suites module. You can see the Auto Generated test suite added in QMetry as a result of automation testing.
Test execution status of test cases and steps are updated on the Test Execution Screen.
It opens the Test Execution Screen displaying test execution status of test cases with their test steps.