| || |
how to lunch a test partner script in command line
hello every body.
I would know how to lunch a test partner script in command line.
I would like to code a soft which will lunch a test partner script like Qadirector.
Re: how to lunch a test partner script in command line
Playing Back a Visual Test or Test Script From the Command Line
You can use the tp utility to start TestPartner in automation mode and play back a visual test or test script from the Command Line. You can also include the command in a batch file for automatic playback. When performing playback from the Command Line, playback terminates without notification unless error handling is included.
To play back a visual test or test script from the command line:
Open a Command window: Select Start>Run from the taskbar, and then type 'cmd' into the Open field in the dialog box that appears.
At the prompt, enter the tp command to playback visual tests or test scripts using following parameters as needed:
-u <username>: The name of the user used to connect to TestPartner
-p <password>: The password of the user used to connect to TestPartner (optional if the password is null)
-d < DSN>: The name of the DSN to use to connect to the database. Optional. The default DSN is "TestPartner". You can omit this parameter when using the TestPartner database.
-r <project>: The project containing the visual tests or test scripts to be played back. Optional if the tests to be played back are in the "Common" project.
-s <test scripts>: The name(s) of any test scripts to be played back.
-t <visual tests>: The name(s) of any visual tests to be played back.
Notes: Use double quotes (" ") for visual test names that contain special characters such as -=!@#$%^. For example, "name!#*Visual@%Test"; however, if the visual test name starts with a hyphen ( - ), simply omit the space between the parameter and its value. For example:
-m <vtvariable>: The name/value pairs of any visual test variables used to pass data between named visual tests. Use this parameter only when more than one visual test is being played back. The name/value pairs must be enclosed in double quotes (" "). Variable names must be followed by an equal sign (=).
-a <append>: Results created from the playback are added to the existing result with the same run number. Optional.
-i <increment>: Results for the playback are saved with a new incremental run number. Optional.
-v <verbose>: Output additional useful text messages during playback.
-h <help>: Displays help for each tp command parameter and additional command examples.
Syntax for a typical command is as follows:
tp -u<Username> -p<Password> -d<ODBC DSN> -r<Project name> -s<list of test script names delimited by space>
Notes: The dash ("-") and slash ("/") characters cannot be used as the first character in a password string. These are reserved characters used for flag processing by the command parser.
Double quotation marks are required for the ODBC DSN name, project name, visual test, or test script name that has any spaces.
The following command:
Logs onto TestPartner using admin as the user name and password
Connects to the database using the following DSN: TestPartner MyDSN
Plays back a test script called script1
tp -u admin -p admin -d "TestPartner MyDSN" -s script1
The following command:
Logs onto TestPartner using bfhdbb0 as the user name and admin as the password
Connects to the database using the TestPartner DSN
Plays back the visual test named passedin1 and creates two passed in variables
Plays back the visual test named passedin2
tp -u bfhdbb0 -p admin -d "TestPartner" -t passedin1 -m "Int1=9" "strText=Hello World" -t passedin2
Once playback completes, TestPartner generates a detailed result report of the actions performed. See "About Results" for more information on viewing and working with results.