0 Shares 1767 Views

TestExecute in TestComplete

Sep 12, 2013
1767 Views

TestExecute

One of the true beauties of the TestComplete is the “TestExecute”.

TestExecute is a light weight application which is used to run the TestComplete test cases without the installation of the TestComplete. Hence saving the memory consumed by TestComplete during execution.

It is useful in the scenario, if the developer/tester want to execute the script on the remote machine without the installation of the TestComplete

With the enterprise edition of TestComplete one license for TestExecute come free, but if you want to have no of testExecute then you need to purchase the license from SmartBear.

Execution of the scripts from the TestExecute:

Scripts are triggered with TestExcute with the help of the command line.

The syntax for the same is

TestExecute.exe [file_name] [/run [(/p: project_name) or (/p: project_name /pi:item_name) or (/p:project_name /t:test_name) or

(/p:project_name /u:unit_name /rt:routine_name)]

[/exit] [/SilentMode][/exportlog:File_name][/ForceConversion]

The description of the arguments used in the below syntax is as below:

  • File_name : It opens the Testexecute and loads the specific project(.mds) or project suite (.pjs) into it.
  • /Run : Start the execution of the open item. The execution depends on the argument passed along it.
    • No other argument specified
      • Run the open item.
  • / p:project_name
    • Run the specified project from the project panel.
  • /p: project_name /pi:item_name
    • TestExecute will run test(s) provided by the specified project item. Project_name refers to the name of the project in which desired project item is present. Projectitem_name is the name of the desired project item.
  • /p:project_name /t:test_name
    • TestExecute will run the specified test. Project_name specifies the name of the project that holds the desired test. Test_name specifies the full name of the desired test.

PS: you need to provide the full path of the test case separated by the pipe character (|). The script should not contain the name of any of the folders present in the TestComplete.

  • /p:project_name /u:unit_name /rt:routine_name)
    • TestExecute will run the specified script routine. Project_name specifies the name of the project to which the routine belongs. Unit_name specifies the name of the unit holding the desired routine. Routine_name is the name of the script routine to be called.
  • /exit
    • TestComplete exits once the execution is complete
  • /SilentMode
    • – If this argument is specified, TestExecute works in silent mode, that is, it neither displays dialogs, nor informs you about errors or warnings.
  •  /exportlog:File_name (or /el:File_name)
    •  Exports the test run results to the .mht file specified by the File_name parameter.
  •  /ForceConversion
    • If this argument is specified and TestExecute is running in Silent mode, TestExecute automatically converts projects created in earlier versions of the tool to the new format when they are opened.

One of the examples that can be illustrated in the same is as follows:

“C:\Program Files\Automated QA\Bin\TestExecute.exe” “C:\ Program Files\Automated QA \Projects\Project3.pjs” /r /p: Project3 /u: Unit3 /rt: Main

The detailed description of the above command is as follows:

  • “C:\Program Files\Automated QA\Bin\TestExecute.exe”
    • It denotes the path of the testexecute.exe file
  • ” C:\ Program Files\Automated QA \Projects\Project3.pjs”
    • Denotes the path of the Project Suite named Project3.
  • /r /p: Project3 /u: Unit3 /rt: Main
    • It instructs testExecute to run the Main routine present in the Unit “Unit3” of the project suite Project3

This is the most convenient method used for execution of the test script using TestComplete.

Recommended System Requirements

  • Intel Pentium 4  3 GHz, Intel Core 2 Duo  2 GHz or higher.
  • 1 GB of RAM on Windows XP and Windows Server 2003.
    2 GB of RAM on Windows Vista, Windows 7 and later operating systems.
  • 400 MB hard disk space for installation.Additional free disk space is required to run test projects, as TestExecute creates temporary files to store data generated during the test run. The actual free space required increases with the project size. It is recommended to have at least 200 MB of free space on your system disk in order to run small projects, and 1-2 GB of free space to run large projects.
  • 800 × 600 or higher display resolution.
  • Mouse or other pointing device.
  • Microsoft Internet Explorer 7.0 or later.

 

TestExecute Trial version can be downloaded from SmartBear site.

 

Happy Learning

 

 

 

You may be interested

UFT Patch Updates – UFT 14.03
Unified Functional Testing
1448 views1
Unified Functional Testing
1448 views1

UFT Patch Updates – UFT 14.03

Saket - Mar 11, 2018

Post the launch of UFT 14.0, there are three patch updates has been released including a number of features and enhancement. Recently Micro Focus unveiled third patch…

Setting up Web Service Automation Project
Katalon Studio
1305 views
Katalon Studio
1305 views

Setting up Web Service Automation Project

Saket - Oct 24, 2017

Web services are specific services that can be published and called over the Internet by client applications. Katalon Studio supports functional testing of web services. This topic…

Setting up Mobile Automation Project in MacOS
Katalon Studio
1081 views1
Katalon Studio
1081 views1

Setting up Mobile Automation Project in MacOS

Saket - Oct 09, 2017

Using Katalon Studio, mobile tester can design automation test for both Android and iOS to run on physical devices, cloud services and emulators. This tutorial explains how…

Leave a Comment

Your email address will not be published.

Most from this category

Join The Growing Group of 15000+ Test Automation Engineers

Signup for our newsletter and get access to free downloads, as well as tips, tricks and techniques and various test automation resources.
Name
Email Address
Secure and Spam free...