Creating a Crontask
Prerequisites
A PerfTest or JMeter project has been created, and test tasks are included.
The extensible test project does not support the scheduled pressure test function.
Procedure
- Log in to the CodeArts PerfTest console. In the navigation pane, choose Scheduled Test. Then click Create.
- Set the basic information by referring to Table 1.
Table 1 Creating a crontask Parameter
Description
Related Project
Select an existing PerfTest or JMeter project.
Related Task
Select the task for which you want to perform a scheduled pressure test.
NOTE:A task can be associated with only one scheduled pressure test task to be executed.
Crontask Name
Name of the crontask
Description
Description of the crontask
Resource Group
Select a test resource group for the crontask.
- You can select a shared resource group or an existing private resource group for a PerfTest project. Shared resource groups of a user can be bound to only one pressure test task.
- Only existing private resource groups can be selected for a JMeter test project.
Enterprise Project
Select the corresponding enterprise project.
NOTE:This option is unavailable for personal accounts.
Run Frequency
Frequency of running the crontask. Option: Run only once and Run regularly.
- Run only once: The task is executed only once at the time set in Date of running.
- Run regularly: The period settings can be Monthly, Weekly, and Advanced.
- Monthly: The task is executed every month on the specified running date (one day or multiple days) and time.
- Weekly: The task is executed every week on the specified running date (one day or multiple days) and time.
- Advanced: The task is repeatedly executed based on crontab expressions. Use this mode if you are familiar with crontab expressions.
The rules for entering running dates are as follows:
Minute: integers ranging from 0 to 59, and operators * , - /
Hour: integers ranging from 0 to 23, and operators * , - /
Day (days in a month): integers ranging from 1 to 31, and the operator ? * , - /
Month: Only * (monthly) is supported.
Week (days in a week): any days in a week and the question mark (?) operator
NOTE:The day and week rules are mutually exclusive. When a non-default value is set for one parameter, the default value (?) is automatically set for the other parameter.
Deadline
The task will not be executed after the deadline. The furthest deadline is one year later.
NOTE:Set this parameter only when Run Frequency is set to Run regularly.
- When the configuration is complete, click Sure.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot