Scheduling Test Runs

Applies to LoadComplete 4.97, last modified on May 20, 2019

After you have created a load test and verified that it functions properly, you can use it in your work.

One of the common tasks for load tests is subsequent running at a certain time, for example, every night at 1:00 a.m. There are different ways to perform this task:

  • Use batch runs to schedule and run several tests.

  • Use a third-party scheduler (like Windows Task Scheduler) to launch LoadComplete and pass the run parameters through the command line.

Using Batch Runs

A batch is a collection of load tests that you can run at a certain time. A collection can include even one test. In this case, you use the batch to schedule this test run. You can see the batches under the BatchRuns node in the Project Explorer. For more information on creating and running batches, About Batch Runs.

Using Scheduling Tools

You can also run LoadComplete by using a scheduling tool like Windows Task Scheduler:

  1. Start the Task Scheduler (You can do this from the Control Panel, for example).

  2. In the Task Scheduler window, click Create task in the Actions panel on the right to create a new scheduled task. This will open the Create Task wizard.

  3. Use the wizard to specify the task properties like name, time, user account and others.

  4. To specify that the task should launch LoadComplete:

    • Switch to the Actions page of the wizard and click New. This will invoke the New Action dialog box.

    • Select Start a program in the Action drop-down list.

    • In the Program/script box enter the path to LoadComplete, for instance, you can enter this path (this is the location to which LoadComplete is installed by default):

      "C:\Program Files\SmartBear\LoadComplete\Bin\LoadComplete.exe"

      Note: Use the quotes if the path contains spaces.
    • in the Add arguments (optional) box specify the test project name and LoadComplete command-line arguments, for instance:

      "C:\Work\LoadComplete Projects\MyProject\MyProject.ltp" /test:Test_Name /r /e

      If the project file name contains spaces, do not forget to enclose it in quotes.

    • Click OK to save the changes.

  5. Click OK in the Create Task wizard to finish the task creation.

Notes

  • For complete information on LoadCompletecommand-line arguments, see LoadComplete Command Line.

  • Use LoadComplete exit codes to determine if the test run was successful. If you need to check whether the load test was successful, you can create a batch file which will call LoadComplete, specify command-line arguments for it and check LoadComplete exit code. You can find an example for this batch file in the LoadComplete Exit Codes topic.

  • An alternative to using the Windows Task Scheduler are special build and test management tools, which let you completely automate the build and test processes of your software.

See Also

LoadComplete Command Line
LoadComplete Exit Codes
About Batch Runs

Highlight search results