New tools in Studio for optimized job scheduling and simpler integration with environments in 6.1 #338
Quali-Community
started this conversation in
Useful Tips & Guides
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are several options to have better integration between Environments/Topologies, Reservations and Tests.
This integration improves the way you built your tests and allows tests to be executed from a Job in the portal in an optimized way.
This article reviews these new features and explains how to use them.
Test Duration
As the Test designer, you can now specify an estimation of the execution time for the Test you're building.
To do this, open the test properties (right-click on the Test and select "Properties"), then select the "Advanced" tab and use the new "Enable Duration" option to set the estimated time it takes for this Test to run:
Later, in the scheduling portal, when this Test will be selected as part of a Job, the specified duration will be taken into account when calculating the whole Job duration.
Test Topologies
As the Test designer, you can also specify which Topologies/Environments you have built this Test for, so when selecting this Test to execute as part of a Job, these Topologies will appear at the top of the list (the user can still select other topologies).
Selecting a topology for a Job will make sure that only when this topology is available for reservation the job will start.
To select the topologies, open the Topologies page for one of your tests:
Then, in this page, select the supported/suggested topologies.
In the portal, you'll see the following when selecting a topology/environment for a job:
Getting the current environment details
When you build a test that will be launched from the scheduling portal, and has an environment selected for the job, you can now easily get information about this environment from the Test without the need for API calls.
First, for building a Test you can select a reservation to work with, so that the environment details will be similar to the ones you'll get at run-time.
To do that, use the "Select Reservation" from the Ribbon:
Then, you'll see the list of available reservations for the current logged-in user in the selected domain:
Once selected, you can open the Environment Watcher and view all the available details:
To get the environment details while you build your test, use the new function "environmentDetails".
For example: environmentDetails.ReservationId when you want to get the reservation id of the current reservation to be used for other API calls.
Or environmentDetails.Resources to get the list of resources that are in the current reservation.
Note:the details are not updated automatically, so if you are doing some changes to the reservation (manually or from the API), you need to refresh the environmentDetails data. To do that, use the Refresh button in the ribbon or use the "refreshEnvironmentDetails" function in a Matshell step.
Attachments:
Yaniv Kalsky (Yaniv.K) - 11/09/2014 08:15 AM
· 2762 ·
Beta Was this translation helpful? Give feedback.
All reactions